成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

路由器設(shè)置過程中關(guān)于OSPF的network設(shè)置

網(wǎng)絡(luò) 路由交換
OSPF是link state protocol,主要是interface狀態(tài)(如ip address,mask,Hello time…)這些信息在Routers間建立adjency的過程中會通過LSAs被互換。

OSPF是link state protocol,主要是interface狀態(tài)(如ip address,mask,Hello time…)這些信息在Routers間建立adjency的過程中會通過LSAs被互換,直到同Area收斂,所有Routers有同樣的link state database,然后以自己為根(root)建立SPF tree,最后在根據(jù)SPF計算出route table.Area內(nèi)任何一個interface的變化都會被Update.

我們再看看OSPF執(zhí)行時的過程:(簡單舉例)

int s1

ip add 10.1.1.1 255.255.255.0 (10.1.1.1/24)

int s2

ip add 172.2.0.1 255.255.255.0 (172.2.0.1/24)

int s3

ip add 172.3.0.1 255.255.0.0 (172.3.0.1/16)

int s4

ip add 172.4.0.1 255.255.0.0 (172.4.0.1/16)

route ospf 10

network 10.1.1.1 0.0.0.0 area 0

network 172.2.0.0 0.0.255.255 area 0

當(dāng)進入OSPF 10,OSPF首先執(zhí)行network 10.1.1.1 0.0.0.0,查找interface address,有匹配s0,分配至Area 0,然后再執(zhí)行network 172.2.0.0.0.0.255.255 aera 0,匹配s2->Area 0,最后我們在其它Routers上看到的信息是:

172.16.0.0/24 is subnetted, 1 subnets

O 172.16.0.0 [110/128] via 192.168.0.1, 00:00:00, Serialx

10.0.0.0/24 is subnetted, 1 subnets

O 10.1.1.0 [110/74] via 192.168.0.1, 00:00:05, Serialx

在著里可以看到submask是24,忽略了在network中配制的inverse mask,為什么?

我們再看當(dāng)添加新的network后有什么結(jié)果?

route ospf 10

network 10.1.1.1 0.0.0.0 area 0

network 172.2.0.0 0.0.255.255 area 0

network 172.0.0.0 0.255.255.255 area 1

network 0.0.0.0 0.0.0.0 area 2

show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

* - candidate default, U - per-user static route, o - ODR

P - periodic downloaded static route

Gateway of last resort is not set

O IA 172.3.0.0/16 [110/933] via 192.168.0.1, 00:00:05, Serialx

O IA 172.4.0.0/16 [110/933] via 192.168.0.1, 00:00:02, Serialx

172.16.0.0/24 is subnetted, 1 subnets

O 172.16.0.0 [110/128] via 192.168.0.1, 00:00:10, Serialx

10.0.0.0/24 is subnetted, 1 subnets

O 10.1.1.0 [110/74] via 192.168.0.1, 00:00:05, Serialx

這里s3,s4都在Area 1(被標(biāo)記為IA掩碼16)。

總結(jié):實際的網(wǎng)絡(luò)范圍在interface mask中已經(jīng)說明了,這在所有的Routers的Link state database 被清楚標(biāo)記,不會因OSPF的network配置而發(fā)生改變。而在OSPF的network配置中,inverse mask只是起到指明在本Router的OSPF process 中的網(wǎng)絡(luò)范圍的作用,如network 172.0.0.0 0.255.255.255指定范圍從172.0.0.0 ~ 172.255.255.255,在次范圍中的所有interface分配至Area 1,最后其他所有的地址被分配到Area 2.

如果在Stub Area 中,沒有Loopback interface的情況下,甚至可以簡單配制為

router ospf 20

network 0.0.0.0 255.255.255.255 area x

這樣就不用單獨指定網(wǎng)絡(luò)范圍了。

在其它類型中,推薦配置使用interface ip address,0.0.0.0即精確匹配,以防止錯誤發(fā)生。如:

network 10.1.1.1 0.0.0.0 area 0

責(zé)任編輯:張存 來源: 中國it實驗室
相關(guān)推薦

2009-12-16 10:08:07

2009-11-16 15:17:22

路由器設(shè)置

2011-08-29 18:30:05

華碩路由器路由器

2011-08-11 13:49:24

2009-11-25 13:16:42

網(wǎng)吧路由器設(shè)置

2009-11-25 14:38:49

無線路由器

2011-08-08 10:47:20

路由器寬帶限速

2009-11-23 12:50:26

ADSL寬帶路由器設(shè)置

2009-11-26 13:50:16

無線路由器

2011-09-14 16:30:36

tp link路由器設(shè)路由器限速設(shè)置路由器

2011-08-29 13:04:09

路由器設(shè)置路由器連接路由器

2009-11-27 10:18:16

Cisco路由器手冊

2009-12-03 10:18:46

路由器地址設(shè)置

2010-08-04 14:08:50

路由器設(shè)置

2010-08-06 10:29:07

路由器設(shè)置

2009-12-01 16:46:10

2009-11-11 14:41:22

2009-12-03 09:13:38

網(wǎng)通路由器設(shè)置

2011-09-02 10:56:09

netcore路由器設(shè)路由器

2009-11-26 11:26:45

路由器設(shè)置局域網(wǎng)路由器設(shè)備
點贊
收藏

51CTO技術(shù)棧公眾號

主站蜘蛛池模板: 9久久精品 | 99re热这里只有精品视频 | 日韩视频在线一区 | 一级片视频免费观看 | 国产小视频在线 | 欧美一级欧美三级在线观看 | 超碰在线人人干 | 国产成人福利在线观看 | 国产在线精品一区二区三区 | 五月天综合网 | 在线免费亚洲视频 | 网页av| 在线观看视频91 | 亚洲 一区| 中文在线一区二区 | 成人精品一区二区三区 | 在线婷婷| 精品国产欧美 | a在线免费观看视频 | 国产一区二区三区四区 | 国产精品久久久久久久一区二区 | 成人欧美一区二区三区在线观看 | 91久久精品一区二区二区 | 亚洲第一黄色网 | 成人三区 | 亚洲精品欧美精品 | 中文字幕一区二区三区四区五区 | 中文字幕一区二区三区乱码在线 | 亚洲综合二区 | 狠狠爱一区二区三区 | 天天干干 | 久久成人一区 | a毛片视频网站 | 亚洲毛片在线观看 | 久久中文高清 | 香蕉国产在线视频 | 精品视频999 | 久久91| 久久夜视频 | 亚洲国产看片 | 美女福利网站 |