L2私有专用网 L3私有专用网 互通

R1=======================

int lo 0
ip add 1.1.1.1 255.255.255.255

int f0/0
no sh
int f0/0.12
en do 12
ip add 12.1.1.1 255.255.255.0

int f0/0.21
en do 21
ip add 15.1.1.1 255.255.255.0

router rip
ver 2
no au
net 12.0.0.0
net 1.0.0.0

R2=======================


ip cef
mpls i
mpl lab pro ldp
mpl lab r 2000 2999
mpl ldp route lo 0

ip vrf ABC
rd 1:1
route- 1:1

int lo 0
ip add 2.2.2.2 255.255.255.255
ip router isis

int f0/0
no sh
int f0/0.12
en do 12
ip vrf for ABC
ip add 12.1.1.2 255.255.255.0

int f0/0.21
en do 21
xconnect 4.4.4.4 100 encapsulation mpls

int f0/0.23
en do 23
ip add 23.1.1.2 255.255.255.0
ip router isis
mpls i

router isis
net 49.0000.0000.0002.00

router bgp 100
bgp route 2.2.2.2
nei 4.4.4.4 remote 100
nei 4.4.4.4 up lo 0
add vpnv4
nei 4.4.4.4 act

add ipv4 vrf ABC
red rip

router rip
ver 2
no au
add ipv4 vrf ABC
ver 2
no au
net 12.0.0.0
red bgp 100 met 1


R3=======================

ip cef
mpl i
mpl lab pro ldp
mpl lab r 3000 3999
mpl ldp route lo 0

int f0/0
no sh
int f0/0.23
en do 23
ip add 23.1.1.3 255.255.255.0
ip router isis
mpls i

int lo 0
ip add 3.3.3.3 255.255.255.255
ip router isis

int f0/0.34
en do 34
ip add 34.1.1.3 255.255.255.0
ip router isis
mpls i

router isis
net 49.0000.0000.0003.00


R4=======================

ip cef
mpl i
mpl lab pro ldp
mpl lab r 4000 4999
mpl ldp route lo 0

ip vrf ABC
rd 1:1
route 1:1

int lo 0
ip add 4.4.4.4 255.255.255.255
ip router isis

int f0/0
no sh
int f0/0.34
en do 34
ip add 34.1.1.4 255.255.255.0
ip router isis
mpls i

int f0/0.45
en do 45
xconnect 2.2.2.2 100 en mpls

int f0/0.46
en do 46
ip vrf for ABC
ip add 46.1.1.4 255.255.255.0

router isis
net 49.0000.0000.0004.00

router bgp 100
nei 2.2.2.2 remote 100
nei 2.2.2.2 up lo 0
add vpnv4
nei 2.2.2.2 act

add ipv4 vrf ABC
red rip

router rip
ver 2
no au
add ipv4 vrf ABC
ver 2
no au
net 46.0.0.0
red bgp 100 met 1


R5=======================

int lo 0
ip add 5.5.5.5 255.255.255.255

int f0/0
no sh
int f0/0.45
en do 45
ip add 15.1.1.5 255.255.255.0


R6=======================

int lo 0
ip add 6.6.6.6 255.255.255.255

int f0/0
no sh
int f0/0.46
en do 46
ip add 46.1.1.6 255.255.255.0

router rip
ver 2 
no au
net 6.0.0.0
net 46.0.0.0


 

posted @ 2020-04-24 08:28  cyrusxx  阅读(132)  评论(0编辑  收藏  举报