***********R01*********** sys sysname R01 int loo 0 ip add 1.1.1.1 32 int gi 0/0/0 ip add 192.168.17.1 24 int gi 0/0/1 ip add 192.168.18.1 24 int gi 0/0/2 ip add 192.168.12.1 24 ospf 1 area 0 network 1.1.1.1 0.0.0.0 network 192.168.12.1 0.0.0.0 return save y # ipv4-family route-distinguisher 64500:1 vpn-target 64500:1 export-extcommunity vpn-target 64500:1 import-extcommunity # # ip vpn-instance OPET ipv4-family route-distinguisher 64500:1 vpn-target 64500:1 export-extcommunity vpn-target 64500:1 import-extcommunity # ip vpn-instance SHELL ipv4-family route-distinguisher 64600:1 vpn-target 64600:1 export-extcommunity vpn-target 64600:1 import-extcommunity # interface GigabitEthernet0/0/0 ip binding vpn-instance OPET ip address 192.168.17.1 255.255.255.0 # interface GigabitEthernet0/0/1 ip binding vpn-instance SHELL ip address 192.168.18.1 255.255.255.0 # ip route-static vpn-instance OPET 7.7.7.7 255.255.255.255 192.168.17.7 ip route-static vpn-instance OPET 192.168.1.0 255.255.255.0 192.168.17.7 # bgp 1071 # ipv4-family unicast undo synchronization # ipv4-family vpn-instance SHELL peer 192.168.18.8 as-number 64600 # # interface GigabitEthernet0/0/2 ip address 192.168.12.1 255.255.255.0 mpls mpls ldp # # bgp 1071 peer 4.4.4.4 as-number 1071 peer 4.4.4.4 connect-interface LoopBack0 # ipv4-family unicast undo synchronization undo peer 4.4.4.4 enable # ipv4-family vpnv4 policy vpn-target peer 4.4.4.4 enable # ipv4-family vpn-instance OPET import-route direct import-route static # ipv4-family vpn-instance SHELL peer 192.168.18.8 as-number 64600 # ***********R02*********** sys sysname R02 int loo 0 ip add 2.2.2.2 32 int gi 0/0/2 ip add 192.168.12.2 24 int gi 0/0/1 ip add 192.168.23.2 24 ospf 1 area 0 network 2.2.2.2 0.0.0.0 network 192.168.23.2 0.0.0.0 network 192.168.12.2 0.0.0.0 return save y # interface GigabitEthernet0/0/1 ip address 192.168.23.2 255.255.255.0 mpls mpls ldp # interface GigabitEthernet0/0/2 ip address 192.168.12.2 255.255.255.0 mpls mpls ldp # ***********R03*********** sys sysname R03 int loo 0 ip add 3.3.3.3 32 int gi 0/0/1 ip add 192.168.23.3 24 int gi 0/0/2 ip add 192.168.34.3 24 ospf 1 area 0 network 3.3.3.3 0.0.0.0 network 192.168.23.3 0.0.0.0 network 192.168.34.3 0.0.0.0 return save y # interface GigabitEthernet0/0/1 ip address 192.168.23.3 255.255.255.0 mpls mpls ldp # interface GigabitEthernet0/0/2 ip address 192.168.34.3 255.255.255.0 mpls mpls ldp # ***********R04*********** sys sysname R04 int loo 0 ip add 4.4.4.4 32 int gi 0/0/0 ip add 192.168.45.4 24 int gi 0/0/1 ip add 192.168.46.4 24 int gi 0/0/2 ip add 192.168.34.4 24 ospf 1 area 0 network 4.4.4.4 0.0.0.0 network 192.168.34.4 0.0.0.0 return save y # ip vpn-instance OPET ipv4-family route-distinguisher 64500:1 vpn-target 64500:1 export-extcommunity vpn-target 64500:1 import-extcommunity # ip vpn-instance SHELL ipv4-family route-distinguisher 64600:1 vpn-target 64600:1 export-extcommunity vpn-target 64600:1 import-extcommunity # interface GigabitEthernet0/0/0 ip binding vpn-instance OPET ip address 192.168.45.4 255.255.255.0 # interface GigabitEthernet0/0/1 ip binding vpn-instance SHELL ip address 192.168.46.4 255.255.255.0 # # ospf 2 vpn-instance OPET area 0.0.0.0 network 192.168.45.4 0.0.0.0 # # rip 1 vpn-instance SHELL undo summary version 2 network 192.168.46.0 # # interface GigabitEthernet0/0/2 ip address 192.168.34.4 255.255.255.0 mpls mpls ldp # # bgp 1071 peer 1.1.1.1 as-number 1071 peer 1.1.1.1 connect-interface LoopBack0 # ipv4-family unicast undo synchronization undo peer 1.1.1.1 enable # ipv4-family vpnv4 policy vpn-target peer 1.1.1.1 enable # ipv4-family vpn-instance OPET import-route direct import-route ospf 2 # ipv4-family vpn-instance SHELL import-route direct import-route rip 1 # # ospf 2 vpn-instance OPET import-route bgp # rip 1 vpn-instance SHELL import-route bgp # ***********R05*********** sys sysname R05 int loo 0 ip add 5.5.5.5 32 int gi 0/0/0 ip add 192.168.45.5 24 int gi 0/0/1 ip add 192.168.5.5 24 return save y # ospf 1 area 0.0.0.0 network 5.5.5.5 0.0.0.0 network 192.168.5.5 0.0.0.0 network 192.168.45.5 0.0.0.0 # ***********R06*********** sys sysname R06 int loo 0 ip add 6.6.6.6 32 int gi 0/0/1 ip add 192.168.46.6 24 int gi 0/0/0 ip add 192.168.6.6 24 return save y # rip 1 undo summary version 2 network 6.0.0.0 network 192.168.6.0 network 192.168.46.0 # ***********R07*********** sys sysname R07 int loo 0 ip add 7.7.7.7 32 int gi 0/0/0 ip add 192.168.17.7 24 int gi 0/0/1 ip add 192.168.1.7 24 return save y ip route-static 0.0.0.0 0 192.168.17.1 ***********R08*********** sys sysname R08 int loo 0 ip add 8.8.8.8 32 int gi 0/0/0 ip add int gi 0/0/1 ip add 192.168.18.8 24 int gi 0/0/0 ip add 192.168.1.8 24 return save y # bgp 64600 peer 192.168.18.1 as-number 1071 # ipv4-family unicast undo synchronization network 8.8.8.8 255.255.255.255 network 192.168.1.0 peer 192.168.18.1 enable #