|

- 社区积分
- 464
- 技术积分
- 1382
- 阅读权限
- 40
- 注册时间
- 2007-7-21
论坛徽章 2 |
楼主
发表于 2007-9-8 11:14
| 只看该作者
MSR系列路由器MPLS基本功能的配置
一、组网需求:
实现网络部分流量走MPLS标签转发
设备清单:MSR系列路由器3台
二、组网图:
附件1
三、配置步骤:
适用设备和版本:MSR系列、Version 5.20, Beta 1105后所有版本。
RTC配置:
#
router id 3.3.3.3 //BGP的router id
#
mpls lsr-id 3.3.3.3 //MPLS的LSR-ID
#
mpls //全局使能MPLS
#
mpls ldp //全局使能MPLS LDP
#
interface Ethernet0/0
port link-mode route
ip address 1.3.0.3 255.255.255.0
mpls //接口使能MPLS
mpls ldp //接口使能MPLS LDP
#
interface LoopBack0 //router id 和 MPLS LSR-ID
ip address 3.3.3.3 255.255.255.255
#
ospf 1 //OSPF保证全网互通
area 0.0.0.0
network 3.3.3.3 0.0.0.0
network 1.3.0.0 0.0.0.255
#
RTA配置:
#
router id 1.1.1.1 //BGP的router id
#
mpls lsr-id 1.1.1.1 //MPLS的LSR-ID
#
mpls //使能MPLS
#
mpls ldp //全局使能MPLS LDP
#
interface Ethernet0/0
port link-mode route
ip address 1.2.0.1 255.255.255.0
mpls //接口使能MPLS
mpls ldp //接口使能MPLS LDP
#
interface Ethernet0/1
port link-mode route
ip address 1.3.0.1 255.255.255.0
mpls //接口使能MPLS
mpls ldp //接口使能MPLS LDP
#
interface LoopBack0 //router id 和 MPLS LSR-ID
ip address 1.1.1.1 255.255.255.255
#
ospf 1 //OSPF保证全网互通
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 1.3.0.0 0.0.0.255
network 1.2.0.0 0.0.0.255
#
RTB配置:
#
router id 2.2.2.2 //BGP的router id
#
mpls lsr-id 2.2.2.2 //MPLS的LSR ID
#
mpls //全局使能MPLS
#
mpls ldp //全局使能MPLS LDP
#
interface Ethernet0/0
port link-mode route
ip address 1.2.0.2 255.255.255.0
mpls //接口使能MPLS
mpls ldp //接口使能MPLS LDP
#
interface LoopBack0 //router id 和 MPLS LSR-ID
ip address 2.2.2.2 255.255.255.255
#
ospf 1
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 1.2.0.0 0.0.0.255
#
四、配置关键点:
router id和mpls lsr-id最好都使用同一个Loopback口的地址,在保证OSPF连通性的情况下在路由器全局和接口视图下都使能MPLS和MPLS LDP。
五、实验分析
无 |
|