Packet Tracer路由器簡單配置

路由器Router2:
Router>enable 進入特權模式
Router#configure terminal 進入全局配置模式
Router(config)#hostname RA 將路由器名字改成RA
RA(config)#enable password todd 設置進入特權模式的密碼
RA(config)#interface fastEthernet 0/0 進入以太網接口0/0
RA(config-if)#ip address 192.168.10.1 255.255.255.0 添加IP地址也就是網關
RA(config-if)#no shutdown 開啓blog

RA(config)#interface serial 2/0 進入廣域網接口
RA(config-if)#ip address 192.168.20.1 255.255.255.0 添加IP地址
RA(config-if)#no shutdown 開啓
RA(config)#ip route 192.168.30.0 255.255.255.0 192.168.20.2 添加靜態路由接口

用10.2 ping 20.2,會出現超時,是由於只對RA添加路由是不行的,由於雖然它能夠發送成功,可是回來的路徑不通,因此要對路由器3也要加路由表ip

 


路由器Router3:
Router>enable 進入特權模式
Router#configure terminal 進入全局配置模式
Router(config)#hostname RA 將路由器名字改成RA
RA(config)#enable password todd 設置進入特權模式的密碼
RA(config)#interface fastEthernet 0/0 進入以太網接口0/0
RA(config-if)#ip address 192.168.30.1 255.255.255.0 添加IP地址也就是網關
RA(config-if)#no shutdown 開啓路由

RA(config)#interface serial 2/0 進入廣域網接口
RA(config-if)#ip address 192.168.20.1 255.255.255.0 添加IP地址
RA(config-if)#no shutdown 開啓
RA(config-if)#clock rate 64000 時鐘頻率
RB(config)#ip route 192.168.10.0 255.255.255.0 192.168.20.1terminal

 

相關文章
相關標籤/搜索