网管学习日记-MPLS-手工配置LSP

如图

IP配置,OSPF协议配置略

MPLS配置:

R1到R3

#R1
static-lsp ingress R1toR3 destination 10.0.3.3 32 nexthop 10.0.12.2 out-label 102

#R2
static-lsp transit R1toR3 incoming-interface Ethernet0/0/0 in-label 102 nexthop 10.0.23.3 out-label 203

#R3
static-lsp egress R1toR3 incoming-interface Ethernet 0/0/0 in-label 203

此时,执行命令

#R1到R3的命令
tracert lsp ip 10.0.3.3 32

#结果
  LSP Trace Route FEC: IPV4 PREFIX 10.0.3.3/32 , press CTRL_C to break.
  TTL   Replier            Time    Type      Downstream 
  0                                Ingress   10.0.12.2/[102 ]
  1     10.0.12.2          60 ms   Transit   10.0.23.3/[203 ]
  2     10.0.3.3           130 ms  Egress

#R3到#R1的命令
tracert lsp ip 10.0.1.1 32
#结果
Error: The specified LSP does not exist.

R3到R1

#R3
static-lsp ingress R3toR1 destination 10.0.1.1 32 nexthop 10.0.23.2 out-label 101

#R2
static-lsp transit R3toR1 incoming-interface Ethernet0/0/1 in-label 101 nexthop 10.0.12.1 out-label 201

#R1
static-lsp egress R3toR1 incoming-interface Ethernet 0/0/0 in-label 201

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值