路由命令二

11:路由器telnet远程登陆设置:
 
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 don’t 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 第一个“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
相关文章
相关标签/搜索