MSR系列路由器
MPLS Carrier’s Carrier基本配置
关键词:MSR;MPLS;L3VPN;OSPF多实例
一、组网需求:
PEA和PEB为1级运营商的PE,分别连接2级运营商的出口CEA和CEB。
设备清单:MSR系列路由器4台
二、组网图:
三、配置步骤:
设备和版本:MSR系列、Version 5.20, Release 1509
CEA配置
#
router id
#
interface Ethernet0/0
port link-mode route
description connects to peA
ip
address
#
interface Ethernet0/1
port link-mode route
description connects to vpncc site1
ip
address 172.32.3.1 255.255.255.0
#
interface LoopBack0
description
router id
ip
address
#
ospf 1
are
network
network
network
172.32.3.0
#
PEA配置
#
router id
#
ip vpn-instance vpncc
route-distinguisher
1:1
vpn-target 1:1 export-extcommunity
vpn-target 1:1 import-extcommunity
#
mpls lsr-id
#
mpls
#
mpls ldp
#
interface Ethernet0/0
port link-mode route
description connects to peB
ip
address
mpls
mpls ldp
#
interface Ethernet0/1
port link-mode route
description connects to ceA
ip
binding vpn-instance vpncc
ip
address
#
interface LoopBack0
description
router id
ip
address
#
interface LoopBack1
description vpncc’s router id //用于OSPF多实例的router id
ip
binding vpn-instance vpncc
ip
address
#
bgp 1
undo
synchronization
peer
peer
#
ipv4-family vpnv4
peer
#
ipv4-family vpn-instance vpncc
import-route ospf 2
#
ospf 1
are
network
network
#
ospf 2 router-id
import-route bgp
are
network
network
#
PEB配置
#
router id
#
ip vpn-instance
vpncc
route-distinguisher
2:1
vpn-target 1:1 export-extcommunity
vpn-target 1:1 import-extcommunity
#
vlan 1
#
mpls lsr-id
#
mpls
#
mpls ldp
#
interface Ethernet0/0
port link-mode route
description connects to peA
ip
address
mpls
mpls ldp
#
interface Ethernet0/1
port link-mode route
description connects to ceB
ip
binding vpn-instance vpncc
ip
address
#
interface LoopBack0
description
router id
ip
address
#
interface
LoopBack1 //用于OSPF多实例的router id
description vpncc’s router id
ip
binding vpn-instance vpncc
ip
address
#
bgp 1
undo synchronization
peer
peer
#
ipv4-family
vpnv4
peer
#
ipv4-family vpn-instance vpncc
import-route ospf 2
#
ospf 1
are
network
network
#
ospf 2 router-id
import-route bgp
are
network
network
#
CEB配置
#
router id
#
interface LoopBack0
description
router id
ip
address
#
interface Ethernet0/0
port link-mode route
description connnects to peB
ip
address
#
interface Ethernet0/1
port link-mode route
description connects to vpncc site2
ip
address 172.32.4.1 255.255.255.0
#
ospf 1
are
network
network
network
172.32.4.0
#
四、配置关键点:
1. PE和CE之间运行OSPF多实例,注意引入BGP的vpn路由;
2. PE的BGP注意引入OSPF多实例的路由。
五、实验分析