华为路由器RIP如何配置 华为路由器RIP配置步骤

时间:2021-05-18

192.168.1.1 255.255.255.0

  #

  rip 1

  undo summary 关闭rip的路由汇总

  version 2

  network 12.0.0.0

  network 192.168.1.0

  #

  AR2上的配置

  #

  interface GigabitEthernet0/0/0

  ip address 12.1.1.2 255.255.255.0

  rip authentication-mode md5 usual cipher %$%$,EaAAs(q<*8PCJM\=C]/C`G\%$%$ 配置认证

  #

  interface GigabitEthernet0/0/1

  ip address 23.1.1.2 255.255.255.0

  #

  rip 1

  undo summary

  version 2

  network 12.0.0.0

  filter-policy ip-prefix deny2.0 export GigabitEthernet0/0/0 配置路由发布过滤,用ip-prefix匹配允许发布的路由

  import-route rip 3 将rip3重分发到rip1中,cost默认1

  #

  rip 3

  undo summary

  version 2

  network 23.0.0.0

  import-route rip 1 将rip1重分发到rip3中,cost默认1

  #

  ip ip-prefix deny2.0 index 10 permit 172.16.1.0 24 使用前缀列表抓取rip1中需要发布的路由

  #

  AR3上的配置

  #

  interface GigabitEthernet0/0/0

  ip address 23.1.1.3 255.255.255.0

  #

  interface GigabitEthernet0/0/1

  ip address 172.16.1.1 255.255.255.0

  #

  interface GigabitEthernet0/0/2

  ip address 172.16.2.1 255.255.255.0

  #

  rip 3

  undo summary

  version 2

  network 172.16.0.0

  network 23.0.0.0

  #

  检查配置结果,查看AR1上是否只有172.16.1.0/24路由在rip中被学习到。

  AR1上查看rip路由表

  [Huawei]display ip routing-table protocol rip

  Route Flags: R - relay, D - download to fib

  ------------------------------------------------------------------------------

  Public routing table : RIP

  Destinations : 1 Routes : 1

  RIP routing table status :

  Destinations : 1 Routes : 1

  Destination/Mask Proto Pre Cost Flags NextHop Interface

  172.16.1.0/24 RIP 100 1 D 12.1.1.2 GigabitEthernet0/0/0

  RIP routing table status :

  Destinations : 0 Routes : 0

  [Huawei]

  [Huawei]ping 172.16.1.1

  PING 172.16.1.1: 56 data bytes, press CTRL_C to break

  Reply from 172.16.1.1: bytes=56 Sequence=1 ttl=254 time=30 ms

  Reply from 172.16.1.1: bytes=56 Sequence=2 ttl=254 time=20 ms

  Reply from 172.16.1.1: bytes=56 Sequence=3 ttl=254 time=30 ms

  --- 172.16.1.1 ping statistics ---

  5 packet(s) transmitted

  5 packet(s) received

  0.00% packet loss

  round-trip min/avg/max = 20/28/30 ms

  [Huawei]

声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。

相关文章