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, Release
1509
Ingress配置 |
# router id # mpls lsr-id # # 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 ho next ho # //旁路径的显式路径 explicit-path bypass next ho next ho next ho # //Router
ID和MPLS LSR ID interface LoopBack0 ip
address # //连接Egress的接口 interface
GigabitEthernet0/0 port link-mode route combo enable copper ip
address 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 mpls mpls te mpls te max-link-bandwidth 100000 mpls te max-reservable-bandwidth 80000 mpls rsvp-te # //主路径Tunnel0 interface Tunnel0 ip
address tunnel-protocol mpls te destination
//可以查看隧道在各个节点上的标签 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 tunnel-protocol mpls te destination 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 are //可以将Loopback0、G0/0、Tunnel0、Tunnel1都使能OSPF network //使能G0/1 network mpls-te enable # //将通往 ip route-static # |
Egress配置 |
# router id # mpls lsr-id # mpls mpls te mpls rsvp-te mpls te cspf # interface LoopBack0 ip address # //连接Bypass的接口 interface
GigabitEthernet0/0 port link-mode route ip address 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 mpls mpls te mpls te max-link-bandwidth 100000 mpls te max-reservable-bandwidth 80000 mpls rsvp-te # //OSPF,使能各个接口 ospf 1 opaque-capability enable are network network mpls-te enable # |
Bypass配置 |
# router id # mpls lsr-id # mpls mpls te mpls rsvp-te mpls te cspf # interface LoopBack0 ip address # //连接Ingress的接口 interface
GigabitEthernet0/0 port link-mode
route ip address 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 mpls
mpls te mpls te max-link-bandwidth 100000 mpls te max-reservable-bandwidth 80000 mpls rsvp-te # //OSPF配置,使能各个接口 ospf 1 opaque-capability enable are network network 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
:
LocalLspID
: 1
Tunnel-Interface
: Tunnel1
Fec
:
//从Nexthop可以看出这时旁路径信息
Nexthop
:
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
:
LocalLspID
: 0
Tunnel-Interface
: Tunnel0
Fec
:
//从Nexthop可看出这是主路径
Nexthop
:
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
-------------------------------------------------------------------------
LSP Information: RSVP LSP
-------------------------------------------------------------------------
No
: 1
IngressLsrID
:
LocalLspID
: 1
Tunnel-Interface
: Tunnel1
Fec
:
//旁路信息
Nexthop
:
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 :
LocalLspID
: 0
Tunnel-Interface
: Tunnel0
Fec
:
//主路信息
Nexthop
:
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
//路由信息正常,依然指向Tunnel0
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>
至此,我们可以判断出快速冲路由已经完成,操作人员还可以自行插上网线检查主路径恢复情况。