H3C模擬器HCL簡單配置OSPF
H3C模擬器HCL簡單配置OSPF
前段時間看了OSPF的一些內容,做了一些練習,在這裡記錄一下。
網路拓撲圖如下:
需求描述
如圖所示,PC1 IP地址192.168.1.1,掩碼255.255.255.0,閘道器192.168.1.254;PC2 IP地址192.168.6.1,掩碼255.255.255.0,閘道器192.168.6.254;配置OSPF,實現PC1和PC2通訊。
配置
R1配置
<H3C>sys
System View: return to User View with Ctrl+Z.
[H3C]sysname R1
[R1]int g 0/0
[R1-GigabitEthernet0/0]ip add 20.0.0.2 24
[R1-GigabitEthernet0/0]int g 0/1
[R1-GigabitEthernet0/1]ip add 30.0.0.1 24
[R1-GigabitEthernet0/1]quit
[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]network 30.0.0.0 0.0.0.255
[R1-ospf-1-area-0.0.0.0]quit
[R1-ospf-1]area 1
[R1-ospf-1-area-0.0.0.1]network 20.0.0.0 0.0.0.255
[R1-ospf-1-area-0.0.0.1]quit
[R1-ospf-1]quit
[R1]
R2配置
[H3C>sys
System View: return to User View with Ctrl+Z.
[H3C]sysname R2
[R2]int g 0/1
[R2-GigabitEthernet0/1]ip add 30.0.0.2 24
[R2-GigabitEthernet0/1]int g 0/0
[R2-GigabitEthernet0/0]ip add 40.0.0.1 24
[R2-GigabitEthernet0/0]quit
[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 30.0.0.0 0.0.0.255
[R2-ospf-1-area-0.0.0.0]quit
[R2-ospf-1]area 2
[R2-ospf-1-area-0.0.0.2]network 40.0.0.0 0.0.0.255
[R2-ospf-1-area-0.0.0.2]quit
[R2-ospf-1]quit
[R2]
R3配置
<H3C>sys
System View: return to User View with Ctrl+Z.
[H3C]sysname R3
[R3]int g 0/0
[R3-GigabitEthernet0/0]ip add 20.0.0.1 24
[R3-GigabitEthernet0/0]int g 0/1
[R3-GigabitEthernet0/1]ip add 192.168.1.254 24
[R3-GigabitEthernet0/1]quit
[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]area 1
[R3-ospf-1-area-0.0.0.1]network 20.0.0.0 0.0.0.255
[R3-ospf-1-area-0.0.0.1]network 192.168.1.0 0.0.0.255
[R3-ospf-1-area-0.0.0.1]quit
[R3-ospf-1]quit
[R3]
R4配置
<H3C>sys
System View: return to User View with Ctrl+Z.
[H3C]sysname R4
[R4]int g 0/0
[R4-GigabitEthernet0/0]ip add 40.0.0.2 24
[R4-GigabitEthernet0/0]int g 0/1
[R4-GigabitEthernet0/1]ip add 192.168.6.254 24
[R4-GigabitEthernet0/1]quit
[R4]ospf 1 router-id 4.4.4.4
[R4-ospf-1]area 2
[R4-ospf-1-area-0.0.0.2]network 40.0.0.0 0.0.0.255
[R4-ospf-1-area-0.0.0.2]network 192.168.6.0 0.0.0.255
[R4-ospf-1-area-0.0.0.2]quit
[R4-ospf-1]quit
[R4]
驗證
PC1
<H3C>ping 192.168.6.1
Ping 192.168.6.1 (192.168.6.1): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.6.1: icmp_seq=0 ttl=251 time=3.000 ms
56 bytes from 192.168.6.1: icmp_seq=1 ttl=251 time=3.000 ms
56 bytes from 192.168.6.1: icmp_seq=2 ttl=251 time=2.000 ms
56 bytes from 192.168.6.1: icmp_seq=3 ttl=251 time=2.000 ms
56 bytes from 192.168.6.1: icmp_seq=4 ttl=251 time=2.000 ms
--- Ping statistics for 192.168.6.1 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 2.000/2.400/3.000/0.490 ms
<H3C>%Jul 25 16:10:27:371 2019 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.6.1: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 2.000/2.400/3.000/0.490 ms.
PC2
<H3C>ping 192.168.1.1
Ping 192.168.1.1 (192.168.1.1): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.1.1: icmp_seq=0 ttl=251 time=2.000 ms
56 bytes from 192.168.1.1: icmp_seq=1 ttl=251 time=2.000 ms
56 bytes from 192.168.1.1: icmp_seq=2 ttl=251 time=3.000 ms
56 bytes from 192.168.1.1: icmp_seq=3 ttl=251 time=2.000 ms
56 bytes from 192.168.1.1: icmp_seq=4 ttl=251 time=2.000 ms
--- Ping statistics for 192.168.1.1 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 2.000/2.200/3.000/0.400 ms
<H3C>%Jul 25 16:13:56:401 2019 H3C PING/6/PING_STATISTICS: Ping statistics for 192.168.1.1: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 2.000/2.200/3.000/0.400 ms.
結論
PC1和PC2能夠互相Ping通,配置完成。
相關文章
- 華三交換機H3C單區域OSPF典型配置案例
- 思科與H3C配置命令對比 靜態路由&OSPF路由
- OSPF單區域配置-ZTE中興路由器路由器
- 簡單模擬死鎖
- 1046 Shortest Distance(簡單模擬)
- 簡單的模擬(洛谷)
- OSPF單區域配置實驗(Cisco)
- sort回撥的簡單模擬
- 模擬簡單的動態代理
- 華為裝置OSPF單區域配置
- eNSP華為路由器OSPF配置----OSPF和RIP互相通訊路由器
- 簡單易用的前端模擬資料前端
- H3C模擬延時測試ping包
- 簡單實現.NET Hook與事件模擬Hook事件
- POJ3087 Shuffle'm Up【簡單模擬】
- PAT B1009 說反話(簡單模擬)
- 【Tomcat】Tomcat工作原理及簡單模擬實現Tomcat
- 伺服器簡單郵箱配置伺服器
- 利用Easy Mock簡單模擬開發資料介面Mock
- PAT-B 1012 數字分類【簡單模擬】
- H3C基本配置
- 配置Linux【虛擬機器】與 windows【宿主機】網路互通 (面向小白,簡單操作)Linux虛擬機Windows
- 配置OSPF與BFD聯動
- 配置OSPF負載分擔負載
- OSPF多區域基本配置
- iOS 模擬器iOS
- H3C網路裝置模擬器官方免費下載
- 使用 Raku 編寫簡單的文字識別模擬程式
- Proteus實現簡單51程式的設計與模擬
- 發那科數控機床FanucCNC(NCGuide)模擬模擬器配置和資料採集測試GUIIDE
- 模擬瀏覽器與伺服器互動(簡易TomCat框架)瀏覽器伺服器Tomcat框架
- Webapck 簡單配置Web
- OSPF介紹及基礎配置
- OSPF的基本配置實驗(四)
- 實驗六——————OSPF協議配置協議
- noip模擬29[簡單的板子題](雖然我不會)
- 使用 json-server 簡單完成CRUD模擬後臺資料JSONServer
- 平行宇宙模擬器