li26598296 发表于 2018-7-26 12:42:22

华为路由重发布配置案例

  拓扑:(OSFP+RIPV2)

  配置思路:
  1、配置接口地址
  EK-hangzhou9312:   G0/0/0:192.168.12.1/24               loo0:192.168.100.1/24
  EK-wenzhou9312:      G0/0/0:192.168.12.2/24                G0/0/1:192.168.23.2/24
  EK-fuzhou9312:         G0/0/0:192.168.34.3/24                G0/0/1:192.168.23.3/24
  EK-guangzhou9312:   G0/0/0:192.168.34.4/24                loo0:192.168.200.4/24
  2、配置路由协议
  EK-hangzhou9312:
  #
  ospf 100 router-id 1.1.1.1
  area 0.0.0.100
  network 192.168.100.0 0.0.0.255
  network 192.168.12.0 0.0.0.255
  #
  EK-wenzhou9312:
  #
  ospf 100 router-id 2.2.2.2
  area 0.0.0.0
  network 192.168.23.0 0.0.0.255
  area 0.0.0.100
  network 192.168.12.0 0.0.0.255
  #
  EK-fuzhou9312:
  #
  ospf 100 router-id 3.3.3.3
  import-route rip 1   ======//将RIP路由引入到OSPF,默认的类型是2,也就是OSPF域内度量值不累加,可以在引入的时候变成类型1,这样外部路由在OSPF域内度量会累加。
  area 0.0.0.0
  network 192.168.23.0 0.0.0.255
  #
  rip 1
  version 2
  network 192.168.34.0
  import-route ospf 100
  #
  EK-guangzhou9312:
  #
  rip 1
  version 2
  network 192.168.200.0
  network 192.168.34.0
  #
  3、安全配置:
  配置控制台密码:
  #
  user-interface maximum-vty 15
  user-interface con 0
  authentication-mode password
  user privilege level 15
  set authentication password simple zydx2013
  配置telnet登录:
  使用aaa认证登录:
  配置登录用户名和密码:
  local-user gouzhongxing password cipher VF|`R&[5PfPx@}J+@#&#   ====新建一个用户为gouzhongxing,密码是加密的aqkfkhnuiwu用户。
  local-user gouzhongxing privilege level 15
  user-interface vty 0 14      ======开启设备的远程管理功能
  authentication-mode aaa======使用aaa验证
  user privilege level 15   ===设置用户登录去权限,
  4、测试网络连通性
  <EK-ChuanShu-HZ9312>ping 192.168.200.4
  PING 192.168.200.4: 56data bytes, press CTRL_C to break
  Reply from 192.168.200.4: bytes=56 Sequence=1 ttl=253 time=860 ms
  Reply from 192.168.200.4: bytes=56 Sequence=2 ttl=253 time=90 ms
  Reply from 192.168.200.4: bytes=56 Sequence=3 ttl=253 time=110 ms
  Reply from 192.168.200.4: bytes=56 Sequence=4 ttl=253 time=70 ms
  Reply from 192.168.200.4: bytes=56 Sequence=5 ttl=253 time=80 ms
  --- 192.168.200.4 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 70/242/860 ms
  <EK-ChuanShu-HZ9312>
  上面就是所有数据配置了,配置完成后,网络就可以跑起来了。
  查看路由信息:

  在EK-hangzhou9312上查看ospf学习到的路由信息

  本实验已完成,实验成功。
页: [1]
查看完整版本: 华为路由重发布配置案例