352262 发表于 2018-7-11 11:45:29

Cisco路由Telnet配置

如果只用telnet,serial口都不必设置,主要被telnet一端设置hostname/password即可实验环境Router 1:DCE设备HOSTNAME: GADconsole password: ciscoVTY password: ciscosecret:classFastethernet IP: 192.168.14.1//serial IP:192.168.15.1//mask:255.255.255.0Routing protocol: RIP Router 2:DTE设备HOSTNAME BHMconsole password: ciscoVTY password: ciscosecret:classFastethernet IP: 192.168.16.1//serial IP: 192.168.15.2//mask: 255.255.255.0Routing protocol: RIP Router 1 配置步骤:router 1> enablerouter# conf trouter(config)# hostname GADGAD(config)# line console 0GAD(config-line)#password ciscoGAD(config-line)# loginGAD(config-line)# exitGAD(config)# line vty 0 4GAD(config-line)# password ciscoGAD(config-line)# loginGAD(config-line)# exitGAD(config)# interface fastethernet 0/0GAD(config-if)# ip address 192.168.14.1 255.255.255.0GAD(config-if)# no shutdownGAD(config-if)# exit//GAD(config)#interface serial 0/0/0//GAD(config-if)#ip address 192.168.15.1 255.255.255.0//GAD(config-if)# clock rate 56000//GAD(config-if)# no shutdown//GAD(config-if)# exitGAD(config)# router ripGAD(config-router)# network 192.168.14.0//GAD(config-router)# network 192.168.15.0GAD(config-router)# exitGAD(config)# Router 2 配置步骤: router 2> enablerouter# conf trouter(config)# hostname BHMBHM(config)# line console 0BHM(config-line)#password ciscoBHM(config-line)# loginBHM(config-line)# exitBHM(config)# line vty 0 4BHM(config-line)# password ciscoBHM(config-line)# loginBHM(config-line)# exitBHM(config)# interface fastethernet 0/0BHM(config-if)# ip address 192.168.16.1 255.255.255.0BHM(config-if)# no shutdownBHM(config-if)# exit//BHM(config)#interface serial 0/0/0//BHM(config-if)#ip address 192.168.15.2 255.255.255.0//BHM(config-if)# no shutdown//BHM(config-if)# exitBHM(config)# router ripBHM(config-router)# network 192.168.16.0//BHM(config-router)# network 192.168.15.0BHM(config-router)# exitBHM(config)# 配置完成。 分别进入双方用户模式,ping 对方以太网接口和串口,如果全部联通,表示成功。  建立TELNET连接,在GAD用户模式(或者特权模式)下输入 telnet 192.168.15.2 建立对BHM的telnet连接,输入密码cisco后,可正常操作。
页: [1]
查看完整版本: Cisco路由Telnet配置