HDLC接口地址借用

<Huawei>sys 

[Huawei]sys r1

[r1]int LoopBack 0

[r1-LoopBack0]ip add 10.10.10.1 32  //设置虚拟接口IP

[r1-LoopBack0]q

[r1]int s0/0/0

[r1-Serial0/0/0]link-protocol hdlc  //使用hdlc协议,默认ppp

Warning: The encapsulation protocol of the link will be changed. 
Continue? [Y/N]:y

[r1-Serial0/0/0]ip add unnumbered interface LoopBack 0  //借用虚拟接口loopback 0 地址

[r1-Serial0/0/0]q

[r1]ip route-static 10.10.10.0 24 s0/0/0

<Huawei>sys 

[Huawei]sys r2

[r2]int s0/0/0

[r2-Serial0/0/0]link-protocol hdlc  //使用hdlc协议,默认ppp

Warning: The encapsulation protocol of the link will be changed. 
Continue? [Y/N]:y

[r2-Serial0/0/0]ip address 10.10.10.2 24

[r2-Serial0/0/0]q

[r2]ping 10.10.10.1

PING 10.10.10.1: 56  data bytes, press CTRL_C to break
    Reply from 10.10.10.1: bytes=56 Sequence=1 ttl=255 time=20 ms
    Reply from 10.10.10.1: bytes=56 Sequence=2 ttl=255 time=10 ms
    Reply from 10.10.10.1: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 10.10.10.1: bytes=56 Sequence=4 ttl=255 time=10 ms
    Reply from 10.10.10.1: bytes=56 Sequence=5 ttl=255 time=30 ms

  --- 10.10.10.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/18/30 ms
ping通,hdlc接口地址借用成功。

关注点赞收藏,感谢大家。

  • 10
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值