MSR路由器
MPLS TE CRLDP + OSPF功能的配置
关键字:MSR;MPLS;TE;CRLDP;OSPF
一、组网需求:
RTA、RTB、RTC、RTD通过OSPF发布路由,RTA通过CR-LDP建立一条到RTD的TE隧道
设备清单:MSR路由器4台
二、组网图:
三、配置步骤:
适用设备和版本:MSR、Version 5.20, Beta 1105后所有版本。
RTA配置
#
router id 1.1.1.1
#
mpls lsr-id 1.1.1.1
#
#
mpls
//全局使能TE
mpls te
//使能cspf
mpls te cspf
#
//使能mpls ldp
mpls ldp
#
interface Ethernet0/0
port link-mode route
description connects to RTB
ip address 1.2.0.1 255.255.255.0
mpls
//接口使能mpls te
mpls te
//指定接口的最大链路带宽BC0
mpls te max-link-bandwidth 100
//指定接口的最大预留带宽BC1,必须小于BC0
mpls te max-reservable-bandwidth 50
//接口使能ldp
mpls ldp
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
#
interface Tunnel0
ip address 1.4.0.1 255.255.255.252
//指定隧道类型
tunnel-protocol mpls te
//指定te信令协议为crldp
mpls te signal-protocol crldp
//指定隧道目的
destination 4.4.4.4
//指定隧道需要预留的bc0带宽
mpls te bandwidth bc0 20
//执行上述配置
mpls te commit
#
ospf 1
//支持type 10 LSA的发送与接收
opaque-capability enable
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 1.2.0.0 0.0.0.255
//使能该区域的te数据采集
mpls-te enable
#
//引入流量的静态路由
ip route-static 4.4.4.4 255.255.255.255 Tunnel0 preference 1
#
RTB配置
#
router id 2.2.2.2
#
mpls lsr-id 2.2.2.2
#
mpls
//全局使能TE
mpls te
//使能cspf
mpls te cspf
#
//使能mpls ldp
mpls ldp
#
interface Ethernet0/0
port link-mode route
description connects to RTA
ip address 1.2.0.2 255.255.255.0
mpls
//接口使能mpls te
mpls te
//指定接口的最大链路带宽BC0
mpls te max-link-bandwidth 100
//指定接口的最大预留带宽BC1,必须小于BC0
mpls te max-reservable-bandwidth 50
//接口使能ldp
mpls ldp
#
interface Ethernet0/1
port link-mode route
description connects to RTC
ip address 2.3.0.2 255.255.255.0
mpls
//接口使能mpls te
mpls te
//指定接口的最大链路带宽BC0
mpls te max-link-bandwidth 100
//指定接口的最大预留带宽BC1,必须小于BC0
mpls te max-reservable-bandwidth 50
//接口使能ldp
mpls ldp
#
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
#
ospf 1
//支持type 10 LSA的发送与接收
opaque-capability enable
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 1.2.0.0 0.0.0.255
network 2.3.0.0 0.0.0.255
//使能该区域的te数据采集
mpls-te enable
#
RTC配置
#
router id 3.3.3.3
#
mpls lsr-id 3.3.3.3
#
mpls
//全局使能TE
mpls te
//使能cspf
mpls te cspf
#
//使能mpls ldp
mpls ldp
#
interface Ethernet0/0
port link-mode route
description connects to RTB
ip address 2.3.0.3 255.255.255.0
mpls
//接口使能mpls te
mpls te
//指定接口的最大链路带宽BC0
mpls te max-link-bandwidth 100
//指定接口的最大预留带宽BC1,必须小于BC0
mpls te max-reservable-bandwidth 50
//接口使能ldp
mpls ldp
#
interface Ethernet0/1
port link-mode route
description connects to RTD
ip address 3.4.0.3 255.255.255.0
mpls
//接口使能mpls te
mpls te
//指定接口的最大链路带宽BC0
mpls te max-link-bandwidth 100
//指定接口的最大预留带宽BC1,必须小于BC0
mpls te max-reservable-bandwidth 50
//接口使能ldp
mpls ldp
#
interface LoopBack0
ip address 3.3.3.3 255.255.255.255
#
ospf 1
//支持type 10 LSA的发送与接收
opaque-capability enable
area 0.0.0.0
network 3.3.3.3 0.0.0.0
network 2.3.0.0 0.0.0.255
network 3.4.0.0 0.0.0.255
//使能该区域的te数据采集
mpls-te enable
#
RTD配置
#
router id 4.4.4.4
#
mpls lsr-id 4.4.4.4
#
mpls
//全局使能TE
mpls te
//使能cspf
mpls te cspf
#
//使能mpls ldp
mpls ldp
#
interface Ethernet0/0
port link-mode route
description connects to RTC
ip address 3.4.0.4 255.255.255.0
mpls
//接口使能mpls te
mpls te
//指定接口的最大链路带宽BC0
mpls te max-link-bandwidth 100
//指定接口的最大预留带宽BC1,必须小于BC0
mpls te max-reservable-bandwidth 50
//接口使能ldp
mpls ldp
#
interface LoopBack0
ip address 4.4.4.4 255.255.255.255
#
ospf 1
//支持type 10 LSA的发送与接收
opaque-capability enable
area 0.0.0.0
network 4.4.4.4 0.0.0.0
network 3.4.0.0 0.0.0.255
//使能该区域的te数据采集
mpls-te enable
#
四、配置关键点:
1) 首先配置OSPF,保证所有路由器路由可达;
2) 使能OSPF的2个TE扩展配置,所有路由器需要在同一个区域;
3) 在全局配置MPLS的TE和CSPF;
4) 在接口视图下配置MPLS TE和最大链路带宽和最大预留带宽;
5) 使能各个接口的LDP;
6) 在TE隧道的头节点配置Tunnel,指定隧道协议为MPLS TE;
7) 指定Tunnel接口TE信令为CRLDP,默认为RSVP-TE;
8) 执行Tunnel口下的TE配置,并通过静态路由引入流量。
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作