输入您的问题查找答案
   
 
相关文库文档
更多相关文库文档 >>
联系客服
在线技术支持
客户服务热线:

电话销售热线:

服务时间(法定节假日除外):
家庭产品:
周一~周五:8:30~20:30
周六:9:00~18:00
商用产品:
周一~周五:9:00~18:00
商用网络动态

与 NETGEAR 监控专用交换机亲密接触

选择德才兼备的 PoE 交换机

NETGEAR 交换机助力聊城第二人民医院智能监控建设

更多动态 >>

网件文库 » 交换机产品  »  全网管交换机动态路由—多区域OSPF
全网管交换机动态路由—多区域OSPF

编号:30305       来自:NetGear       更新日期:2016-01-04       访问数量:4715

文档适用产品型号:M6100,M5300

Netgear的全网管交换机中M6100、M7300、M5300均支持OSPF(M7300和部分型号的M5300需要通过对应的license升级启用OSPF功能)
本文档以一台M6100和两台M5300(一台M5300-28G3,一台M530028GF3)为例说明如何配置多区域的OSPF。

物理拓扑和端口IP地址与单区域的文档的配置相同,这里不再重复。但对逻辑拓扑做了细微改动。把M5300-28GF3的所有端口和M6100的2/0/1端口划分到area 1。
修改后的拓扑如下:

M6100的OSPF配置

(M6100-3S) (Config)#router ospf
(M6100-3S) (Config-router)#enable
(M6100-3S) (Config-router)#router-id 1.1.1.1
(M6100-3S) (Config-router)#exit
(M6100-3S) (Config)#interface loopback 0
(M6100-3S) (Interface loopback 0)#ip ospf area 0
!在端口模式下把本端口宣告到OSPF的area 0
(M6100-3S) (Interface loopback 0)#exit
(M6100-3S) (Config)#interface loopback 1
(M6100-3S) (Interface loopback 1)#ip ospf area 0
(M6100-3S) (Interface loopback 1)#exit
(M6100-3S) (Config)#interface 1/0/1
(M6100-3S) (Interface 1/0/1)#ip ospf area 0
(M6100-3S) (Interface 1/0/1)#exit
(M6100-3S) (Config)#interface 2/0/1
(M6100-3S) (Interface 2/0/1)#ip ospf area 1
(M6100-3S) (Interface 2/0/1)#exit
(M6100-3S) (Config)#exit

M5300-28G3的OSPF配置

(M5300-28G3) (Config)#router ospf
(M5300-28G3) (Config-router)#enable
(M5300-28G3) (Config-router)#router-id 2.2.2.2
(M5300-28G3) (Config-router)#exit
(M5300-28G3) (Config)#interface loopback 0
(M5300-28G3) (Interface loopback 0)#ip ospf area 0
(M5300-28G3) (Interface loopback 0)#exit
(M5300-28G3) (Config)#interface loopback 1
(M5300-28G3) (Interface loopback 1)#ip ospf area 0
(M5300-28G3) (Interface loopback 1)#exit
(M5300-28G3) (Config)#interface 1/0/1
(M5300-28G3) (Interface 1/0/1)#ip ospf area 0
(M5300-28G3) (Interface 1/0/1)#exit
(M5300-28G3) (Config)#

M5300-28GF3的OSPF配置

(M5300-28GF3) (Config)#router ospf
(M5300-28GF3) (Config-router)#enable
(M5300-28GF3) (Config-router)#router-id 3.3.3.3
(M5300-28GF3) (Config-router)#exit
(M5300-28GF3) (Config)#interface loopback 0
(M5300-28GF3) (Interface loopback 0)#ip ospf area 1
(M5300-28GF3) (Interface loopback 0)#exit
(M5300-28GF3) (Config)#interface loopback 1
(M5300-28GF3) (Interface loopback 1)#ip ospf area 1
(M5300-28GF3) (Interface loopback 1)#exit
(M5300-28GF3) (Config)#interface 1/0/1
(M5300-28GF3) (Interface 1/0/1)#ip ospf area 1
(M5300-28GF3) (Interface 1/0/1)#exit
(M5300-28GF3) (Config)#

M6100上查看OSPF邻居和路由表

(M6100-3S) #show ip ospf neighbor
 

Router ID

Priority

IP Address

Neighbor

State

Dead

 

 

 

Interface

 

Time

---------------

--------

---------------

-----------

------------------

----

2.2.2.2

1

192.168.1.2

1/0/1

Full/DR

39

3.3.3.3

1

192.168.2.2

2/0/1

Full/DR

35

(M6100-3S) #show ip route

Route Codes: R - RIP Derived, O - OSPF Derived, C - Connected, S - Static
B - BGP Derived, IA - OSPF Inter Area
E1 - OSPF External Type 1, E2 - OSPF External Type 2
N1 - OSPF NSSA External Type 1, N2 - OSPF NSSA External Type 2

C 10.1.1.1/32 [0/1] directly connected, loopback 0
C 10.1.2.1/32 [0/1] directly connected, loopback 1
O 172.16.1.1/32 [110/2] via 192.168.1.2, 00h:27m:00s, 1/0/1
O 172.16.2.1/32 [110/2] via 192.168.1.2, 00h:27m:00s, 1/0/1
O 172.16.3.1/32 [110/2] via 192.168.2.2, 00h:25m:53s, 2/0/1
O 172.16.4.1/32 [110/2] via 192.168.2.2, 00h:25m:41s, 2/0/1
C 192.168.1.0/24 [0/1] directly connected, 1/0/1
C 192.168.2.0/24 [0/1] directly connected, 2/0/1

M5300查看OSPF邻居和IP路由表的方法与M6100相同,从M6100的输出信息可以看到,邻居建立正常,路由表正确。

 

序号

日期

跟进人

内容摘要

1

2015-12-24

Jackie

文档创建

 

  
 
以上内容是否为您所需要的答案?
以上内容是否清晰、简明和易于理解的?
您是如何知道网件社区的?