OSPF的简易模拟配置第三篇

本文详细介绍了在一个广播多路访问链路上配置OSPF的具体步骤。通过配置R1、R2、R3及R4路由器的接口地址,并设置相应的OSPF参数,如router-id和network区域等,实现了链路间的互通。

拓扑图:

这次的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

转载于:https://www.cnblogs.com/LilacStrawberry/p/9230822.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值