標籤:interface 路由器設定 互連網絡 ip地址 實驗目的
實驗目的:手工配置靜態路由,實現跨越從源主機到目標主機的一個互連網絡來轉寄資料包的過程
實驗步驟:
1、 搭建網路拓撲
2、 為主機和路由器設定ip地址
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/45/56/wKiom1PnhNrh7-3_AAEclhlbkoU996.jpg" title="圖片1.png" alt="wKiom1PnhNrh7-3_AAEclhlbkoU996.jpg" />
3、 手工配置靜態路由,
先將兩個路由器狀態分別儲存一下
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/45/57/wKioL1PnhjKxQuxHAAJY_bBC7Sk423.jpg" title="圖片2.png" alt="wKioL1PnhjKxQuxHAAJY_bBC7Sk423.jpg" />
添加靜態路由
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/45/57/wKioL1PnhqPjAxPMAAMUlaXZrG8372.jpg" title="圖片3.png" alt="wKioL1PnhqPjAxPMAAMUlaXZrG8372.jpg" />
給添加的通道設定IP,並開啟
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/45/57/wKioL1PnhuDjR_8tAAMKAy7pCDw614.jpg" title="圖片4.png" alt="wKioL1PnhuDjR_8tAAMKAy7pCDw614.jpg" />
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/45/56/wKiom1PnhcjDa2iBAAI4ZI2CvpI740.jpg" title="圖片5.png" alt="wKiom1PnhcjDa2iBAAI4ZI2CvpI740.jpg" />
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/45/57/wKioL1PnhuHSOa8wAAFZCBKTEow446.jpg" title="圖片6.png" alt="wKioL1PnhuHSOa8wAAFZCBKTEow446.jpg" />
Router(config)#ip route 192.168.1.0 255.255.255.0 192.168.4.1 77
4、 關閉直連通道,使其通過靜態路由串連
Router(config)#interface fastEthernet 0/1
Router(config-if)#shutdown
Router(config)#interface fastEthernet 0/1
Router(config-if)#shutdown
實驗結果及驗證:
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/45/56/wKiom1Pnhj3xqqT-AAPhKaveeuM195.jpg" title="圖片7.png" alt="wKiom1Pnhj3xqqT-AAPhKaveeuM195.jpg" />
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/45/56/wKiom1Pnhk3AqyNwAAIm0eA-yJU438.jpg" title="圖片8.png" alt="wKiom1Pnhk3AqyNwAAIm0eA-yJU438.jpg" />