ospf综合实验

 

R1:

interface GigabitEthernet0/0/0

 ip address 172.16.3.1 255.255.255.0

 ospf authentication-mode md5 1 cipher %$%$[SaPLz9li'fHrN;DQ<">{vuS%$%$

 ospf timer hello 5

ospf 1 router-id 1.1.1.1

 area 0.0.0.1

  network 172.16.1.0 0.0.0.255

  network 172.16.3.0 0.0.0.255

  stub

R2:

interface GigabitEthernet0/0/0

 ip address 172.16.3.2 255.255.255.0

 ospf authentication-mode md5 1 cipher %$%$K0^T.=z};'9Wj*(0wtV>{wK#%$%$

 ospf timer hello 5

ospf 1 router-id 2.2.2.2

 area 0.0.0.1

  network 172.16.2.0 0.0.0.255

  network 172.16.3.0 0.0.0.255

  stub

R3:

interface GigabitEthernet0/0/0

 ip address 172.16.3.3 255.255.255.0

 ospf authentication-mode md5 1 cipher %$%$:!8}Q'UQo#)'0aS\++5/{wE3%$%$

 ospf timer hello 5

interface GigabitEthernet0/0/2

 ip address 200.1.1.1 255.255.255.0

 nat outbound 2000

ospf 1 router-id 3.3.3.3

 area 0.0.0.0

  network 172.16.12.0 0.0.0.255

 area 0.0.0.1

  abr-summary 172.16.0.0 255.255.252.0

  network 172.16.3.0 0.0.0.255

  stub no-summary

interface Tunnel0/0/0

 ip address 172.16.12.1 255.255.255.0

 tunnel-protocol gre p2mp

 source 200.1.1.1

 ospf authentication-mode md5 1 cipher %$%$3~-2GJ}=_Yi$VTO(\e*){wa_%$%$

 ospf network-type broadcast

 nhrp entry multicast dynamic

 nhrp network-id 100

acl number 2000  

 rule 5 permit source 172.16.0.0 0.0.3.255

ip route-static 0.0.0.0 0.0.0.0 200.1.1.2

ip route-static 172.16.0.0 255.255.255.0 NULL0

R4:

interface GigabitEthernet0/0/0

 ip address 200.1.1.2 255.255.255.0

interface GigabitEthernet0/0/1

 ip address 200.1.4.2 255.255.255.0

interface GigabitEthernet0/0/2

 ip address 200.1.3.2 255.255.255.0

ink-protocol ppp

 ip address 200.1.2.2 255.255.255.0

interface LoopBack0

 ip address 200.1.5.1 255.255.255.0

R5:

link-protocol ppp

 ip address 200.1.2.1 255.255.255.0

interface Tunnel0/0/0

 ip address 172.16.12.2 255.255.255.0

 tunnel-protocol gre p2mp

 source GigabitEthernet0/0/0

 ospf authentication-mode md5 1 cipher %$%$fu%J.Fna[C}'aLY~dcm~{xr/%$%$

 ospf network-type broadcast

 ospf dr-priority 0

 nhrp network-id 100

 nhrp entry 172.16.12.1 200.1.1.1 register

ip route-static 0.0.0.0 0.0.0.0 200.1.2.2

R6:

interface GigabitEthernet0/0/0

 ip address 200.1.3.1 255.255.255.0

 nat outbound 2000

interface GigabitEthernet0/0/1

 ip address 172.16.16.1 255.255.255.0

 ospf authentication-mode md5 1 cipher %$%$TUI."5P]!2sZV;IKhOp:{ytn%$%$

interface Tunnel0/0/0

 ip address 172.16.12.3 255.255.255.0

 tunnel-protocol gre p2mp

 source 200.1.3.1

 ospf authentication-mode md5 1 cipher %$%$f'&/%FsL!AGA3r"cU"w&{xlm%$%$

 ospf network-type broadcast

 ospf dr-priority 0

 nhrp network-id 100

 nhrp entry 172.16.12.1 200.1.1.1 register

ospf 1 router-id 6.6.6.6

 area 0.0.0.0

  network 172.16.12.0 0.0.0.255

  network 172.16.14.0 0.0.0.255

 area 0.0.0.2

  abr-summary 172.16.16.0 255.255.252.0

  network 172.16.16.0 0.0.0.255

  nssa no-summary

acl number 2000  

 rule 5 permit source 172.16.16.0 0.0.3.255

R7:

interface GigabitEthernet0/0/0

 ip address 200.1.4.1 255.255.255.0

 nat outbound 2000

interface GigabitEthernet0/0/1

 ip address 172.16.10.1 255.255.255.0

 ospf authentication-mode md5 1 cipher %$%$iGW\94EOP(caI]+2uiO6{|99%$%$

interface Tunnel0/0/0

 ip address 172.16.12.4 255.255.255.0

 tunnel-protocol gre p2mp

 source 200.1.4.1

 ospf authentication-mode md5 1 cipher %$%$0mMW!.\y2Pr".t&oFC*E{xXf%$%$

 ospf network-type broadcast

 ospf dr-priority 0

 nhrp network-id 100

 nhrp entry 172.16.12.1 200.1.1.1 register

ospf 1 router-id 7.7.7.7

 area 0.0.0.0

  network 172.16.12.0 0.0.0.255

  network 172.16.13.0 0.0.0.255

 area 0.0.0.3

  abr-summary 172.16.8.0 255.255.252.0

  network 172.16.10.0 0.0.0.255

  vlink-peer 9.9.9.9

acl number 2000  

 rule 5 permit source 172.16.4.0 0.0.3.255

 rule 10 permit source 172.16.8.0 0.0.3.255

#

ip route-static 0.0.0.0 0.0.0.0 200.1.4.2

ip route-static 172.16.11.0 255.255.255.0 NULL0

R8:

interface GigabitEthernet0/0/0

 ip address 172.16.10.2 255.255.255.0

 ospf authentication-mode md5 1 cipher %$%$TX"kDj70S%>!G"B@zw:/{}(+%$%$

interface GigabitEthernet0/0/1

 ip address 172.16.8.1 255.255.255.0

 ospf authentication-mode md5 1 cipher %$%$m5-}L|L2"Rx;pi"1Z.Z

ospf 1 router-id 8.8.8.8

 area 0.0.0.3

  network 172.16.8.0 0.0.0.255

  network 172.16.9.0 0.0.0.255

  network 172.16.10.0 0.0.0.255

ip route-static 0.0.0.0 0.0.0.0 172.16.10.1

R9:

interface GigabitEthernet0/0/0

 ip address 172.16.8.2 255.255.255.0

 ospf authentication-mode md5 1 cipher %$%$OTB0*DH=)&4:SfEjG;=7{}nG%$%$

#

interface GigabitEthernet0/0/1

 ip address 172.16.5.1 255.255.255.0

 ospf authentication-mode md5 1 cipher %$%$*E#0:AWf]W+t@K~}R/#({!(.%$%$

#

ospf 1 router-id 9.9.9.9

 area 0.0.0.3

  abr-summary 172.16.8.0 255.255.252.0 not-advertise

  network 172.16.8.0 0.0.0.255

  vlink-peer 7.7.7.7

 area 0.0.0.4

  abr-summary 172.16.4.0 255.255.252.0

  network 172.16.5.0 0.0.0.255

  network 172.16.6.0 0.0.0.255

  stub no-summary

ip route-static 0.0.0.0 0.0.0.0 172.16.8.1

ip route-static 172.16.7.0 255.255.255.0 NULL0

R10:

interface GigabitEthernet0/0/0

 ip address 172.16.5.2 255.255.255.0

 ospf authentication-mode md5 1 cipher %$%$<ErE/M>S(NFj_F*^G;%.{!u{%$%$

#

R11:

interface GigabitEthernet0/0/0

 ip address 172.16.16.2 255.255.255.0

 ospf authentication-mode md5 1 cipher %$%$Cb@U>AR%F7,O=!.I/*y&{z.7%$%$

#

interface GigabitEthernet0/0/1

 ip address 172.16.18.1 255.255.255.0

 ospf authentication-mode md5 1 cipher %$%$+ROEC8#5Q;('xQCFj7TG{zI|%$%$

#

ospf 1 router-id 11.11.11.11

 area 0.0.0.2

  network 172.16.16.0 0.0.0.255

  network 172.16.17.0 0.0.0.255

  network 172.16.18.0 0.0.0.255

  nssa

#

R12:

interface GigabitEthernet0/0/0

 ip address 172.16.18.2 255.255.255.0

 ospf authentication-mode md5 1 cipher %$%$P+mk:Pwa(){xu=U^6PqK{{7+%$%$

#

ospf 1 router-id 12.12.12.12

 asbr-summary 172.16.32.0 255.255.254.0

 import-route rip 1

 area 0.0.0.2

  network 172.16.18.0 0.0.0.255

  nssa

#

rip 1

 network 172.16.0.0

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
OSPF(开放最短路径优先)是一种用于路由的动态路由协议,它是根据路由器之间的链路状态来计算最短路径的。 在一个OSPF综合实验案例中,可以模拟一个复杂的网络拓扑,包括多个路由器和连接它们的链路。假设有5个路由器A、B、C、D和E,它们之间通过不同的链路相连。 首先,需要配置每个路由器上的OSPF进程,并为它们分配一个路由器ID。然后,在每个链路上配置正确的IP地址和子网掩码。接下来,通过在OSPF进程中启用不同的区域,将路由器分成不同的区域。 然后,需要配置每个路由器之间的OSPF邻居关系。这可以通过指定邻居的路由器ID和链路上的IP地址来完成。路由器之间的邻居关系建立后,它们将开始交换链路状态信息(LSA)。 每个路由器将根据接收到的LSA计算自己的链路状态数据库(LSDB)。然后,通过运行Dijkstra算法,每个路由器将计算出到达其他路由器的最短路径。最后,每个路由器将根据最短路径选择相应的接口进行路由。 在这个实验案例中,还可以模拟链路故障的情况,观察OSPF的快速收敛性。当某个链路出现故障时,路由器将发送通告信息给邻居,通知它们链路状态已经改变。邻居将更新自己的LSDB,并重新计算最短路径。 通过这个综合实验案例,可以深入了解OSPF协议的工作原理和功能。同时,还可以通过观察实验结果,了解OSPF在网络中的优势和效率。这些知识和经验将帮助网络工程师更好地设计、优化和故障排除复杂的网络拓扑。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值