拓扑图:
一.画2个2811路由,2个交换机,4个PC;
分别在RA和RB断电时,将WIC-2T放入serial模块1,再powerOn;
不同设备用直连,而RA与RB用DCE连;DCE连线的两端,起始端带时钟图标的设备需配置clock rate ,另一端为DTE,无需配clock rate;
二.重命名设备(全局模式)
刚开始配置路由选NO;
Router>en
Router#config t
Router(config)#hostname RA
三.配置接口(全局模式-接口配置模式)
RA(config)#interface fastEthernet 0/0
RA(config-if)#ip address 192.168.1.1 255.255.255.0
RA(config-if)#no shutdown
(接口默认被禁用。要启用接口,请在接口配置模式下输入 no shutdown 命令。)
RA(config)#interface serial 0/0/0
RA(config-if)#ip address 192.168.2.1 255.255.255.0
RA(config-if)#clock rate 56000
RA(config-if)#no shutdown
(在直接互连的串行链路上,例如在我们的实验环境中,其中一端必须作为 DCE 提供时钟信号。)
RA#show ip int brief
(查看路由器所有接口的开关状态)
四.配置IP
五.路由学习
路由表查看:Show ip route
(C:直连线路;R:路由学习间接连的)
RA(config)#Router rip
RA(config-router)#Network 192.168.1.0
End
RB(config)#Router rip
RB(config-router)#Network 192.168.2.0
【路由学习是一个将自己知道的东西公布出来的过程!】
六.设置口令
控制台口令 — 用于限制人员通过控制台连接访问设备
使能口令 — 用于限制人员访问特权执行模式
使能加密口令 — 经加密,用于限制人员访问特权执行模式
VTY 口令 — 用于限制人员通过 Telnet 访问设备
RA(config)#Line console 0
RA(config-line)#Login
RA(config-line)#Pass 123
RA(config-line)#Exit
RA(config)#Line vty 0 4
RA(config-line)#Login
RA(config-line)#Pass 1234
RA(config-line)#Exit
RA(config)#Enable secret 12345
RA(config-line)#End
RA#Copy running-config startup-config