Sunteți pe pagina 1din 8

R2-----------------------------------------------------

conf t
int loo 0
ip add 1.1.1.2 255.255.255.255
int f 0/0
description R5
ip add 172.16.0.1 255.255.255.252
mpls ip
no shu
int f 3/0
description R3
ip add 172.16.0.9 255.255.255.252
mpls ip
no shu
int f 0/1
description R8
ip add 172.16.0.13 255.255.255.252
mpls ip
no shu
int f 2/0
description R13
ip add 172.16.0.21 255.255.255.252
mpls ip
no shu
exit

router ospf 1
router-id 1.1.1.2
log-adjacency-changes
net 1.1.1.2 0.0.0.0 area 0
net 172.16.0.0 0.0.0.3 area 0
net 172.16.0.8 0.0.0.3 area 0
net 172.16.0.12 0.0.0.3 area 0
net 172.16.0.20 0.0.0.3 area 0
end

R5-------------------------------------------------------
PE

conf t
ip vrf c1
rd 100:10
route-target export 100:10
route-target import 100:10

ip vrf c2
rd 200:20
route-target export 200:20
route-target import 200:20
exit

int loo 0
ip add 1.1.1.5 255.255.255.255

int f 0/0
description R2
ip add 172.16.0.2 255.255.255.252
mpls ip
no shu
int f 0/1
description R3
ip add 172.16.0.18 255.255.255.252
mpls ip
no shu
int f 1/0
ip vrf forwarding c1
ip add 192.168.0.1 255.255.255.252
no shu
int f 2/0
ip vrf forwarding c2
ip add 192.168.0.5 255.255.255.252
no shu
exit
router ospf 1
router-id 1.1.1.5
log-adjacency-changes
net 1.1.1.5 0.0.0.0 area 0
net 172.16.0.0 0.0.0.3 area 0
net 172.16.0.16 0.0.0.3 area 0
exit

router bgp 123


no synchr
bgp router-id 1.1.1.5
bgp log-neighbor-changes
neighbor 1.1.1.8 remote-as 123
neighbor 1.1.1.8 update-source loo0
neighbor 1.1.1.13 remote-as 123
neighbor 1.1.1.13 update-source loo0
no auto-sumary
!
address vpnv4
neig 1.1.1.8 activate
neig 1.1.1.8 send-community both
neig 1.1.1.8 next-hop-self
neig 1.1.1.13 activate
neig 1.1.1.13 send-community both
neig 1.1.1.13 next-hop-self
exit-address-family

address ipv4 vrf c2


neighbor 192.168.0.6 remote-as 200
neighbor 192.168.0.6 activate
neighbor 192.168.0.6 as-override
no auto-summ
no synchronization
exit

address ipv4 vrf c1


neighbor 192.168.0.2 remote-as 100
neighbor 192.168.0.2 activate
neighbor 192.168.0.2 as-override
no auto-summ
no synchronization
exit

end

R3-----------------------------------------------------
P

conf t
int loo 0
ip add 1.1.1.3 255.255.255.255
int f 0/0
description R8
ip add 172.16.0.5 255.255.255.252
mpls ip
no shu
int f 3/0
description R2
ip add 172.16.0.10 255.255.255.252
mpls ip
no shu
int f 0/1
description R5
ip add 172.16.0.17 255.255.255.252
mpls ip
no shu
int f 1/1
description R13
ip add 172.16.0.25 255.255.255.252
mpls ip
no shu
exit

router ospf 1
router-id 1.1.1.3
log-adjacency-changes
net 1.1.1.3 0.0.0.0 area 0
net 172.16.0.4 0.0.0.3 area 0
net 172.16.0.8 0.0.0.3 area 0
net 172.16.0.16 0.0.0.3 area 0
net 172.16.0.24 0.0.0.3 area 0
end

R8-------------------------------------------------------
PE

conf t
ip vrf c1
rd 100:10
route-target export 100:10
route-target import 100:10

ip vrf c2
rd 200:20
route-target export 200:20
route-target import 200:20
exit

int loo 0
ip add 1.1.1.8 255.255.255.255

int f 0/0
description R3
ip add 172.16.0.6 255.255.255.252
mpls ip
no shu
int f 0/1
description R2
ip add 172.16.0.14 255.255.255.252
mpls ip
no shu
int f 1/0
ip vrf forwarding c1
ip add 192.168.0.9 255.255.255.252
no shu
int f 2/0
ip vrf forwarding c2
ip add 192.168.0.13 255.255.255.252
no shu
exit
router ospf 1
router-id 1.1.1.8
log-adjacency-changes
net 1.1.1.8 0.0.0.0 area 0
net 172.16.0.4 0.0.0.3 area 0
net 172.16.0.12 0.0.0.3 area 0
exit

router bgp 123


no synchr
bgp router-id 1.1.1.8
bgp log-neighbor-changes
neighbor 1.1.1.5 remote-as 123
neighbor 1.1.1.5 update-source loo0
neighbor 1.1.1.13 remote-as 123
neighbor 1.1.1.13 update-source loo0
no auto-sumary
!
address vpnv4
neig 1.1.1.5 activate
neig 1.1.1.5 send-community both
neig 1.1.1.5 next-hop-self
neig 1.1.1.13 activate
neig 1.1.1.13 send-community both
neig 1.1.1.13 next-hop-self
exit-address-family

address ipv4 vrf c2


neighbor 192.168.0.14 remote-as 200
neighbor 192.168.0.14 activate
neighbor 192.168.0.14 as-override
no auto-summ
no synchronization
exit

address ipv4 vrf c1


neighbor 192.168.0.10 remote-as 100
neighbor 192.168.0.10 activate
neighbor 192.168.0.10 as-override
no auto-summ
no synchronization
exit

end

R13-------------------------------------------------------
PE

conf t
ip vrf c1
rd 100:10
route-target export 100:10
route-target import 100:10

ip vrf c2
rd 200:20
route-target export 200:20
route-target import 200:20
exit

int loo 0
ip add 1.1.1.13 255.255.255.255

int f 1/1
description R3
ip add 172.16.0.26 255.255.255.252
mpls ip
no shu
int f 2/0
description R2
ip add 172.16.0.22 255.255.255.252
mpls ip
no shu
int f 1/0
no shut
int f 1/0.100
encapsulation dot1q
ip vrf forwarding c1
ip add 10.10.10.2 255.255.255.254
int f 1/0.200
encapsulation dot1q
ip vrf forwarding c2
ip add 10.10.10.4 255.255.255.254
no shu
exit
router ospf 1
router-id 1.1.1.13
log-adjacency-changes
net 1.1.1.13 0.0.0.0 area 0
net 172.16.0.24 0.0.0.3 area 0
net 172.16.0.20 0.0.0.3 area 0
exit

router bgp 123


no synchr
bgp router-id 1.1.1.13
bgp log-neighbor-changes
neighbor 1.1.1.5 remote-as 123
neighbor 1.1.1.5 update-source loo0
neighbor 1.1.1.8 remote-as 123
neighbor 1.1.1.8 update-source loo0
no auto-sumary

address vpnv4
neig 1.1.1.5 activate
neig 1.1.1.5 send-community both
neig 1.1.1.5 next-hop-self
neig 1.1.1.8 activate
neig 1.1.1.8 send-community both
neig 1.1.1.8 next-hop-self
exit-address-family

address ipv4 vrf c2


neighbor 10.10.10.5 remote-as 200
neighbor 10.10.10.5 activate
neighbor 10.10.10.5 as-override
no auto-summ
no synchronization
exit

address ipv4 vrf c1


neighbor 10.10.10.3 remote-as 200
neighbor 10.10.10.3 activate
neighbor 10.10.10.3 as-override
no auto-summ
no synchronization
exit

end

R9-------------------------------------------------------

conf t

int loo 0
ip add 1.1.1.9 255.255.255.255

int loo 1
ip add 190.100.10.1 255.255.255.0
int f 0/0
ip add 192.168.0.2 255.255.255.252
no shut
exit

router bgp 100


no synchr
bgp router-id 1.1.1.9
neighbor 192.168.0.1 remote-as 123
net 192.168.0.0 mask 255.255.255.252
net 190.100.10.0 mask 255.255.255.0
no auto-summary
end

R10-------------------------------------------------------

conf t

int loo 0
ip add 1.1.1.10 255.255.255.255

int loo 1
ip add 190.200.20.1 255.255.255.0

int f 0/0
ip add 192.168.0.6 255.255.255.252
no shut
exit

router bgp 200


no synchr
bgp router-id 1.1.1.10
neighbor 192.168.0.5 remote-as 123
net 192.168.0.4 mask 255.255.255.252
net 190.200.20.0 mask 255.255.255.0
no auto-summary
end

R11-------------------------------------------------------

conf t

int loo 0
ip add 1.1.1.11 255.255.255.255

int loo 1
ip add 196.100.10.1 255.255.255.0

int f 0/0
ip add 192.168.0.10 255.255.255.252
no shut
exit

router bgp 100


no synchr
bgp router-id 1.1.1.11
neighbor 192.168.0.1 remote-as 123
net 192.168.0.8 mask 255.255.255.252
net 196.100.10.0 mask 255.255.255.0
no auto-summary
end

R12-------------------------------------------------------

conf t

int loo 0
ip add 1.1.1.12 255.255.255.255

int loo 1
ip add 196.200.20.1 255.255.255.0

int f 0/0
ip add 192.168.0.14 255.255.255.252
no shut
exit

router bgp 200


no synchr
bgp router-id 1.1.1.12
neighbor 192.168.0.13 remote-as 123
net 192.168.0.12 mask 255.255.255.252
net 196.200.20.0 mask 255.255.255.0
no auto-sumary
end

S-ar putea să vă placă și