Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ********* PC1 *********
- !
- interface Ethernet0/0
- ip address 100.0.0.1 255.255.255.0
- !
- ip route 0.0.0.0 0.0.0.0 100.0.0.254
- !
- ********* PE1 *********
- hostname PE1
- !
- vrf definition A
- rd 1.1.1.1:1
- route-target export 1:1
- route-target import 1:1
- !
- address-family ipv4
- import map DEFAULT
- exit-address-family
- !
- ip cef
- !
- !
- interface Loopback1
- ip address 1.1.1.1 255.255.255.255
- ip ospf 1 area 0
- !
- interface Ethernet0/0
- vrf forwarding A
- ip address 100.0.0.254 255.255.255.0
- !
- interface Ethernet0/1
- ip address 10.0.0.0 255.255.255.254
- ip ospf 1 area 0
- mpls ip
- !
- router ospf 1
- !
- router bgp 1
- bgp log-neighbor-changes
- no bgp default ipv4-unicast
- neighbor 5.5.5.5 remote-as 1
- neighbor 5.5.5.5 update-source Loopback1
- !
- address-family ipv4
- neighbor 5.5.5.5 activate
- exit-address-family
- !
- address-family vpnv4
- neighbor 5.5.5.5 activate
- neighbor 5.5.5.5 send-community extended
- exit-address-family
- !
- address-family ipv4 vrf A
- redistribute connected
- exit-address-family
- !
- ip prefix-list DEFAULT seq 5 permit 0.0.0.0/0
- !
- route-map DEFAULT permit 10
- match ip address prefix-list DEFAULT
- ********* P2 *********
- interface Loopback1
- ip address 2.2.2.2 255.255.255.255
- ip ospf 1 area 0
- !
- interface Ethernet0/1
- ip address 10.0.0.1 255.255.255.254
- ip ospf 1 area 0
- mpls ip
- !
- interface Ethernet0/2
- ip address 10.0.0.2 255.255.255.254
- ip ospf 1 area 0
- mpls ip
- !
- ********* HUB *********
- vrf definition A
- rd 5.5.5.5:1
- route-target export 1:1
- route-target import 1:1
- !
- address-family ipv4
- exit-address-family
- !
- ip cef
- !
- interface Loopback1
- ip address 5.5.5.5 255.255.255.255
- ip ospf 1 area 0
- !
- interface Ethernet0/0
- vrf forwarding A
- ip address 50.0.0.254 255.255.255.0
- !
- interface Ethernet0/1
- no ip address
- shutdown
- !
- interface Ethernet0/2
- ip address 10.0.0.3 255.255.255.254
- ip ospf 1 area 0
- mpls ip
- !
- interface Ethernet0/3
- ip address 10.0.0.5 255.255.255.254
- ip ospf 1 area 0
- mpls ip
- !
- router ospf 1
- !
- router bgp 1
- bgp log-neighbor-changes
- no bgp default ipv4-unicast
- neighbor 1.1.1.1 remote-as 1
- neighbor 1.1.1.1 update-source Loopback1
- neighbor 3.3.3.3 remote-as 1
- neighbor 3.3.3.3 update-source Loopback1
- !
- address-family ipv4
- exit-address-family
- !
- address-family vpnv4
- neighbor 1.1.1.1 activate
- neighbor 1.1.1.1 send-community extended
- neighbor 1.1.1.1 route-reflector-client
- neighbor 3.3.3.3 activate
- neighbor 3.3.3.3 send-community extended
- neighbor 3.3.3.3 route-reflector-client
- exit-address-family
- !
- address-family ipv4 vrf A
- redistribute connected
- redistribute static
- default-information originate
- exit-address-family
- ip route vrf A 0.0.0.0 0.0.0.0 50.0.0.1
- !
- !
- ********* P4 *********
- interface Loopback1
- ip address 4.4.4.4 255.255.255.255
- ip ospf 1 area 0
- !
- interface Ethernet0/0
- no ip address
- shutdown
- !
- interface Ethernet0/1
- ip address 10.0.0.7 255.255.255.254
- ip ospf 1 area 0
- mpls ip
- !
- interface Ethernet0/2
- no ip address
- shutdown
- !
- interface Ethernet0/3
- ip address 10.0.0.4 255.255.255.254
- ip ospf 1 area 0
- mpls ip
- !
- ********* P3 *********
- hostname PE3
- !
- vrf definition A
- rd 3.3.3.3:1
- route-target export 1:1
- route-target import 1:1
- !
- address-family ipv4
- import map DEFAULT
- exit-address-family
- !
- ip cef
- !
- !
- interface Loopback1
- ip address 3.3.3.3 255.255.255.255
- ip ospf 1 area 0
- !
- interface Ethernet0/0
- vrf forwarding A
- ip address 200.0.0.254 255.255.255.0
- !
- interface Ethernet0/1
- ip address 10.0.0.6 255.255.255.254
- ip ospf 1 area 0
- mpls ip
- !
- router ospf 1
- !
- router bgp 1
- bgp log-neighbor-changes
- no bgp default ipv4-unicast
- neighbor 5.5.5.5 remote-as 1
- neighbor 5.5.5.5 update-source Loopback1
- !
- address-family ipv4
- exit-address-family
- !
- address-family vpnv4
- neighbor 5.5.5.5 activate
- neighbor 5.5.5.5 send-community extended
- exit-address-family
- !
- address-family ipv4 vrf A
- redistribute connected
- exit-address-family
- !
- ip prefix-list DEFAULT seq 5 permit 0.0.0.0/0
- !
- route-map DEFAULT permit 10
- match ip address prefix-list DEFAULT
- ********* PC2 *********
- interface Ethernet0/0
- ip address 200.0.0.1 255.255.255.0
- !
- ip route 0.0.0.0 0.0.0.0 200.0.0.254
- !
Advertisement
Add Comment
Please, Sign In to add comment