Press ESC to close

MPLSVPN PE-CE使用BGP

mpls/vpn PE-CE(BGP)
按照步骤分解:

1 配置PE上的VRF
2 配置运营商PE-P-PE直连接口
3.配置运营商OSPF
4.配置运营商MPLS
5.配置运营商BGP
6.配置运营商PE 设备(到CE的BGP)
7.配置客户端CE的路由器-PE路由器BGP

1 配置PE上的VRF #

PE1:


PE1:
ip vpn-instance VPN1
ipv4-family
route-distinguisher 1:1
vpn-target 1:1 ex
vpn-target 1:1 im
ip vpn-instance VPN2
ipv4-family
route-distinguisher 2:2
vpn-target 2:2 ex
vpn-target 2:2 im

PE2:


PE2:
ip vpn-instance VPN1
ipv4-family
route-distinguisher 1:1
vpn-target 1:1 ex
vpn-target 1:1 im
ip vpn-instance VPN2
ipv4-family
route-distinguisher 2:2
vpn-target 2:2 ex
vpn-target 2:2 im

2 配置运营商PE-P-PE直连接口 #


R3:
sys
sys PE1
int e0/0/0
ip add 34.0.0.3 24
int loo0
ip add 3.3.3.3 24
int e0/0/1
ip bind vpn-instance VPN1
ip add 192.168.0.2 24
int g0/0/0
ip bind vpn-instance VPN2
ip add 192.168.0.2 24

 

R4:


R4:
sys
sys P
int e0/0/0
ip add 34.0.0.4 24
int e0/0/1
ip add 45.0.0.4 24
int loo0
ip add 4.4.4.4 24

R5:


R5:
sys
sys PE2
int e0/0/0
ip add 45.0.0.5 24
int loo0
ip add 5.5.5.5 24
int e0/0/1
ip bind vpn-instance VPN1
ip add 172.16.0.2 24
int g0/0/0
ip bind vpn-instance VPN2
ip add 172.16.0.2 24

3. 配置运营商OSPF #

R3:


R3:
sys
ospf 1 router-id 3.3.3.3
area 0
net 3.3.3.3 0.0.0.0
net 34.0.0.3 0.0.0.0
quit

R4:

R4:
sys
ospf 1 router-id 4.4.4.4
area 0
net 4.4.4.4 0.0.0.0
net 34.0.0.4 0.0.0.0
net 45.0.0.4 0.0.0.0
quit

R5:

R5:
sys
ospf 1 router-id 5.5.5.5
area 0
net 5.5.5.5 0.0.0.0
net 45.0.0.5 0.0.0.0
quit

检查:

配置完成:
dis ospf int
dis ospf peer
dis ospf lsdb
dis ip routing

4.配置运营商MPLS #

R3:

R3:
sys
mpls lsr-id 3.3.3.3
mpls 
mpls ldp
int e0/0/0
mpls 
mpls ldp
quit

R4:

R4:
sys
mpls lsr-id 4.4.4.4
mpls
mpls ldp
int e0/0/0
mpls 
mpls ldp
int e0/0/1
mpls
mpls ldp
quit

R5

</pre><pre>r5: 
sys
mpls lsr-id 5.5.5.5
mpls
mpls ldp
int e0/0/0
mpls
mpls ldp

5.配置运营商BGP #

R3

R3:
sys
bgp 300
peer 5.5.5.5 as-number 300
peer 5.5.5.5 conn loo0 
ipv4-family vpnv4 
peer 5.5.5.5 enable
quit

R5:

R5:
sys
bgp 300
peer 5.5.5.5 as-number 300
peer 5.5.5.5 conn loo0 
ipv4-family vpnv4 
peer 5.5.5.5 enable

 

配置完成检查


配置完成:
dis bgp peer
dis bgp vpnv4 all peer

 

6.配置运营商PE 设备(到CE的BGP) #

R3

R3:
sys
bgp 300 
ipv4-family vpn-instance VPN1
peer 192.168.0.1 as-number 100
import dir
ipv4-family vpn-instance VPN2
peer 192.168.0.1 as-number 100
import dir
quit

R5

sys 
ipv4-family vpn-instance VPN1
peer 172.16.0.1 as-number 200
import dir
ipv4-family vpn-instance VPN2
peer 172.16.0.1 as-number 200
import dir

7.配置客户端CE的路由器-PE路由器BGP #

R1

R1:
sys
sys VPN1CE1
int e0/0/0
ip add 192.168.0.1 24
int loo0
ip add 1.1.1.1 24
bgp 100
peer 192.168.0.2 as-number 300
net 1.1.1.0 24

R2

</pre>
R2:
sys
sys VPN2CE1
int e0/0/0
ip add 192.168.0.1 24
int loo0
ip add 1.1.1.1 24
bgp 100
peer 192.168.0.2 as-number 300
net 1.1.1.0 24
quit

&nbsp;
<pre>

R6

R6:
sys
sys VPN1CE2
int loo0
ip add 2.2.2.2 24
int e0/0/0
ip add 172.16.0.1 24
bgp 200
peer 172.16.0.2 as-number 300
net 2.2.2.0 24
quit

R7

R7:
sys
sys VPN2CE2
int loo0
ip add 2.2.2.2 24
int e0/0/0
ip add 172.16.0.1 24
bgp 200
peer 172.16.0.2 as-number 300
net 2.2.2.0 24
quit

发表回复