2021-07-11

[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0
[R1-ospf-1-area-0.0.0.0]network 17.1.1.1 0.0.0.0
[R1-ospf-1-area-0.0.0.0]display this
[V200R003C00]
#
 area 0.0.0.0 
  network 1.1.1.1 0.0.0.0 
  network 17.1.1.1 0.0.0.0 
#
return
[R2-ospf-1-area-0.0.0.0]display this
[V200R003C00]
#
 area 0.0.0.0 
  network 2.2.2.2 0.0.0.0 
  network 72.1.1.1 0.0.0.0 
#
return
[R4-ospf-1-area-0.0.0.1]display this
[V200R003C00]
#
 area 0.0.0.1 
  network 4.4.4.4 0.0.0.0 
  network 34.1.1.2 0.0.0.0 
  network 45.1.1.1 0.0.0.0 
#
return
[R5-ospf-1-area-0.0.0.1]display this 
[V200R003C00]
#
 area 0.0.0.1 
  network 5.5.5.5 0.0.0.0 
  network 45.1.1.2 0.0.0.0 
#
return

[R5-ospf-1-area-0.0.0.2]display this 
[V200R003C00]
#
 area 0.0.0.2 
  network 56.1.1.1 0.0.0.0 
#
return
[R5-ospf-1-area-0.0.0.2]display this 
[V200R003C00]
#
 area 0.0.0.2 
  network 56.1.1.1 0.0.0.0 
#
return


[R5-ospf-1]import-route ospf 2
[R5-ospf-1]import-route ospf 2
[R3]acl 2000
[R3-acl-basic-2000]rule 5 permit source 73.1.1.0 0.0.0.255
[R3-acl-basic-2000]int	
[R3-acl-basic-2000]int g0/0/0
[R3-GigabitEthernet0/0/0]nat outbound 2000	
[R3-GigabitEthernet0/0/0]dis nat out
 NAT Outbound Information:
 --------------------------------------------------------------------------
 Interface                     Acl     Address-group/IP/Interface      Type
 --------------------------------------------------------------------------
 GigabitEthernet0/0/0         2000                       73.1.1.1    easyip  
 --------------------------------------------------------------------------

[R3]ip route-static 0.0.0.0 0 73.1.1.0
interface Tunnel0/0/0
 ip address 10.0.1.1 255.255.255.0 
 tunnel-protocol gre p2mp
 source 17.1.1.1
 ospf network-type broadcast
 nhrp entry multicast dynamic
 nhrp network-id 100
 nhrp entry 10.0.1.2 72.1.1.1 register

[R3]ping 7.7.7.7
  PING 7.7.7.7: 56  data bytes, press CTRL_C to break
    Reply from 7.7.7.7: bytes=56 Sequence=1 ttl=255 time=20 ms
    Reply from 7.7.7.7: bytes=56 Sequence=2 ttl=255 time=20 ms
    Reply from 7.7.7.7: bytes=56 Sequence=3 ttl=255 time=30 ms
    Reply from 7.7.7.7: bytes=56 Sequence=4 ttl=255 time=30 ms
    Reply from 7.7.7.7: bytes=56 Sequence=5 ttl=255 time=30 ms

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值