第一次接触思科的八爪电缆,是在上CCNA的时候,那个时候还不知道八爪电缆的作用,现在终于有机会见到了,开始配置一台2511 作为管理路由器,通过电脑Console路由器,然后路由器的ASYNC口分出线缆来管理其他的路由器,什么也别说了,开始我们的实验吧!
材料:2511路由器一台,八爪鱼一根,Console线一条,然后测试机器一台。
连接方法:电脑连接console管理2511,在2511的SYNC口接上八爪鱼,然后就做以下的配置(嫌麻烦的童鞋可以直接拷贝代码,修改一下地址和名字就可以直接用了。
enable
configure terminal
hostname Tserver
interface loopback 0
ip add 192.168.100.200 255.255.255.0
line console 0
logging synchronous
no exec-timeout
transport input all
exit
line 1 16
no exec-timeout
transport input all
exit
line vty 0 4
exec-timeout 00
password cisco
login
exit
ip host zyw1 2001 192.168.100.200
ip host zyw2 2002 192.168.100.200
ip host zyw3 2003 192.168.100.200
ip host zyw4 2004 192.168.100.200
ip host zyw5 2005 192.168.100.200
ip host zyw6 2006 192.168.100.200
ip host zyw7 2007 192.168.100.200
ip host zyw8 2008 192.168.100.200
ip host zyw9 2009 192.168.100.200
ip host zyw10 2010 192.168.100.200
ip host zyw11 2011 192.168.100.200
ip host zyw12 2012 192.168.100.200
ip host zyw13 2013 192.168.100.200
ip host zyw14 2014 192.168.100.200
ip host zyw15 2015 192.168.100.200
ip host zyw16 2016 192.168.100.200
ip host zyw17 2017 192.168.100.200
ip host第一个命令把终端服务其的第一条异步线路和一个叫做zyw1的主机名进行了关联,以后只要在终端服务器中输入 zyw1,就可以把配置界面切换到叫做zyw1的那一台设备上进行调试,前提是zyw1这台设备必须连接在终端服务器的异步接口1上的第一条线路。
以下是我的2511配置信息:
Tserver#sho run
Building configuration...
Current configuration:
!
version 11.3
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Tserver
!
!
ip host zyw1 2001 192.168.100.200
ip host zyw2 2002 192.168.100.200
ip host zyw3 2003 192.168.100.200
ip host zyw4 2004 192.168.100.200
ip host zyw5 2005 192.168.100.200
ip host zyw6 2006 192.168.100.200
ip host zyw7 2007 192.168.100.200
ip host zyw8 2008 192.168.100.200
ip host zyw9 2009 192.168.100.200
ip host zyw10 2010 192.168.100.200
ip host zyw11 2011 192.168.100.200
ip host zyw12 2012 192.168.100.200
ip host zyw13 2013 192.168.100.200
ip host zyw14 2014 192.168.100.200
ip host zyw15 2015 192.168.100.200
ip host zyw16 2016 192.168.100.200
ip host zyw17 2017 192.168.100.200
!
!
interface Loopback0
ip address 192.168.100.200 255.255.255.0
!
interface Ethernet0
no ip address
shutdown
!
interface Serial0
no ip address
no ip mroute-cache
shutdown
no fair-queue
!
interface Serial1
no ip address
shutdown
!
ip classless
!
!
line con 0
exec-timeout 0 0
logging synchronous
line 1 16
exec-timeout 0 0
transport input all
line aux 0
line vty 0 4
exec-timeout 0 0
password cisco
login
!
end
最后测试的结果是:
(Tserver是我的2511)
Tserver#zyw1
Trying zyw1 (192.168.100.200, 2001)... Open
Router>(这一台是测试路由)
进入测试路由器后要从测试路由器退出的话就要按快捷键 CTRL+Shift+X 然后按6 就退出2511的管理界面。另外要注意的是:如果出现远端拒绝的信息的话就先要检查线路是否接上,还有线路号是否对上,物理都没有问题的话就要清线路了。
清除线路的命令:
Tserver#clear line 1
[confirm]
[OK]
下面是看线路有没有被占用的命令:
Tserver#sho line
Tty Typ Tx/Rx A Modem Roty AccO AccI Uses Noise Overruns
* 0 CTY - - - - - 2 0 0/0
1 TTY 9600/9600 - - - - - 2 1 0/0
2 TTY 9600/9600 - - - - - 0 0 0/0
3 TTY 9600/9600 - - - - - 0 0 0/0
4 TTY 9600/9600 - - - - - 0 0 0/0
5 TTY 9600/9600 - - - - - 0 0 0/0
6 TTY 9600/9600 - - - - - 0 0 0/0
7 TTY 9600/9600 - - - - - 0 0 0/0
8 TTY 9600/9600 - - - - - 0 0 0/0
9 TTY 9600/9600 - - - - - 0 0 0/0
10 TTY 9600/9600 - - - - - 0 0 0/0
11 TTY 9600/9600 - - - - - 0 0 0/0
12 TTY 9600/9600 - - - - - 0 0 0/0
13 TTY 9600/9600 - - - - - 0 0 0/0
14 TTY 9600/9600 - - - - - 0 0 0/0
15 TTY 9600/9600 - - - - - 0 0 0/0
16 TTY 9600/9600 - - - - - 0 0 0/0
17 AUX 9600/9600 - - - - - 0 0 0/0
18 VTY - - - - - 0 0 0/0
19 VTY - - - - - 0 0 0/0
20 VTY - - - - - 0 0 0/0
21 VTY - - - - - 0 0 0/0
Tty Typ Tx/Rx A Modem Roty AccO AccI Uses Noise Overruns
22 VTY - - - - - 0 0 0/0
uses 是占用线路的用户。如果用户占用了该线路,而你又是该管理器的管理员你可以把线路清除了保证你的线路使用正常。好了今天跟大家分享的就是这个实验了。