OSPF配置(不同区域OSPF配置如何做,看这里)
Posted 锅锅——Kk
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了OSPF配置(不同区域OSPF配置如何做,看这里)相关的知识,希望对你有一定的参考价值。
1.拓扑图:
2.图中实现pc4和pc5进行通信,而且L1和L3处于不同的OSPF区域如何配置呢?
配置如下:
[r1]dis cu
version 7.1.075, Alpha 7571
sysname r1
ospf 1
area 0.0.0.0
network 192.168.1.0 0.0.0.255
network 192.168.2.0 0.0.0.255
system-working-mode standard
xbar load-single
password-recovery enable
lpu-type f-series
vlan 1
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 192.168.1.1 255.255.255.0
interface GigabitEthernet0/1
port link-mode route
combo enable copper
ip address 192.168.2.1 255.255.255.0
[r2]dis cu
version 7.1.075, Alpha 7571
sysname r2
ospf 1
area 0.0.0.0
network 192.168.2.0 0.0.0.255
area 0.0.0.1
network 192.168.3.0 0.0.0.255
vlan 1
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 192.168.2.2 255.255.255.0
interface GigabitEthernet0/1
port link-mode route
combo enable copper
ip address 192.168.3.1 255.255.255.0
[r3]dis cu
version 7.1.075, Alpha 7571
sysname r3
ospf 1
area 0.0.0.1
network 192.168.3.0 0.0.0.255
network 192.168.4.0 0.0.0.255
system-working-mode standard
xbar load-single
password-recovery enable
lpu-type f-series
vlan 1
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 192.168.3.2 255.255.255.0
interface GigabitEthernet0/1
port link-mode route
combo enable copper
ip address 192.168.4.1 255.255.255.0
经过上面的配置,pc4和pc5 之间实现了通信
如图:
以上是关于OSPF配置(不同区域OSPF配置如何做,看这里)的主要内容,如果未能解决你的问题,请参考以下文章