OSPF的简易模拟配置第三篇

拓扑图:

这次的OSPF 是广播多路访问链路上的OSPF的配置

先配置好各设备ID地址

 R1配置

  en

  conf t

  no ip domain-lookup

  int l0

  ip addr 1.1.1.1 255.255.255.0

  no shut

  int f0/0

  ip addr 192.168.0.1 255.255.255.0

  no shut

 

R2配置

  en

  conf t

  no ip domain-lookup

  int l0

  ip addr 2.2.2.2 255.255.255.0

  no shut

  int f0/0

  ip addr 192.168.0.2 255.255.255.0

  no shut

R3配置

  en

  conf t

  no ip domain-lookup

  int l0

  ip addr 3.3.3.3 255.255.255.0

  no shut

  int f0/0

  ip addr 192.168.0.3 255.255.255.0

  no shut

R4配置

  

  en

  conf t

  no ip domain-lookup

  int l0

  ip addr 4.4.4.4 255.255.255.0

  no shut

  int f0/0

  ip addr 192.168.0.4 255.255.255.0

  no shut

路由配置

R1

  en

  conf t

  router ospf 1

  router-id 1.1.1.1

  network 192.168.0.0 0.0.0.255 area 0

  network 1.1.1.0 0.0.0.255 area 0

  auto-cost reference-bandwidth 1000

R2

  

  en

  conf t

  router ospf 1

  router-id 2.2.2.2

  network 192.168.0.0 0.0.0.255 area 0

  network 2.2.2.0 0.0.0.255 area 0

  auto-cost reference-bandwidth 1000

R3

  

  en

  conf t

  router ospf 1

  router-id 3.3.3.3

  network 192.168.0.0 0.0.0.255 area 0

  network 3.3.3.3 0.0.0.255 area 0

  auto-cost reference-bandwidth 1000

R4

  en

  conf t

  router ospf 1

  router-id 4.4.4.4

  network 192.168.0.0 0.0.0.255 area 0

  network 4.4.4.0 0.0.0.255 area 0

  auto-cost reference-bandwidth 1000

posted on 2018-06-26 19:22  落花语  阅读(169)  评论(0编辑  收藏  举报

导航