HCIP第二天

一、拓扑图

二、要求

1.使用rip协议

2.要求不关闭水平分割 全网可达,互为hub互为spoken

3.全网可达

三、主要配置

[r2]interface Tunnel 0/0/0

[r2-Tunnel0/0/0]tunnel-protocol gre p2mp

[r2-Tunnel0/0/0]source 23.1.1.1

[r2-Tunnel0/0/0]nhrp entry multicast dynamic

[r2-Tunnel0/0/0]ip address 10.1.1.1 24

[r2-Tunnel0/0/0]nhrp entry 10.1.1.2 34.1.1.2 register

[r2-Tunnel0/0/0]nhrp entry 10.1.1.3 37.1.1.2 register

[r2-Tunnel0/0/0]nhrp entry 10.1.1.4 38.1.1.2 register

[r2-Tunnel0/0/0]nhrp network-id 100

[r2-Tunnel0/0/0]display this

[V200R003C00]

#

interface Tunnel0/0/0

ip address 10.1.1.1 255.255.255.0

tunnel-protocol gre p2mp

source 23.1.1.1

nhrp entry multicast dynamic

nhrp network-id 100

nhrp entry 10.1.1.2 34.1.1.2 register

nhrp entry 10.1.1.3 37.1.1.2 register

nhrp entry 10.1.1.4 38.1.1.2 register

#

[r2-Tunnel0/0/0]qu

[r2]display cu | in static

ip route-static 37.1.1.0 255.255.255.0 23.1.1.2

ip route-static 38.1.1.0 255.255.255.0 23.1.1.2

[r2]ip route-static 34.1.1.0 24 23.1.1.2

[r2]display cu | in static

ip route-static 34.1.1.0 255.255.255.0 23.1.1.2

ip route-static 37.1.1.0 255.255.255.0 23.1.1.2

ip route-static 38.1.1.0 255.255.255.0 23.1.1.2

[r2]rip 1

[r2-rip-1]version 2

[r2-rip-1]network 12.0.0.0

[r2-rip-1]network 2.0.0.0

[r2-rip-1]network 10.0.0.0

四、实验结果

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值