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

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


簡單說明
!
適用版本:vrp1.74及1.44
[Router]
router id 10.1.1.1
配置router id
!
[Router]
interface Ethernet0
進(jìn)入以太0口
[Router-ethernet0]
ip address 10.1.1.1 255.255.255.0
配置內(nèi)網(wǎng)IP地址
[Router-ethernet0]
ospf enable area 0.0.0.0
接口使能ospf,屬于0域
!
[Router]
interface Serial0
進(jìn)入串口0口;連Router B
[Router-Serial0]
link-protocol ppp
封裝ppp協(xié)議
[Router-Serial0]
ip address 20.1.1.2 255.255.255.252
配置串口IP地址
[Router-Serial0]
ospf enable area 0.0.0.0
接口使能ospf,屬于1域
!
quit
[Router]
ospf enable
使能ospf
!
【Router B】
當(dāng)前路由器提示視圖
依次輸入的配置命令,重要的命令紅色突出顯示
簡單說明
!
適用版本:vrp1.74及1.44
[Router]
router id 10.1.1.1
配置router id
!
適用版本:vrp1.74
[Router]
interface Seria0
進(jìn)入串口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
進(jìn)入串口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-ospf]
stub cost 60 area 0.0.0.1
將1域配置成為stub域
!
『Router C』
當(dāng)前路由器提示視圖
依次輸入的配置命令,重要的命令紅色突出顯示
簡單說明
!
適用版本:vrp1.74及1.44
[Router]
router id 40.1.1.1
配置router id
!
[Router]
interface Ethernet0
進(jìn)入以太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
進(jìn)入串口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,屬于1域
!
[Router]
interface Serial1
進(jìn)入串口1口;連D
[Router-Serial0]
link-protocol ppp
封裝ppp協(xié)議
[Router-Serial0]
ip address 1.1.1.2 255.255.255.252
配置串口IP地址
!
quit
[Router]
ospf enable
使能ospf
[Router-ospf]
stub cost 60 area 0.0.0.1
將1域配置為stub域
[Router-ospf]
import-route static
引入靜態(tài)路由
!
quit
ip route-static 50.0.0.0 255.0.0.0 1.1.1.1 preference 60
配置去往D的靜態(tài)路由
5.3.6使用完全stub區(qū)『需求』
一個(gè)OSPF自治系統(tǒng)中,A,B運(yùn)行在area 0 ,B,C運(yùn)行在area 1,且為stub區(qū)域,B為ABR
router C引入到D的外部路由,area 1和area 1之外的其他區(qū)域無法訪問D
【Router A】
當(dāng)前路由器提示視圖
依次輸入的配置命令,重要的命令紅色突出顯示
簡單說明
!
適用版本:vrp1.74
[Router]
router id 10.1.1.1
配置router id
!
[Router]
interface Ethernet0
進(jìn)入以太0口
[Router-ethernet0]
ip address 10.1.1.1 255.255.255.0
配置內(nèi)網(wǎng)IP地址

推薦閱讀