如何設(shè)置全網(wǎng)管網(wǎng)件路由交換機(jī)動(dòng)態(tài)路由多區(qū)域OSPF
netgear網(wǎng)件是全球領(lǐng)先的企業(yè)網(wǎng)絡(luò)解決方案,及數(shù)字家庭網(wǎng)絡(luò)應(yīng)用倡導(dǎo)者,那么你知道怎么去設(shè)置全網(wǎng)管網(wǎng)件路由交換機(jī)動(dòng)態(tài)路由多區(qū)域OSPF嗎?下面是學(xué)習(xí)啦小編整理的一些關(guān)于如何設(shè)置全網(wǎng)管網(wǎng)件路由交換機(jī)動(dòng)態(tài)路由多區(qū)域OSPF的相關(guān)資料,供你參考。
設(shè)置全網(wǎng)管網(wǎng)件路由交換機(jī)動(dòng)態(tài)路由多區(qū)域OSPF的方法:
Netgear的全網(wǎng)管交換機(jī)中M6100、M7300、M5300均支持OSPF(M7300和部分型號(hào)的M5300需要通過對(duì)應(yīng)的license升級(jí)啟用OSPF功能)
本文檔以一臺(tái)M6100和兩臺(tái)M5300(一臺(tái)M5300-28G3,一臺(tái)M530028GF3)為例說明如何配置多區(qū)域的OSPF。
物理拓?fù)浜投丝贗P地址與單區(qū)域的文檔的配置相同,這里不再重復(fù)。但對(duì)邏輯拓?fù)渥隽思?xì)微改動(dòng)。把M5300-28GF3的所有端口和M6100的2/0/1端口劃分到area 1。
修改后的拓?fù)淙缦拢?/p>
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 IDPriorityIP AddressNeighborStateDead
InterfaceTime
-----------------------------------------------------------------------
2.2.2.21192.168.1.21/0/1Full/DR39
3.3.3.31192.168.2.22/0/1Full/DR35
(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的輸出信息可以看到,鄰居建立正常,路由表正確。
看過文章“如何設(shè)置全網(wǎng)管網(wǎng)件路由交換機(jī)動(dòng)態(tài)路由多區(qū)域OSPF”的人還看了:
2.思科OSPF功能介紹及配置
3.詳解OSPF路由器完全鄰接關(guān)系的建立過程
5.了解兩臺(tái)路由器之間的OSPF鄰居關(guān)系