網絡工程師交換試驗手冊之三:默認網關實驗(擴展訓練)

實驗目的:
通過實驗體會靜態路由的靈活應用,以及如何將路由器定義爲UNIX服務器模式,如何爲路由器定義默認網關。
實驗拓撲:


實驗內容:
路由器的基本配置
R1 (config-if)#interface s0
R1 (config-if)#ip address 192.168.2.1 255.255.255.0
R1 (config-if)#clock rate 64000
R1 (config-if)#no shut
$$$$$$$$$$
R2(config)#interface s1
R2(config-if)#ip address 192.168.2.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#interface s0
R2(config-if)#ip address 192.168.3.1 255.255.255.0
R2(config-if)#clock rate  64000
R2(config-if)#no shut
$$$$$$$$$$$
R3(config)#interface s1
R3(config-if)#ip address 192.168.3.2 255.255.255.0
R3(config-if)#no shut
配置R2和R3爲UNIX服務器模式
R1(config)#no ip routing(去掉路由器的路由功能)
R1(config)#ip default-gateway 192.168.2.2(爲路由器定義默認網關)
R3(config)#no ip routing
R3(config)#ip default-gateway 192.168.3.1
3.查看目前的路由器狀態
   R1#show ip route
Default gateway is not set
Host               Gateway           Last Use    Total Uses  Interface
ICMP redirect cache is empty
   R1#show ip route
Default gateway is 192.168.2.2
Host               Gateway           Last Use    Total Uses  Interface
ICMP redirect cache is empty
4、驗證默認網關的配置
從R1上ping R3的S1口
R1#ping 192.168.3.2
   Sending 5, 100-byte ICMP Echos to 192.168.3.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 56/59/64 ms
實驗總結:
這類型的實驗是擴展***實驗的一種,考察的就是學員的快速反應能力,其實內容很簡單,但是由於思路的問題,這種問題也是工程師的殺手鐗。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章