华为设备配置MPLS TE Auto FRR(华为设备配置路由命令)

网友投稿 349 2022-09-17


华为设备配置MPLS TE Auto FRR(华为设备配置路由命令)

1. 配置IP地址

[LSR1-GigabitEthernet0/0/0]ip add 20.1.1.1 24

[LSR1-GigabitEthernet0/0/1]ip add 20.1.6.1 24

[LSR1-LoopBack0]ip add 1.1.1.1 32

[LSR2-GigabitEthernet0/0/1]ip add 20.1.2.2 24

[LSR2-GigabitEthernet0/0/2]ip add 20.1.4.2 24

[LSR2-GigabitEthernet0/0/0]ip add 20.1.1.2 24

[LSR2-LoopBack0]ip add 2.2.2.2 32

[LSR3-Vlanif10]ip add 20.1.7.3 24

[LSR3-GigabitEthernet0/0/0]ip add 20.1.2.3 24

[LSR3-GigabitEthernet0/0/1]ip add 20.1.5.3 24

[LSR3-GigabitEthernet0/0/2]ip add 20.1.3.3 24

[LSR3-GigabitEthernet4/0/0]ip add 20.1.7.3 24

[LSR3-LoopBack0]ip add 3.3.3.3 32

[LSR4-GigabitEthernet0/0/0]ip add 20.1.3.4 24

[LSR4-LoopBack0]ip add 4.4.4.4 32

[LSR5-LoopBack0]ip add 5.5.5.5 32

[LSR5-GigabitEthernet0/0/0]ip add 20.1.4.5 24

[LSR5-GigabitEthernet0/0/1]ip add 20.1.5.5 24

[LSR6-LoopBack0]ip add 6.6.6.6 32

[LSR6-GigabitEthernet0/0/0]ip add 20.1.6.6 24

[LSR6-GigabitEthernet0/0/1]ip add 20.1.7.6 24

2. 配置OSPF

[LSR1]ospf 1

[LSR1-ospf-1]area 0

[LSR1-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0

[LSR1-ospf-1-area-0.0.0.0]network 20.1.1.0 0.0.0.255

[LSR1-ospf-1-area-0.0.0.0]network 20.1.6.0 0.0.0.255

[LSR2]ospf 1

[LSR2-ospf-1]area 0

[LSR2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0

[LSR2-ospf-1-area-0.0.0.0]network 20.1.2.0 0.0.0.255

[LSR2-ospf-1-area-0.0.0.0]network 20.1.4.0 0.0.0.255

[LSR2-ospf-1-area-0.0.0.0]network 20.1.1.0 0.0.0.255

[LSR3]ospf 1

[LSR3-ospf-1]area 0

[LSR3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0

[LSR3-ospf-1-area-0.0.0.0]network 20.1.3.0 0.0.0.255

[LSR3-ospf-1-area-0.0.0.0]network 20.1.7.0 0.0.0.255

[LSR3-ospf-1-area-0.0.0.0]network 20.1.5.0 0.0.0.255

[LSR3-ospf-1-area-0.0.0.0]network 20.1.2.0 0.0.0.255

[LSR4]ospf 1

[LSR4-ospf-1]area 0

[LSR4-ospf-1-area-0.0.0.0]network 4.4.4.4 0.0.0.0

[LSR4-ospf-1-area-0.0.0.0]network 20.1.3.0 0.0.0.255

[LSR5]ospf 1

[LSR5-ospf-1]area 0

[LSR5-ospf-1-area-0.0.0.0]network 5.5.5.5 0.0.0.0

[LSR5-ospf-1-area-0.0.0.0]network 20.1.4.0 0.0.0.255

[LSR5-ospf-1-area-0.0.0.0]network 20.1.5.0 0.0.0.255

[LSR6]ospf 1

[LSR6-ospf-1]area 0

[LSR6-ospf-1-area-0.0.0.0]network 6.6.6.6 0.0.0.0

[LSR6-ospf-1-area-0.0.0.0]network 20.1.6.0 0.0.0.255

[LSR6-ospf-1-area-0.0.0.0]network 20.1.7.0 0.0.0.255

3. 配置MPLS基本能力,使能MPLS TE、RSVP-TE和CSPF,需在主隧道和旁路隧道的入节点上使能CSPF

[LSR1]mpls lsr-id 1.1.1.1

[LSR1]mpls

[LSR1-mpls]mpls te

[LSR1-mpls]mpls rsvp-te

[LSR1-mpls]mpls te cspf

[LSR1-GigabitEthernet0/0/0]mpls

[LSR1-GigabitEthernet0/0/0]mpls te

[LSR1-GigabitEthernet0/0/0]mpls rsvp-te

[LSR1-GigabitEthernet0/0/1]mpls

[LSR1-GigabitEthernet0/0/1]mpls te

[LSR1-GigabitEthernet0/0/1]mpls rsvp-te

[LSR2]mpls lsr-id 2.2.2.2

[LSR2]mpls

[LSR2-mpls]mpls te

[LSR2-mpls]mpls te cspf

[LSR2-mpls]mpls rsvp-te

[LSR2-GigabitEthernet0/0/0]mpls

[LSR2-GigabitEthernet0/0/0]mpls te

[LSR2-GigabitEthernet0/0/0]mpls rsvp-te

[LSR2-GigabitEthernet0/0/1]mpls

[LSR2-GigabitEthernet0/0/1]mpls te

[LSR2-GigabitEthernet0/0/1]mpls rsvp-te

[LSR2-GigabitEthernet0/0/2]mpls

[LSR2-GigabitEthernet0/0/2]mpls te

[LSR2-GigabitEthernet0/0/2]mpls rsvp-te

[LSR3]mpls lsr-id 3.3.3.3

[LSR3]mpls

[LSR3-mpls]mpls te

[LSR3-mpls]mpls rsvp-te

[LSR3-GigabitEthernet0/0/0]mpls

[LSR3-GigabitEthernet0/0/0]mpls te

[LSR3-GigabitEthernet0/0/0]mpls rsvp-te

[LSR3-GigabitEthernet0/0/1]mpls

[LSR3-GigabitEthernet0/0/1]mpls te

[LSR3-GigabitEthernet0/0/1]mpls rsvp-te

[LSR3-GigabitEthernet0/0/2]mpls

[LSR3-GigabitEthernet0/0/2]mpls te

[LSR3-GigabitEthernet0/0/2]mpls rsvp-te

[LSR3-GigabitEthernet4/0/0]mpls

[LSR3-GigabitEthernet4/0/0]mpls te

[LSR3-GigabitEthernet4/0/0]mpls rsvp-te

[LSR4]mpls lsr-id 4.4.4.4

[LSR4]mpls

[LSR4-mpls]mpls te

[LSR4-mpls]mpls rsvp-te

[LSR4-GigabitEthernet0/0/0]mpls

[LSR4-GigabitEthernet0/0/0]mpls te

[LSR4-GigabitEthernet0/0/0]mpls rsvp-te

[LSR5]mpls lsr-id 5.5.5.5

[LSR5]mpls

[LSR5-mpls]mpls te

[LSR5-mpls]mpls rsvp-te

[LSR5-GigabitEthernet0/0/0]mpls

[LSR5-GigabitEthernet0/0/0]mpls te

[LSR5-GigabitEthernet0/0/0]mpls rsvp-te

[LSR5-GigabitEthernet0/0/1]mpls

[LSR5-GigabitEthernet0/0/1]mpls te

[LSR5-GigabitEthernet0/0/1]mpls rsvp-te

[LSR6]mpls lsr-id 6.6.6.6

[LSR6]mpls

[LSR6-mpls]mpls te

[LSR6-mpls]mpls rs

[LSR6-mpls]mpls rsvp-te

[LSR6-GigabitEthernet0/0/0]mpls

[LSR6-GigabitEthernet0/0/0]mpls te

[LSR6-GigabitEthernet0/0/0]mpls rsvp-te

[LSR6-GigabitEthernet0/0/1]mpls

[LSR6-GigabitEthernet0/0/1]mpls te

[LSR6-GigabitEthernet0/0/1]mpls rsvp-te

4. 配置OSPF TE

[LSR1]ospf

[LSR1-ospf-1]opaque-capability enable

[LSR1-ospf-1]area 0

[LSR1-ospf-1-area-0.0.0.0]mpls-te enable

[LSR2]ospf

[LSR2-ospf-1]opaque-capability enable

[LSR2-ospf-1]area 0

[LSR2-ospf-1-area-0.0.0.0]mpls-te enable

[LSR3]ospf

[LSR3-ospf-1]opaque-capability enable

[LSR3-ospf-1]area 0

[LSR3-ospf-1-area-0.0.0.0]mpls-te enable

[LSR4]ospf

[LSR4-ospf-1]opaque-capability  enable

[LSR4-ospf-1]area 0

[LSR4-ospf-1-area-0.0.0.0]mpls-te enable

[LSR5]ospf

[LSR5-ospf-1]opaque-capability enable

[LSR5-ospf-1]area 0

[LSR5-ospf-1-area-0.0.0.0]mpls-te enable

[LSR6]ospf

[LSR6-ospf-1]opaque-capability enable

[LSR6-ospf-1]area 0

[LSR6-ospf-1-area-0.0.0.0]mpls-te enable

5. 使能TE Auto FRR

[LSR1]mpls

[LSR1-mpls]mpls te auto-frr

[LSR2]mpls

[LSR2-mpls]mpls te auto-frr

[LSR2-GigabitEthernet0/0/1]mpls te auto-frr link

6. 在入节点LSRA上创建主CR-LSP的MPLS TE Tunnel

[LSR1]explicit-path  pp1  //配置主CR-LSP的显式路径

[LSR1-explicit-path-pp1]next hop 20.1.1.2

[LSR1-explicit-path-pp1]next hop 20.1.2.3

[LSR1-explicit-path-pp1]next hop 20.1.3.4

[LSR1-explicit-path-pp1]next hop 4.4.4.4

[LSR1]int Tunnel 0/0/1

[LSR1-Tunnel0/0/1]ip add unnumbered interface LoopBack 0

[LSR1-Tunnel0/0/1]tunnel-protocol mpls te

[LSR1-Tunnel0/0/1]destination 4.4.4.4

[LSR1-Tunnel0/0/1]mpls te tunnel-id 100

[LSR1-Tunnel0/0/1]mpls te record-route label

[LSR1-Tunnel0/0/1]mpls te path explicit-path pp1

[LSR1-Tunnel0/0/1]mpls te priority 4 3

[LSR1-Tunnel0/0/1]mpls te fast-reroute

[LSR1-Tunnel0/0/1]mpls te commit

7. 检查配置

可以看到LSR1和LSR2上有两条隧道经过,LSR3上有三条隧道经过(分别为一条主隧道和两条Bypass隧道)

可以看到LSR1上主隧道和一条自动旁路隧道Tunnel2048绑定,LSR2上主隧道和一条自动旁路隧道Tunnel2048绑定。


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Cisco EOU(cisco是什么牌子)
下一篇:项目案例三(高级交换综合项目)(典型交换技术)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~