久久九九国产无码高清_人人做人人澡人人人爽_日本一区二区三区中文字幕_日韩无码性爱免费

OSPF的network設(shè)置

時間:2024-10-07 05:14:57 網(wǎng)絡(luò)技術(shù) 我要投稿
  • 相關(guān)推薦

OSPF的network設(shè)置

  SPF是,主要是interface狀態(tài):ip address,mask,Hello這些信息在Routers間建立adjency的過程中會通過LSAs被互換,下面是YJBYS小編整理的OSPF的network設(shè)置相關(guān)知識,歡迎閱讀參考!

  我們再看看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)進(jìn)入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

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

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

  network 10.1.1.1 0.0.0.0 area 0

【OSPF的network設(shè)置】相關(guān)文章:

OSPF路由匯總教程06-24

華為認(rèn)證ospf配置命令07-12

OSPF如何產(chǎn)生缺省路由09-16

多進(jìn)程OSPF及進(jìn)程號的意義05-18

OSPF常用的LSA類型有哪些09-02

OSPF鏈路狀態(tài)更新實例09-08

淺析OSPF協(xié)議的工作原理08-02

常見的OSPF五個疑難問題08-30

飛魚星路由OSPF故障的解決方法09-05

word設(shè)置頁碼怎么設(shè)置09-23