步驟:連線,路由器與路由器通過s埠連線
配置好pc
配置路由器埠ip
連線情況可見拓撲圖
配置好pc
埠ip
[r1]int g0/0
[r1-gigabitethernet0/0]ip address 192.168.7.1 24
[r1-gigabitethernet0/0]undo shutdown
[r1-gigabitethernet0/0]quit
[r1]int g0/1
[r1-gigabitethernet0/1]ip address 192.168.5.1 24
[r1-gigabitethernet0/1]undo shutdown
[r1-gigabitethernet0/1]quit
[r1]int s1/0
[r1-serial1/0]ip add 172.16.10.2 30
[r1-serial1/0]undo shutdown
[r1-serial1/0]quit
[h3c]sysname r2
[r2]int s1/0
[r2-serial1/0]ip add 172.16.10.1 30
[r2-serial1/0]undo shutdown
[r2-serial1/0]quit
[r2]int s2/0
[r2-serial2/0]ip add 172.16.23.2 30
[r2-serial2/0]undo shutdown
[r2-serial2/0]quit
[h3c]sysname r3
[r3]int s1/0
[r3-serial1/0]ip add 172.18.34.4 30
invalid ip address or subnet mask!
[r3-serial1/0]ip add 172.18.34.1 30
[r3-serial1/0]undo shutdown
[r3-serial1/0]quit
[r3]int s2/0
[r3-serial2/0]ip add 172.16.23.1 30
[r3-serial2/0]undo shutdown
[r3-serial2/0]quit
[h3c]sysname r4
[r4]int s1/0
[r4-serial1/0]undo shutdown
[r4-serial1/0]ip add 172.18.34.2 30
[r4-serial1/0]quit
[r4]int g0/1
[r4-gigabitethernet0/1]ip address 192.168.8.1 24
[r4-gigabitethernet0/1]undo shutdown
[r4-gigabitethernet0/1]quit
[r4]int g0/2
[r4-gigabitethernet0/2]undo shutdown
[r4-gigabitethernet0/2]ip address 192.168.6.1 24
[r4-gigabitethernet0/2]quit
配置靜態路由
r1 需要配置 到 pc8(192.168.8.8) 和 pc6(192.168.6.6)的路由
[r1]ip rou
[r1]ip route-static 192.168.6.6 24 172.16.10.2
[r1]ip rou
[r1]ip route-static 192.168.8.8 24 172.16.10.2
[r1]ip rou
[r1]ip route-static 192.168.6.6 24 172.16.10.1
[r1]ip rou
[r1]ip route-static 192.168.8.8 24 172.16.10.1
r2 4臺pc都需要配置
[r2]ip rou
[r2]ip route-static 192.168.6.6 24 172.16.23.1
[r2]ip rou
[r2]ip route-static 192.168.8.8 24 172.16.23.1
[r2]ip rou
[r2]ip route-static 192.168.7.7 24 172.16.10.2
[r2]ip rou
[r2]ip route-static 192.168.5.5 24 172.16.10.2
r3 4臺pc都需要配置
[r3]ip rou
[r3]ip route-static 192.168.6.6 24 172.18.34.2
[r3]ip rou
[r3]ip route-static 192.168.8.8 24 172.18.34.2
[r3]ip rou
[r3]ip route-static 192.168.7.7 24 172.16.23.2
[r3]ip rou
[r3]ip route-static 192.168.5.5 24 172.16.23.2
r4 配置pc7(192.168.7.7) 和 pc5(192.168.5.5)
HCL 配置靜態路由例項
1 將pc 1連線r1路由的ge 0 0介面新增閘道器ip 192.168.1.1 24 將r1路由的ge 0 1 介面新增閘道器ip 192.168.10.1 24 r1配置 r1 inte ce gigabitethernet 0 0 r1 gigabitethernet0 0 ip add 1...
HCL 路由過濾 實驗筆記
拓撲圖 ip位址表 裝置ip位址 閘道器 pc a 10.0.0.2 24 10.0.0.1 pc b 10.0.1.2 24 10.0.1.1 pc c 192.168.3.2 24 192.168.3.1 rtag0 0 10.0.0.1 24 s1 0 192.168.1.1 30 g0 1 ...
HCL配置 RIP 引入外部路由實驗
在 router a 上啟動 rip 程序 100,並配置 rip 版本號為 2。routera routera rip 100 routera rip 100 network 10.0.0.0 routera rip 100 network 11.0.0.0 routera rip 100 ver...