多區域ospf典型配置案例 :
在實際組網中,經常會遇到ospf組網的案例,比如單區域ospf、多區域ospf、ospf虛鏈路、ospf nssa、ospf stub等需求,以下是多區域ospf典型組網的配置案例。
互聯位址、業務位址、looback0位址如上圖所示,全網均採用ospf程序1、其中r1與r2路由器屬於ospf的區域0,r2與r3路由器屬於ospf區域1,實現全網互聯互通。
1、配置loopback0位址
2、配置各互聯位址
3、建立ospf程序1,並將各位址在區域0中發布
4、檢視ospf鄰居的狀態
5、測試pc之間能互聯互通
r1:
system-view
[h3c]sysname r1
[r1]int loopback 0
[r1-loopback0]ip add
[r1-loopback0]ip address 1.1.1.1 32
[r1-loopback0]quit
[r1]int gi 0/0
[r1-gigabitethernet0/0]ip address 192.168.1.1 24
[r1-gigabitethernet0/0]description [r1-gigabitethernet0/0]quit
[r1]int gi 0/1
[r1-gigabitethernet0/1]ip address 10.0.0.1 30
[r1-gigabitethernet0/1]description [r1-gigabitethernet0/1]quit
[r1]ospf 1 router-id 1.1.1.1
[r1-ospf-1]area 0.0.0.0
[r1-ospf-1-area-0.0.0.0]network 10.0.0.1 0.0.0.0
[r1-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0
[r1-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[r1-ospf-1-area-0.0.0.0]quit
[r1-ospf-1]quit
r2:
system-view
[h3c]sysname r2
[r2]int loopback 0
[r2-loopback0]ip address 2.2.2.2 32
[r2-loopback0]quit
[r2]int gi 0/0
[r2-gigabitethernet0/0]ip address 10.0.0.2 30
[r2-gigabitethernet0/0]description [r2-gigabitethernet0/0]quit
[r2]int gi 0/1
[r2-gigabitethernet0/1]description [r2-gigabitethernet0/1]ip address 10.0.0.5 30
[r2-gigabitethernet0/1]quit
[r2]ospf 1 router-id 2.2.2.2
[r2-ospf-1]area 0.0.0.0
[r2-ospf-1-area-0.0.0.0]network 10.0.0.2 0.0.0.0
[r2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[r2-ospf-1-area-0.0.0.0]quit
[r2-ospf-1]area 0.0.0.1
[r2-ospf-1-area-0.0.0.1]network 10.0.0.5 0.0.0.0
[r2-ospf-1-area-0.0.0.1]quit
[r2-ospf-1]quit
r3:
system-view
[h3c]sysname r3
[r3]int loopback 0
[r3-loopback0]ip address 3.3.3.3 32
[r3-loopback0]quit
[r3]int gi 0/0
[r3-gigabitethernet0/0]description [r3-gigabitethernet0/0]ip address 172.16.1.1 24
[r3-gigabitethernet0/0]quit
[r3]int gi 0/1
[r3-gigabitethernet0/1]description [r3-gigabitethernet0/1]ip address 10.0.0.6 30
[r3-gigabitethernet0/1]quit
[r3]ospf 1 router-id 3.3.3.3
[r3-ospf-1]area 0.0.0.1
[r3-ospf-1-area-0.0.0.1]network 10.0.0.6 0.0.0.0
[r3-ospf-1-area-0.0.0.1]network 3.3.3.3 0.0.0.0
[r3-ospf-1-area-0.0.0.1]network 172.16.1.0 0.0.0.255
[r3-ospf-1-area-0.0.0.1]quit
[r3-ospf-1]quit
測試各路由器的ospf鄰居建立情況:
[r1]dis ospf peer
ospf process 1 with router id 1.1.1.1
neighbor brief information
area: 0.0.0.0
router id address pri dead-time state inte***ce
2.2.2.2 10.0.0.2 1 31 full/bdr ge0/1
[r1]
[r2]dis ospf peer
ospf process 1 with router id 2.2.2.2
neighbor brief information
area: 0.0.0.0
router id address pri dead-time state inte***ce
1.1.1.1 10.0.0.1 1 35 full/dr ge0/0
area: 0.0.0.1
router id address pri dead-time state inte***ce
3.3.3.3 10.0.0.6 1 33 full/bdr ge0/1
[r2]
[r3]dis ospf peer
ospf process 1 with router id 3.3.3.3
neighbor brief information
area: 0.0.0.1
router id address pri dead-time state inte***ce
2.2.2.2 10.0.0.5 1 32 full/dr ge0/1
[r3]
pc之間能ping通:
至此多區域ospf配置已完成!
實戰 | 多vpn-instance例項之ospf典型組網案例 :
華三 h3c 交換機RSTP配置
首先交換機都是預設配置,各埠都屬於vlan1,pc雖然都是在同一網段,但是由於廣播風暴,兩者無法ping通。在所有的交換機上面啟動rstp,以swa為例,其它的配置相同 swa stp global enable swa stp mode rstp 這時pc之間是可以ping通的,並且通過dis s...
華三交換機映象配置命令 H3C交換機埠映象配置
實用標準文案 文件1.1.1 display mirroring group 命令 display mirroring group group id alllocal remote destination remote source 檢視 任意檢視 引數 group id 埠映象組的組號,取值範圍為...
華三交換機公升級的ipe檔案 H3C交換機版本公升級
1用ftp 或者tftp搭建ftp tftp伺服器 略2交換機登入伺服器 ftp 10.press ctrl c to abort.connected to 10.220 3com 3cdaemon ftp 伺服器版本 2.0 user 10.none anonymous 331 使用者名稱正確,需...