ip address 2.2.2.2 255.255.255.255 ip pim sparse-mode!interface FastEthernet0/0 ip address 23.23.23.2 255.255.255.0 ip pim sparse-mode no shutdown du full no ip mroute-cache no ip route-cache mpls bgp forwarding!interface FastEthernet1/0 ip address 12.12.12.2 255.255.255.0 ip pim sparse-mode mpls ip no shutdown du full no ip mroute-cache no ip route-cache!router ospf 1 router-id 2.2.2.2 redistribute bgp 1 subnets route-map bgp2ospf network 2.2.2.2 0.0.0.0 area 0 network 12.12.12.2 0.0.0.0 area 0 network 23.23.23.2 0.0.0.0 area 0 passive-interface FastEthernet0/0!router bgp 1 bgp router-id 2.2.2.2 neighbor 23.23.23.3 remote-as 2 neighbor 100.100.100.100 remote-as 1 neighbor 100.100.100.100 update-source lo0 ! address-family ipv4 neighbor 100.100.100.100 activate neighbor 100.100.100.100 send-label neighbor 100.100.100.100 next-hop-self neighbor 23.23.23.3 activate neighbor 23.23.23.3 send-label neighbor 23.23.23.3 route-map LABEL-IN in neighbor 23.23.23.3 route-map LABEL-OUT out network 100.100.100.100 mask 255.255.255.255 network 1.1.1.1 mask 255.255.255.255!ip pim rp-address 2.2.2.2ip msdp peer 23.23.23.3ip msdp cache-sa-state!!access-list 1 permit 1.1.1.1 log ! IP Loopback PE1access-list 2 permit 4.4.4.4 log ! IP Loopback PE2access-list 3 permit 100.100.100.100 log ! IP Loopback P1 RRaccess-list 4 permit 200.200.200.200 log ! IP Loopback P2 RR!!route-map LABEL-IN permit 10 ! aceita rotas com label do PE2 do AS 2 match ip address 2 match mpls-label!route-map LABEL-IN permit 11 ! aceita rotas do RR do AS 2 match ip address 4!!route-map LABEL-OUT permit 12 ! envia rotas do RR local match ip address 3!route-map LABEL-OUT permit 13 ! envia rotas do PE1 com label match ip address 1 set mpls-label! 2.5 PE3 ASBR !Hostname PE3-ASBR!ip cef!mpls label protocol ldpip multicast-routing !interface Loopback0 ip address 3.3.3.3 255.255.255.255 ip router isis !interface FastEthernet0/0 ip address 32.32.32.3 255.255.255.0 ip pim sparse-mode ip router isis no ip mroute-cache no ip route-cache no shutdown du full mpls ip!interface FastEthernet1/0 ip address 23.23.23.3 255.255.255.0 ip pim sparse-mode no ip mroute-cache no ip route-cache ip router isis no shutdown du full mpls bgp forwarding!router isis net 49.0001.3333.3333.3333.00 is-type level-2-only passive-interface FastEthernet1/0!router bgp 2 bgp router-id 3.3.3.3 neighbor 23.23.23.2 remote-as 1 neighbor 200.200.200.200 remote-as 2 neighbor 200.200.200.200 update-source lo0 ! address-family ipv4 neighbor 200.200.200.200 activate neighbor 200.200.200.200 send-label neighbor 200.200.200.200 next-hop-self neighbor 23.23.23.2 activate neighbor 23.23.23.2 send-label neighbor 23.23.23.2 route-map LABEL-IN in neighbor 23.23.23.2 route-map LABEL-OUT out network 4.4.4.4 mask 255.255.255.255 network 200.200.200.200 mask 255.255.255.255! ip pim rp-address 3.3.3.3ip msdp peer 23.23.23.2ip msdp cache-sa-state!!access-list 1 permit 1.1.1.1 log ! IP Loopback PE1access-list 2 permit 4.4.4.4 log ! IP Loopback PE2access-list 3 permit 100.100.100.100 log ! IP Loopback P1 RRaccess-list 4 permit 200.200.200.200 log ! IP Loopback P2 RR!!route-map LABEL-IN permit 10 ! aceita rotas com label do PE1 do AS 1 match ip address 1 match mpls-label!route-map LABEL-IN permit 11 ! aceita rotas do RR do AS 1 match ip address 3!!route-map LABEL-OUT permit 12 ! envia rotas do RR local match ip address 4!route-map LABEL-OUT permit 13 ! envia rotas do PE1 com label match ip address 2 set mpls-label! 2.6 P2 Router Reflector !Hostname P2-RR!ip cef!mpls label protocol ldpip multicast-routing!!interface Loopback0 ip address 200.200.200.200 255.255.255.255 ip pim sparse-mode ip router isis!interface FastEthernet0/0 ip address 24.24.24.200 255.255.255.0 ip pim sparse-mode ip router isis no shutdown du full mpls ip!interface FastEthernet1/0 ip address 32.32.32.200 255.255.255.0 ip pim