好消息,超酷的在线虚拟网络实验室上线了!点击开始实验

为获得更好的浏览效果,建议您使用 Firefox 或者 Chrome 浏览器



MSR绯诲垪璺敱鍣

OSPF铏氳繛鎺ヤ笖楠岃瘉鐨勫吀鍨嬮厤缃

 

鍏抽敭瀛楋細MSR; VLink; ospf锛涢獙璇

 

涓銆缁勭綉闇姹

Area2娌℃湁涓Area0鐩存帴鐩歌繛銆Area1琚敤浣滀紶杈撳尯鍩燂紙Transit Area锛夋潵杩炴帴Area2Area0MSR 1MSR 2涔嬮棿閰嶇疆涓鏉¤櫄杩炴帴銆傞厤缃畬鎴愬悗锛Router A鑳藉瀛﹀埌Area2涓殑璺敱銆備笖瑕佹眰鎵鏈OSPF閭诲眳涔嬮棿閮借楠岃瘉銆

璁惧娓呭崟锛MSR绯诲垪璺敱鍣2

浜屻佺粍缃戝浘锛

涓夈侀厤缃楠わ細

MSR 1 閰嶇疆

#

router id 1.1.1.1

#

interface Ethernet0/0

 port link-mode route

 ip address 192.168.0.1 255.255.255.0

//OSPF鎺ュ彛涓嬮獙璇侀厤缃

 ospf authentication-mode simple plain 456

#

interface Ethernet0/1

 port link-mode route

 ip address 10.0.0.1 255.255.255.0

//OSPF鎺ュ彛涓嬮獙璇侀厤缃

 ospf authentication-mode simple plain 123

#

interface LoopBack0

 ip address 1.1.1.1 255.255.255.255

#

//OSPF閮ㄥ垎閰嶇疆

ospf 1

 area 0.0.0.0

  network 10.0.0.0 0.0.0.255

//閰嶇疆OSPF鍖哄煙鐨勯獙璇佹ā寮

  authentication-mode simple

 area 0.0.0.1

//閰嶇疆OSPF鍖哄煙鐨勯獙璇佹ā寮

  authentication-mode simple

  network 192.168.0.0 0.0.0.255

//閰嶇疆OSPF铏氳繛鎺ワ紝楠岃瘉瀵嗙爜涓123

  vlink-peer 2.2.2.2 simple plain 123

#

MSR 2 閰嶇疆

#

router id 2.2.2.2

#

interface Ethernet0/0

 port link-mode route

 ip address 192.168.0.2 255.255.255.0

//OSPF鎺ュ彛涓嬮獙璇侀厤缃

 ospf authentication-mode simple plain 456

#

interface Ethernet0/1

 port link-mode route

 ip address 20.0.0.1 255.255.255.0

//OSPF鎺ュ彛涓嬮獙璇侀厤缃

 ospf authentication-mode simple plain 789

#

interface LoopBack0

 ip address 2.2.2.2 255.255.255.255

#

//OSPF閮ㄥ垎閰嶇疆

ospf 1

 area 0.0.0.0

//閰嶇疆OSPF鍖哄煙鐨勯獙璇佹ā寮

  authentication-mode simple

 area 0.0.0.1

//閰嶇疆OSPF鍖哄煙鐨勯獙璇佹ā寮

  authentication-mode simple

  network 192.168.0.0 0.0.0.255

//閰嶇疆OSPF铏氳繛鎺ワ紝楠岃瘉瀵嗙爜涓123

  vlink-peer 1.1.1.1 simple plain 123

 area 0.0.0.2

//閰嶇疆OSPF鍖哄煙鐨勯獙璇佹ā寮

  authentication-mode simple

  network 20.0.0.0 0.0.0.255

#

鍥涖閰嶇疆鍏抽敭鐐

1) 涓涓尯鍩熶腑鎵鏈夌殑璺敱鍣ㄧ殑楠岃瘉绫诲瀷蹇呴』涓鑷达紝涓涓綉娈典腑鎵鏈夎矾鐢卞櫒鐨勯獙璇佸瓧鍙d护涔熷繀椤讳竴鑷达紱

2) 铏界劧MSR 2 涓嶅湪Area 0涓紝浣嗘槸鐢变簬MSR 1MSR 2涔嬮棿寤虹珛铏氳繛鎺ワ紝鑰岄粯璁よ櫄杩炴帴鏄睘浜Area 0 鍖哄煙涓殑锛屽洜姝ゅ繀闇鍦MSR涓婇厤缃Area 0锛屼笖鍦ㄨ鍖哄煙涓惎鍔OSPF楠岃瘉锛屽惁鍒欒櫄杩炴帴鏃犳硶寤虹珛銆

浜斻侀獙璇

1) 鍦ㄨ澶囦笂浣跨敤鍛戒护 display ospf VLink鏌ョ湅VLink鐨勮繛鎺ョ姸鎬侊細

<MSR 2>dis ospf vl

 

         OSPF Process 1 with Router ID 2.2.2.2

                 Virtual Links

 

 Virtual-link Neighbor-ID  -> 1.1.1.1, Neighbor-State: Full

 Interface: 192.168.0.2 (Ethernet0/0)

 Cost: 1  State: P-2-P  Type: Virtual

 Transit Area: 0.0.0.1

 Timers: Hello 10, Dead 40, Retransmit 5, Transmit Delay 1

X Close
X Close