日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

路由協(xié)議-OSPF路由協(xié)議( 二 )


配置串口IP地址
[Router-Serial0]
ospf enable area 0.0.0.0
接口使能ospf,屬于0域
!
quit
[Router]
ospf enable
啟動ospf路由協(xié)議
[Router-ospf]
import-route direct
引入直連路由
!
『說明』
以上兩種方法均能實現(xiàn)兩臺PC互通的需求;上面僅給出實現(xiàn)方法的具體配置,至于組網(wǎng)方式的確定,請參考其他OSPF協(xié)議組網(wǎng)資料 。
5.3.2關(guān)于ospf network-type的配置原則Quidway路由器的網(wǎng)絡(luò)類型缺省如下
ospf網(wǎng)絡(luò)類型
鏈路層協(xié)議
p2p
PPP
NBMA
fr,x25,HDLC
p2mp

broadcast
Ethernet
『注重』
互連的路由器網(wǎng)絡(luò)類型必須一致 。
NBMA和p2mp的,必須在接口下配置:
[Router-Serial0]ospf peer 20.1.1.2
5.3.3復(fù)雜些的多域OSPF配置『需求』
在一個OSPF自治系統(tǒng)中ABR的配置情況 。A,B運行在area 0;B,C運行在area 1,B為ABR
【Router A】
當(dāng)前路由器提示視圖
依次輸入的配置命令,重要的命令紅色突出顯示
簡單說明
!
適用版本:vrp1.74及1.44
[Router]
router id 10.1.1.1
配置router id
!
[Router]
interface Ethernet0
進入以太0口
[Router-Ethernet0]
ip address 10.1.1.1 255.255.255.0
配置內(nèi)網(wǎng)IP地址
[Router-Serial1]
ospf enable area 0.0.0.0
接口使能ospf,屬于0域
!
[Router]
interface Serial0
進入串口0口;連Router B
[Router-Serial1]
link-protocol ppp
封裝ppp協(xié)議
[Router-Serial1]
ip address 20.1.1.2 255.255.255.252
配置串口IP地址
[Router-Serial1]
ospf enable area 0.0.0.0
接口使能ospf,屬于0域
!
quit
[Router]
ospf enable
使能ospf
!
【Router B】
當(dāng)前路由器提示視圖
依次輸入的配置命令,重要的命令紅色突出顯示
簡單說明
!
適用版本:vrp1.74及1.44
[Router]
router id 30.1.1.1
配置router id
!
[Router]
interface Serial0
進入串口0口;連Router C
[Router-Serial0]
link-protocol ppp
封裝ppp協(xié)議
[Router-Serial0]
ip address 30.1.1.1 255.255.255.252
配置串口IP地址
[Router-Serial0]
ospf enable area 0.0.0.1
接口使能ospf,屬于1域
!
[Router]
interface Serial1
進入串口0口;連Router A
[Router-Serial1]
link-protocol ppp
封裝ppp協(xié)議
[Router-Serial1]
ip address 20.1.1.1 255.255.255.252
配置串口IP地址
[Router-Serial1]
ospf enable area 0.0.0.0
接口使能ospf,屬于0域
!
quit
[Router]
ospf enable
使能ospf
!
【Router C】
當(dāng)前路由器提示視圖
依次輸入的配置命令,重要的命令紅色突出顯示
簡單說明
!
適用版本:vrp1.74及1.44
[Router]
router id 40.1.1.1
配置router id
!
[Router]
interface Ethernet0
進入以太0口
[Router-Ethernet0]
ip address 40.1.1.1 255.255.255.0
配置內(nèi)網(wǎng)IP地址
[Router-Ethernet0]
ospf enable area 0.0.0.1
接口使能ospf,屬于1域
!
[Router]
interface Serial0
進入串口0口;連Router B
[Router-Serial0]
link-protocol ppp
封裝ppp協(xié)議
[Router-Serial0]
ip address 30.1.1.2 255.255.255.252
配置串口IP地址
[Router-Serial0]
ospf enable area 0.0.0.1
接口使能ospf,屬于0域
!
quit
[Router]
ospf enable
使能ospf
!
5.3.4配置OSPF聚合『需求』
在一個OSPF自治系統(tǒng)中ABR的配置情況 。A,B運行在area 0;B,C運行在area 1,B為ABR

推薦閱讀