路由器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 开启


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也要加路由表





路由器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.1



Packet Tracer路由器简单配置_password