You are on page 1of 6

R1#

R1#
R1#
R1#
R1#show ip
R1#show ip ro
R1#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override

Gateway of last resort is 200.200.200.1 to network 0.0.0.0

S* 0.0.0.0/0 [1/0] via 200.200.200.1, Ethernet0/2


10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C 10.0.1.0/30 is directly connected, Tunnel0
L 10.0.1.1/32 is directly connected, Tunnel0
O IA 10.0.2.0/30 [110/1010] via 10.0.1.2, 00:06:59, Tunnel0
O IA 192.168.10.0/24 [110/1020] via 10.0.1.2, 00:06:59, Tunnel0
192.168.20.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.20.0/24 is directly connected, Ethernet0/0.20
L 192.168.20.1/32 is directly connected, Ethernet0/0.20
192.168.30.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.30.0/24 is directly connected, Ethernet0/0.30
L 192.168.30.1/32 is directly connected, Ethernet0/0.30
O IA 192.168.100.0/24 [110/1020] via 10.0.1.2, 00:06:59, Tunnel0
O IA 192.168.110.0/24 [110/1020] via 10.0.1.2, 00:06:59, Tunnel0
200.200.200.0/24 is variably subnetted, 2 subnets, 2 masks
C 200.200.200.0/24 is directly connected, Ethernet0/2
L 200.200.200.2/32 is directly connected, Ethernet0/2
R1#
R1#
R1#show run
R1#show running-config
Building configuration...

Current configuration : 1902 bytes


!
! Last configuration change at 21:19:16 UTC Wed Nov 28 2018
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
!
!
!
!

!
ip dhcp excluded-address 192.168.20.1
ip dhcp excluded-address 192.168.30.1
!
ip dhcp pool vlan 20
network 192.168.20.0 255.255.255.0
default-router 192.168.20.1
dns-server 8.8.8.8
!
ip dhcp pool vlan 30
network 192.168.30.0 255.255.255.0
default-router 192.168.30.1
dns-server 8.8.8.8
!
!
!
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
redundancy
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Tunnel0
ip address 10.0.1.1 255.255.255.252
ip nat inside
ip virtual-reassembly in
tunnel source Ethernet0/2
tunnel destination 201.201.201.2
!
interface Ethernet0/0
no ip address
ip nat inside
ip virtual-reassembly in
!
interface Ethernet0/0.20
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
!
interface Ethernet0/0.30
encapsulation dot1Q 30
ip address 192.168.30.1 255.255.255.0
!
interface Ethernet0/1
no ip address
shutdown
!
interface Ethernet0/2
ip address 200.200.200.2 255.255.255.0
ip nat outside
ip virtual-reassembly in
!
interface Ethernet0/3
no ip address
shutdown
!
!
router eigrp 100
network 192.168.20.0
network 192.168.30.0
passive-interface Ethernet0/0.20
passive-interface Ethernet0/0.30
!
router ospf 10
network 10.0.1.0 0.0.0.3 area 0
!
ip forward-protocol nd

R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#rou
R1(config)#router e
R1(config)#router eigrp 100
R1(config-router)#re
R1(config-router)#redistribute sta
R1(config-router)#redistribute static
R1(config-router)#re
R1(config-router)#redistribute o
R1(config-router)#redistribute os
R1(config-router)#redistribute ospf 10
R1(config-router)#redistribute ospf 10 me
R1(config-router)#redistribute ospf 10 metric 100000 10 255 1 1500
R1(config-router)#
R1(config-router)#
R1(config-router)#exit
R1(config)#
R1(config)#
R1(config)#
R1(config)#
R1(config)#
R1(config)#exit
R1#
R1#show r
*Nov 28 21:32:29.117: %SYS-5-CONFIG_I: Configured from console by console
R1#show run
R1#show running-config
Building configuration...

Current configuration : 1973 bytes


!
! Last configuration change at 21:32:29 UTC Wed Nov 28 2018
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
!
!
!
!

!
ip dhcp excluded-address 192.168.20.1
ip dhcp excluded-address 192.168.30.1
!
ip dhcp pool vlan 20
network 192.168.20.0 255.255.255.0
default-router 192.168.20.1
dns-server 8.8.8.8
!
ip dhcp pool vlan 30
network 192.168.30.0 255.255.255.0
default-router 192.168.30.1
dns-server 8.8.8.8
!
!
!
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
redundancy
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Tunnel0
ip address 10.0.1.1 255.255.255.252
ip nat inside
ip virtual-reassembly in
tunnel source Ethernet0/2
tunnel destination 201.201.201.2
!
interface Ethernet0/0
no ip address
ip nat inside
ip virtual-reassembly in
!
interface Ethernet0/0.20
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
!
interface Ethernet0/0.30
encapsulation dot1Q 30
ip address 192.168.30.1 255.255.255.0
!
interface Ethernet0/1
no ip address
shutdown
!
interface Ethernet0/2
ip address 200.200.200.2 255.255.255.0
ip nat outside
ip virtual-reassembly in
!
interface Ethernet0/3
no ip address
shutdown
!
!
router eigrp 100
network 192.168.20.0
network 192.168.30.0
redistribute static
redistribute ospf 10 metric 100000 10 255 1 1500
passive-interface Ethernet0/0.20
passive-interface Ethernet0/0.30
!
router ospf 10
network 10.0.1.0 0.0.0.3 area 0
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
ip nat inside source list 1 interface Ethernet0/2 overload
ip route 0.0.0.0 0.0.0.0 Ethernet0/2 200.200.200.1
!
access-list 1 permit any
!
!
!
control-plane
!
!
!
!
!
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
login
transport input all
!
!
end

R1#wr
Building configuration...
[OK]
R1#

You might also like