MSR系列路由器
三台设备组网测试FRR功能的配置
关键字:MSR;MPLS;TE;Fast-Reroute;快速重路由;RSVP-TE;FRR;显式路径
一、组网需求:
Ingress、Egress和Bypass3台路由器按如下图组网,全网运行MPLS-TE、OSPF和RSVP-TE,在Ingress上通过配置2条显式路径,创建2个Tunnel接口(目的均为Egress),其中Tunnel0是主路径,Tunnel1是旁路径,在Ingress上配置FRR,使Tunnel1可以保护Ingress和Egress的直连链路,即当该直连链路中断,Tunnel0并不会Down,而是会自动引入到Tunnel1上
设备清单:MSR系列路由器3台
二、组网图
三、配置步骤:
适用设备和版本:MSR系列、Version 5.20, Beta 1105后所有版本。
Ingress配置
#
router id 1.1.1.1
#
mpls lsr-id 1.1.1.1
#
#
mpls
mpls te
//快速重路由刷新间隔为1秒
mpls te timer fast-reroute 1
//使能RSVP-TE,快速重路由只能使用RSVP-TE,不能使用CRLDP
mpls rsvp-te
mpls te cspf
#
//定义严格显式路径建立TE隧道主路径
explicit-path main
next hop 1.2.0.2
next hop 2.2.2.2
#
//旁路径的显式路径
explicit-path bypass
next hop 3.1.0.3
next hop 2.3.0.2
next hop 2.2.2.2
#
//Router ID和MPLS LSR ID
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
#
//连接Egress的接口
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 1.2.0.1 255.255.255.0
mpls
mpls te
mpls te max-link-bandwidth 100000
mpls te max-reservable-bandwidth 80000
//指定保护链路的旁路径为Tunnel1
mpls te fast-reroute bypass-tunnel Tunnel1
mpls rsvp-te
#
//连接Bypass的接口
interface GigabitEthernet0/1
port link-mode route
combo enable copper
ip address 3.1.0.1 255.255.255.0
mpls
mpls te
mpls te max-link-bandwidth 100000
mpls te max-reservable-bandwidth 80000
mpls rsvp-te
#
//主路径Tunnel0
interface Tunnel0
ip address 1.2.1.1 255.255.255.252
tunnel-protocol mpls te
destination 2.2.2.2
//可以查看隧道在各个节点上的标签
mpls te record-route label
mpls te bandwidth bc0 8000
//指定显式路径
mpls te path explicit-path main
mpls te fast-reroute
mpls te commit
#
//旁路径Tunnel1
interface Tunnel1
ip address 1.3.2.1 255.255.255.252
tunnel-protocol mpls te
destination 2.2.2.2
mpls te record-route label
//指定旁路径的显式路径
mpls te path explicit-path bypass
//指定保护带宽
mpls te backup bandwidth 40000
mpls te commit
#
//OSPF配置
ospf 1
opaque-capability enable
area 0.0.0.0
//可以将Loopback0、G0/0、Tunnel0、Tunnel1都使能OSPF
network 1.0.0.0 0.255.255.255
//使能G0/1
network 3.0.0.0 0.255.255.255
mpls-te enable
#
//将通往2.2.2.2的流量引入到Tunnel0上,且优先级高于OSPF
ip route-static 2.2.2.2 255.255.255.255 Tunnel0 preference 1
#
Egress配置
#
router id 2.2.2.2
#
mpls lsr-id 2.2.2.2
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
#
//连接Bypass的接口
interface GigabitEthernet0/0
port link-mode route
ip address 2.3.0.2 255.255.255.0
mpls
mpls te
mpls te max-link-bandwidth 100000
mpls te max-reservable-bandwidth 80000
mpls rsvp-te
#
//连接Ingress的接口
interface GigabitEthernet0/1
port link-mode route
ip address 1.2.0.2 255.255.255.0
mpls
mpls te
mpls te max-link-bandwidth 100000
mpls te max-reservable-bandwidth 80000
mpls rsvp-te
#
//OSPF,使能各个接口
ospf 1
opaque-capability enable
area 0.0.0.0
network 2.0.0.0 0.255.255.255
network 1.0.0.0 0.255.255.255
mpls-te enable
#
Bypass配置
#
router id 3.3.3.3
#
mpls lsr-id 3.3.3.3
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
interface LoopBack0
ip address 3.3.3.3 255.255.255.255
#
//连接Ingress的接口
interface GigabitEthernet0/0
port link-mode route
ip address 3.1.0.3 255.255.255.0
mpls
mpls te
mpls te max-link-bandwidth 100000
mpls te max-reservable-bandwidth 80000
mpls rsvp-te
#
//连接Egress的接口
interface GigabitEthernet0/1
port link-mode route
ip address 2.3.0.3 255.255.255.0
mpls
mpls te
mpls te max-link-bandwidth 100000
mpls te max-reservable-bandwidth 80000
mpls rsvp-te
#
//OSPF配置,使能各个接口
ospf 1
opaque-capability enable
area 0.0.0.0
network 3.0.0.0 0.255.255.255
network 2.0.0.0 0.255.255.255
mpls-te enable
#
四、配置关键点:
1) 快速重路由只能使用RSVP-TE作为信令协议;
2) 需要在Ingress上建立2条显式路径,并且根据显式路径建立主、旁隧道;
3) Ingress的Tunnel0上需要配置快速重路由感知;
4) Ingress的Tunnel1必须要配置备份带宽;
5) Ingress将旁路Tunnel1绑定在主隧道的出接口上G0/0;
6) Ingress可以在MPLS视图下配置fast-reroute的计时器提高切换速度。
五、结果分析:
当两条隧道都建立后,在Ingress可以如下检查:
<Ingress>display mpls lsp verbose
-------------------------------------------------------------------------
LSP Information: RSVP LSP
-------------------------------------------------------------------------
No : 1
IngressLsrID : 1.1.1.1
LocalLspID : 1
Tunnel-Interface : Tunnel1
Fec : 2.2.2.2/32
//从Nexthop可以看出这时旁路径信息
Nexthop : 3.1.0.3
In-Label : NULL
Out-Label : 1024
In-Interface : ----------
Out-Interface : GigabitEthernet0/1
LspIndex : 3074
Token : 220002
LsrType : Ingress
//这里可以看出没有比的路径保护旁路径
Bypass In Use : Not Exists
BypassTunnel : Tunnel Index[---]
No : 2
IngressLsrID : 1.1.1.1
LocalLspID : 0
Tunnel-Interface : Tunnel0
Fec : 2.2.2.2/32
//从Nexthop可看出这是主路径
Nexthop : 1.2.0.2
In-Label : NULL
Out-Label : 3
In-Interface : ----------
Out-Interface : GigabitEthernet0/0
LspIndex : 3081
Token : 22000d
LsrType : Ingress
//此信息可以判断旁路径未使用,即主路径正常
Bypass In Use : Not Used
BypassTunnel : Tunnel Index[Tunnel1], InnerLabel[3]
<Ingress>
此时拔掉Ingress和Egress直连网线,再执行上述操作
<Ingress>display mpls lsp verbose
//拔掉网线,Ingress上的提示
%Dec 16 13:21:29:659 2006 Ingress DRVMSG/1/DRVMSG: GigabitEthernet0/0: change status to down
%Dec 16 13:21:29:660 2006 Ingress IFNET/4/UPDOWN:
Line protocol on the interface GigabitEthernet0/0 is DOWN
%Dec 16 13:21:29:660 2006 Ingress RM/3/RMLOG:OSPF-NBRCHANGE: Process 1, Neighbour 1.2.0.2(GigabitEthernet0/0) from Full to Down
-------------------------------------------------------------------------
LSP Information: RSVP LSP
-------------------------------------------------------------------------
No : 1
IngressLsrID : 1.1.1.1
LocalLspID : 1
Tunnel-Interface : Tunnel1
Fec : 2.2.2.2/32
//旁路信息
Nexthop : 3.1.0.3
In-Label : NULL
Out-Label : 1024
In-Interface : ----------
Out-Interface : GigabitEthernet0/1
LspIndex : 3074
Token : 220002
LsrType : Ingress
Bypass In Use : Not Exists
BypassTunnel : Tunnel Index[---]
No : 2
IngressLsrID : 1.1.1.1
LocalLspID : 0
Tunnel-Interface : Tunnel0
Fec : 2.2.2.2/32
//主路信息
Nexthop : 1.2.0.2
In-Label : NULL
Out-Label : 3
In-Interface : ----------
Out-Interface : GigabitEthernet0/0
LspIndex : 3081
Token : 22000d
LsrType : Ingress
//表示已经使用旁路径保护主路径
Bypass In Use : In Use
BypassTunnel : Tunnel Index[Tunnel1], InnerLabel[3]
<Ingress>dis ip rou
Routing Tables: Public
Destinations : 12 Routes : 12
Destination/Mask Proto Pre Cost NextHop Interface
1.1.1.1/32 Direct 0 0 127.0.0.1 InLoop0
1.2.1.0/30 Direct 0 0 1.2.1.1 Tun0
1.2.1.1/32 Direct 0 0 127.0.0.1 InLoop0
1.3.2.0/30 Direct 0 0 1.3.2.1 Tun1
1.3.2.1/32 Direct 0 0 127.0.0.1 InLoop0
//路由信息正常,依然指向Tunnel0
2.2.2.2/32 Static 1 0 1.2.1.1 Tun0
2.3.0.0/24 OSPF 10 2 3.1.0.3 GE0/1
3.1.0.0/24 Direct 0 0 3.1.0.1 GE0/1
3.1.0.1/32 Direct 0 0 127.0.0.1 InLoop0
3.3.3.3/32 OSPF 10 1 3.1.0.3 GE0/1
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
<Ingress>
至此,我们可以判断出快速冲路由已经完成,操作人员还可以自行插上网线检查主路径恢复情况。
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作