C114门户论坛百科APPEN| 举报 切换到宽版

亚星游戏官网

 找回密码
 注册

只需一步,快速开始

短信验证,便捷登录

搜索
查看: 20574|回复: 0

[通信技术与资料] ensp模拟配置静态LSP实验 [复制链接]

军衔等级:

亚星游戏官网-yaxin222  新兵

注册:2022-10-28
发表于 2023-5-16 09:43:33 |显示全部楼层
配置静态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
Scriptsaveysyssys 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#

举报本楼

您需要登录后才可以回帖 登录 | 注册 |

手机版|C114 ( 沪ICP备12002291号-1 )|联系大家 |网站地图  

GMT+8, 2024-9-21 08:13 , Processed in 0.112687 second(s), 15 queries , Gzip On.

Copyright © 1999-2023 C114 All Rights Reserved

Discuz Licensed

回顶部
XML 地图 | Sitemap 地图