通信人家园
标题:
ensp模拟配置静态LSP实验
[查看完整版帖子]
[打印本页]
时间:
2023-5-16 09:43
作者:
Roma13
标题:
ensp模拟配置静态LSP实验
配置静态LSP实验
[ ] 下一跳IP配置成链路本端设备IP和对端设备IP有什么差别
在配置LSP的过程中,下一跳选择本端IP的话,LSP的状态是down,改为对端IP后UP
静态LSP配置过程
配置端口及loo0IP地址
配置IGP,这里是OSPF
使能全局MPLS、使能端口MPLS
配置从R1至R4
[LSRD] static-lsp ingress RDtoRA destination 1.1.1.9 32 nexthop 10.4.1.1 out-label 30# 配置Transit LSRC。[LSRC] static-lsp transit RDtoRA incoming-interface pos 2/0/0 in-label 30 nexthop 10.3.1.1 out-label 60# 配置Egress LSRA。[LSRA] static-lsp egress RDtoRA incoming-interface pos 2/0/0 in-label 60
配置从R4至R1
测试命令
display mpls lsp
ping LSP IP x.x.x.x. mask
Script
saveysyssys R1undo info enint loop0ip add 1.1.1.1#mpls lsr-id 1.1.1.1mpls # int e0/0/0ip add 10.0.12.1 24mplsint e0/0/1ip add 10.0.13.1 24mpls#ospf 1area 0net 10.0.12.0 0.0.0.255net 10.0.13.0 0.0.0.255net 1.1.1.1 0.0.0.0#syssys R2undo info enint loop0ip add 2.2.2.2 32#mpls lsr-id 2.2.2.2mpls # int e0/0/0ip add 10.0.12.2 24mplsint e0/0/1ip add 10.0.24.1 24mpls#ospf 1area 0net 10.0.12.0 0.0.0.255net 10.0.24.0 0.0.0.255net 2.2.2.2 0.0.0.0#syssys R3undo info enint loop0ip add 3.3.3.3 32#mpls lsr-id 3.3.3.3 mpls # int e0/0/0ip add 10.0.13.2 24mplsint e0/0/1ip add 10.0.34.1 24mpls#ospf 1area 0net 10.0.13.0 0.0.0.255net 10.0.34.0 0.0.0.255net 3.3.3.3 0.0.0.0#syssys R4undo info enint loop0ip add 4.4.4.4 32#mpls lsr-id 4.4.4.4 mpls # int e0/0/0ip add 10.0.24.1 24mplsint e0/0/1ip add 10.0.34.2 24mpls#ospf 1area 0net 10.0.24.0 0.0.0.255net 10.0.34.0 0.0.0.255net 4.4.4.4 0.0.0.0#
通信人家园 (https://www.txrjy.com/)
Powered by C114