11 :路由器 telnet 远程登录设置: <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

router>en

router #configure terminal

router (conf)#hostname routerA

routerA (conf)#enable password cisco cisco 为特权模式密码

routerA (conf)#interface fastethernet 0/1 17 端口为 telnet 远程登录端口

routerA (conf-if)#ip address 192.168.1.1 255.255.255.0

routerA (conf-if)#no shut

routerA (conf-if)#exit

routerA (conf)line vty 0 4 设置 0-4 个用户可以 telnet 远程登陆

routerA (conf-line)#login

routerA (conf-line)#password edge edge 为远程登录的用户密码

主机设置:

ip 192.168.1.2 主机的 ip 必须和交换机端口的地址在同一网络段

netmask 255.255.255.0

gate-way 192.168.1.1 网关地址是交换机端口地址

运行:

telnet 192.168.1.1

进入 telnet 远程登录界面

password : edge

routera>en

password: cisco

routera#

12 :配置路由器的标识 banner $ ……………$

在全局配置的模式下利用 banner 命令可以配置路由器的提示信息,所有连接到路由器的终端都会收到。

router>en

router #configure terminal

router (conf)#hostname routerA

routerA(conf)#banner motd $This is aptech company router ! Please dont change the configuration without permission!

$13 :配置接口标识 description ………

接口标识用于区分路由器的各个接口。

router>en

router #configure terminal

router (conf)#hostname routerA

routerA(conf)#interface fastethernet 0/1 0/1 接口为例

routerA(conf-if)# description this is a fast Ethernet port used to connecting the company s intranet!

14 :配置超时

超时适用于设置在多长时间没有对 console 进行配置,自动返回 exec 会话时间。默认为 10 分钟。

router>en

router #configure terminal

router (conf)#hostname routerA

routerA(conf)#line console 0

routerA(conf-if)#exec-timeout 0 0 第一个 “<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />0 代表分钟,第二个 0 代表秒

15 :配置串口参数

两台路由器通过串口连接需要一个做为 DTE ,一个做为 DCE DCE 设备要向 DTE 设备提供时钟频率和带宽。

DCE 配置:

router>en

router #configure terminal

router (conf)#hostname routerA

routerA(conf)#interface serial 0/0

routerA(conf_if)#clock rate 64000 提供时钟频率为 64000

routerA(conf_if)#bandwidth 64 提供带宽为 64

DTE 配置:路由器串口配置 ip 地址

router>en

router #configure terminal

router (conf)#hostname routerB

routerB(conf)#interface serial 0/0

routerB(conf_if)#ip address 192.168.1.1 255.255.255.0