MSR系列路由器
MPLS L2VPN Kompella配置
关键词:MSR;MPLS;L2VPN;Kompella
一、组网需求:
PEA为CEA提供Kompella接入,PEB为CEB提供Kompella接入,PEA、PEB各自为接入通过BGP分发标签。
设备清单:MSR系列路由器5台
二、组网图:
三、配置步骤:
设备和版本:MSR系列、Version 5.20, Release 1509
CEA配置:
#
interface Ethernet0/0
port link-mode route
ip address 192.168.0.1
255.255.255.0
#
PEA配置:
#
router id
#
mpls lsr-id
#
mpls
#
mpls l2vpn
#
mpls ldp
#
interface Ethernet0/0
port link-mode route
#
interface Ethernet0/1
port link-mode route
ip address
mpls
mpls
ldp
#
interface LoopBack0
ip
address
#
bgp 1
undo
synchronization
peer
peer
#
l2vpn-family //分发L2VPN标签
peer
#
ospf 1
are
network
network
#
mpls l2vpn
vpna encapsulation ethernet
route-distinguisher
1:1
vpn-target 1:1 import-extcommunity
vpn-target 1:1 export-extcommunity
ce
cea id 1 range 5 default-offset 0
connection
ce-offset 2 interface Ethernet0/0
#
P配置:
#
router id
#
mpls lsr-id
#
mpls
#
mpls ldp
#
interface Ethernet0/0
port link-mode route
ip address
mpls
mpls
ldp
#
interface Ethernet0/1
port link-mode route
ip address
mpls
mpls
ldp
#
interface LoopBack0
ip
address
#
ospf 1
are
network
network
network
#
PEB配置:
#
router id
#
mpls lsr-id
#
mpls
#
mpls l2vpn
#
mpls ldp
#
interface Ethernet0/0
port link-mode route
#
interface Ethernet0/1
port link-mode route
ip address
mpls
mpls
ldp
#
interface LoopBack0
ip
address
#
bgp 1
undo
synchronization
peer
peer
#
l2vpn-family //分发L2VPN标签
peer
#
ospf 1
are
network
network
#
mpls l2vpn
vpna encapsulation ethernet
route-distinguisher
2:1
vpn-target 1:1 import-extcommunity
vpn-target 1:1 export-extcommunity
ce
ceb id 2 range 5 default-offset 0
connection ce-offset 1 interface Ethernet0/0
#
CEB配置:
#
interface Ethernet0/0
port link-mode route
ip address 192.168.0.2
255.255.255.0
#
四、配置关键点:
1. PE和P之间要保证MPLS互通,即建立OSPF和LDP连接;
2. PE连接CE的2个接口类型必须一致;
3. PE之间L2VPN实例配置要注意ce id及其connection ce-offset的设置必须要匹配,range也要一致。
五、实验分析