Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
R7#sh run
!
hostname R7
!
logging buffered 150000
!
enable password cisco
!
ip cef
!
!
!
!
ip vrf ROUTERS
rd 2:100
route-target export 2:100
route-target import 1:100
!
ip vrf SWITCHES
rd 2:200
route-target export 2:200
route-target import 1:200
mdt default 232.0.0.11
!
ip multicast-routing
ip multicast-routing vrf SWITCHES
!
mpls label protocol ldp
!
interface Loopback0
ip address 7.7.7.7 255.255.255.255
ip pim sparse-mode
!
interface GigabitEthernet0/0
description Link to Sw2 fa0/7
no ip address
duplex full
speed 100
media-type rj45
!
interface GigabitEthernet0/0.27
encapsulation dot1Q 27
ip vrf forwarding ROUTERS
ip address 120.100.27.7 255.255.255.0
!
interface GigabitEthernet0/0.37
encapsulation dot1Q 37
ip vrf forwarding SWITCHES
ip address 120.100.37.7 255.255.255.0
ip pim sparse-mode
!
interface Serial0/2/0
ip address 120.100.67.7 255.255.255.0
ip pim sparse-mode
mpls ip
clock rate 8000000
!
interface Serial0/3/0
ip address 120.100.57.7 255.255.255.0
ip pim sparse-mode
mpls ip
clock rate 8000000
!
router eigrp 1
auto-summary
!
address-family ipv4 vrf ROUTERS
redistribute bgp 65001
no redistribute eigrp
network 120.100.27.0 0.0.0.255
default-metric 1000 1 1 1 1500
no auto-summary
autonomous-system 1
exit-address-family
!
router ospf 2 vrf SWITCHES
log-adjacency-changes
redistribute connected
redistribute bgp 65001 subnets
network 120.100.37.0 0.0.0.255 area 2
!
router ospf 1
router-id 7.7.7.7
log-adjacency-changes
network 7.7.7.7 0.0.0.0 area 0
network 120.100.57.0 0.0.0.255 area 0
network 120.100.67.0 0.0.0.255 area 0
!
router bgp 65001
no synchronization
bgp log-neighbor-changes
neighbor 4.4.4.4 remote-as 65001
neighbor 4.4.4.4 update-source Loopback0
no auto-summary
!
address-family vpnv4
neighbor 4.4.4.4 activate
neighbor 4.4.4.4 send-community both
neighbor 4.4.4.4 next-hop-self
exit-address-family
!
address-family ipv4 vrf SWITCHES
redistribute ospf 2 vrf SWITCHES
no synchronization
exit-address-family
!
address-family ipv4 vrf ROUTERS
redistribute eigrp 1
redistribute eigrp
no synchronization
exit-address-family
!
ip http server
ip http secure-server
ip pim ssm default
ip pim vrf SWITCHES rp-address 120.100.14.4
!
mpls ldp router-id Loopback0
!
control-plane
!
line con 0
login
password
line aux 0
line vty 0 4
login
password
!
end
R7# show 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
4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/129] via 120.100.67.6, 1w3d, Serial0/2/0
[110/129] via 120.100.57.5, 1w3d, Serial0/3/0
5.0.0.0/32 is subnetted, 1 subnets
O 5.5.5.5 [110/65] via 120.100.57.5, 1w3d, Serial0/3/0
6.0.0.0/32 is subnetted, 1 subnets
O 6.6.6.6 [110/65] via 120.100.67.6, 1w3d, Serial0/2/0
7.0.0.0/32 is subnetted, 1 subnets
C 7.7.7.7 is directly connected, Loopback0
120.0.0.0/24 is subnetted, 4 subnets
C 120.100.57.0 is directly connected, Serial0/3/0
O 120.100.45.0 [110/128] via 120.100.57.5, 1w3d, Serial0/3/0
O 120.100.46.0 [110/128] via 120.100.67.6, 1w3d, Serial0/2/0
C 120.100.67.0 is directly connected, Serial0/2/0
R7# show ip route vrf ROUTERS
Routing Table: ROUTERS
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
120.0.0.0/24 is subnetted, 6 subnets
C 120.100.27.0 is directly connected, GigabitEthernet0/0.27
D 120.100.20.0
[90/28416] via 120.100.27.2, 05:02:40, GigabitEthernet0/0.27
B 120.100.4.0 [200/0] via 4.4.4.4, 1w4d
B 120.100.2.0 [200/2300416] via 4.4.4.4, 1w4d
B 120.100.3.0 [200/2198016] via 4.4.4.4, 4d05h
B 120.100.123.0 [200/2172416] via 4.4.4.4, 1w4d
R7# show ip route vrf SWITCHES
Routing Table: SWITCHES
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
120.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
B 120.100.12.0/24 [200/2] via 4.4.4.4, 1w0d
B 120.100.13.0/24 [200/20] via 4.4.4.4, 1w0d
B 120.100.14.0/24 [200/0] via 4.4.4.4, 1w0d
B 120.100.11.0/24 [200/2] via 4.4.4.4, 1w0d
C 120.100.37.0/24 is directly connected, GigabitEthernet0/0.37
O 120.100.33.1/32
[110/2] via 120.100.37.3, 05:02:22, GigabitEthernet0/0.37