Documento base para o lab
On-Demand Routing : utiliza o CDP (cisco discovery protocol) para propagar os prefixos. sua utilização serve para topologias hub-and-spoke.
Documento base para o lab
On-Demand Routing : utiliza o CDP (cisco discovery protocol) para propagar os prefixos. sua utilização serve para topologias hub-and-spoke.
R1#sh run
Building configuration...
Current configuration : 1369 bytes
!
version 12.4
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
memory-size iomem 5
no ip icmp rate-limit unreachable
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
ip tcp synwait-time 5
interface FastEthernet0/0
ip address 150.1.1.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0
ip address 10.0.0.1 255.255.255.252
clock rate 2000000
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/1
ip address 10.0.0.5 255.255.255.252
clock rate 2000000
!
interface Serial0/2
no ip address
shutdown
clock rate 2000000
!
interface Serial0/3
no ip address
shutdown
clock rate 2000000
!
router eigrp 1
passive-interface FastEthernet0/0
offset-list 1 in 123456789 Serial0/1
network 10.0.0.0 0.0.0.3
network 10.0.0.4 0.0.0.3
network 150.1.1.0 0.0.0.255
no auto-summary
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
no cdp log mismatch duplex
!
!
!
control-plane
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
!
end
R1#
R2#sh run
Building configuration...
Current configuration : 1331 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
ip tcp synwait-time 5
interface FastEthernet0/0
ip address 150.2.2.2 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0
ip address 10.0.0.2 255.255.255.252
clock rate 2000000
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/1
ip address 10.0.0.9 255.255.255.252
clock rate 2000000
!
interface Serial0/2
no ip address
shutdown
clock rate 2000000
!
interface Serial0/3
no ip address
shutdown
clock rate 2000000
!
router eigrp 1
passive-interface FastEthernet0/0
network 10.0.0.0 0.0.0.3
network 10.0.0.8 0.0.0.3
network 150.2.2.0 0.0.0.255
no auto-summary
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
no cdp log mismatch duplex
!
!
!
control-plane
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
!
end
R2#$
R3#sh run
Building configuration...
Current configuration : 1839 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
ip tcp synwait-time 5
interface FastEthernet0/0
ip address 150.3.3.3 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0
ip address 10.0.0.13 255.255.255.252
clock rate 2000000
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/1
no ip address
shutdown
clock rate 2000000
!
interface Serial0/2
ip address 10.0.0.10 255.255.255.252
clock rate 2000000
!
interface Serial0/3
ip address 10.0.0.6 255.255.255.252
clock rate 2000000
!
router odr
!
router eigrp 1
redistribute connected
redistribute odr route-map ODR-2-EIGRP
passive-interface FastEthernet0/0
network 10.0.0.4 0.0.0.3
network 10.0.0.8 0.0.0.3
default-metric 100000 100 255 1 1500
no auto-summary
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
ip prefix-list NET-150 seq 5 permit 150.4.4.0/24
!
ip prefix-list NET-160 seq 5 permit 160.4.4.0/24
!
ip prefix-list NET-170 seq 5 permit 170.4.4.0/24
no cdp log mismatch duplex
!
route-map ODR-2-EIGRP permit 10
match ip address prefix-list NET-150
set tag 150
!
route-map ODR-2-EIGRP permit 20
match ip address prefix-list NET-160
set tag 160
!
route-map ODR-2-EIGRP permit 30
match ip address prefix-list NET-170
set tag 170
!
!
!
control-plane
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
!
end
R3#
R4#sh run
Building configuration...
Current configuration : 1262 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R4
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3ip admission max-nodata-conns 3
ip tcp synwait-time 5
interface FastEthernet0/0
ip address 160.4.4.4 255.255.255.0 secondary
ip address 170.4.4.4 255.255.255.0 secondary
ip address 150.4.4.4 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0
ip address 10.0.0.14 255.255.255.252
clock rate 2000000
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/1
no ip address
shutdown
clock rate 2000000
!
interface Serial0/2
no ip address
shutdown
clock rate 2000000
!
interface Serial0/3
no ip address
shutdown
clock rate 2000000
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
no cdp log mismatch duplex
!
!
!
control-plane
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
!
end
R4#$
R4#sh ip rou
Codes: 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
Gateway of last resort is 10.0.0.13 to network 0.0.0.0
170.4.0.0/24 is subnetted, 1 subnets
C 170.4.4.0 is directly connected, FastEthernet0/0
160.4.0.0/24 is subnetted, 1 subnets
C 160.4.4.0 is directly connected, FastEthernet0/0
10.0.0.0/30 is subnetted, 1 subnets
C 10.0.0.12 is directly connected, Serial0/0
150.4.0.0/24 is subnetted, 1 subnets
C 150.4.4.0 is directly connected, FastEthernet0/0
o* 0.0.0.0/0 [160/1] via 10.0.0.13, 00:00:50, Serial0/0
R4#
R3#sh ip route
Codes: 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
Gateway of last resort is not set
170.4.0.0/24 is subnetted, 1 subnets
o 170.4.4.0 [160/1] via 10.0.0.14, 00:00:04, Serial0/0
160.4.0.0/24 is subnetted, 1 subnets
o 160.4.4.0 [160/1] via 10.0.0.14, 00:00:04, Serial0/0
10.0.0.0/30 is subnetted, 4 subnets
C 10.0.0.8 is directly connected, Serial0/2
C 10.0.0.12 is directly connected, Serial0/0
D 10.0.0.0 [90/2681856] via 10.0.0.9, 00:00:57, Serial0/2
[90/2681856] via 10.0.0.5, 00:00:57, Serial0/3
C 10.0.0.4 is directly connected, Serial0/3
150.1.0.0/24 is subnetted, 1 subnets
D 150.1.1.0 [90/2195456] via 10.0.0.5, 00:00:59, Serial0/3
150.2.0.0/24 is subnetted, 1 subnets
D 150.2.2.0 [90/2195456] via 10.0.0.9, 00:00:59, Serial0/2
150.3.0.0/24 is subnetted, 1 subnets
C 150.3.3.0 is directly connected, FastEthernet0/0
150.4.0.0/24 is subnetted, 1 subnets
o 150.4.4.0 [160/1] via 10.0.0.14, 00:00:06, Serial0/0
R3#