五、 路由器A端口参数的配置.
Red-Giant>enable
Red-giant #configure terminal
Red-giant(config)#hostname Ra
Ra(config)#interface serial 1/2 进行s1/2的端口模式
Ra(config-if)#ip address 1.1.1.1 255.255.255.0 配置端口的IP地址
Ra(config-if)clock rate 000 有DCE接口上配置时钟频率000
Ra(config-if)#bandwidth 512 配置端口的带宽速率为512KB
Ra(config-if)#no shutdown 开启该端口,使端口转以数据配置带宽时,以K为单位
六、 路由器B端口参数的配置.
Red-Giant # configure terminal
Red-giant(config)#hostname Rb
Rb(config)#interface serial 1/2进行S1/2的端口的模式
Rb(config-if)#ip address 1.1.1.2 255.255.255.0 配置端口的IP地址
Rb(config-if)#bandwidth 512 配置端口的带宽速率为512KB
Rb(config-if)#no shutdown 开启该端口,使端口转发数据
七、查看路由器端口配置的参数.
Ra#show interface serial 1/2 查看RA serial 1/2的接口的状态
Ra#show ip interface serial 1/2 查看该端口的IP协议相关属性
Ra#show interface serial 1/2 查看路由器B serial1/2接口的状态
验证配置.
Ra#ping 1.1.1.2在RA ping 对端RBserial 1/2 接口的IP
【注意事项】
1.路由器端口默认情况下是关闭的,需要no shutdown开启端口.
2.Serial接口正常的端口速率最大的2.048M(2000K).
3.show interface 和show ip interface 之间的区别.
八、路由器端口的基本配置.
基本输入:
Red-giant>enable
Red-giant# configure terminal
Red-giant(config)#hostname RouterA
RouterA(config)#interface fastethernet 1/0
RouterA(config-if)#ip address 192.168.1.1 255.255.255.0
RouterA(config-if)#no shutdown
九、 查看交换机各项信息.
RouterA#show version 查看路由器的版本信息
RouterA#show ip route 查看路由器路由表信息
RouterA#show running-config 查看交换机当前生效的配置信息
【注意事项】
1.show running-config 是查看当前生效的配置信息.show startup-config 是查看保存在NVRAM里的配置文件信息.
2.路由器的配置信息全部加载在RAM里生效.路由器在启动过程中是将NVRAM里的配置文件加载到RAM里生效.