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.0
!
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
no auto-summary
eigrp stub connected 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