Cisco 2900c#
Step 1.服務器
ip add 192.168.1.2 255.255.255.0session
no shutapp
no ip routing
ip default-gateway 192.168.1.1async
Step 2
tcp
line 0/0/0 0/1/7ide
no exec <- 禁用 EXEC 進程
transport input all <- 容許全部協議從line 1 - 16 使用
oop
Step 3.this
ip host SW1 2003 192.168.1.2
ip host SW2 2004 192.168.1.3調試
ip host SW3 2005 192.168.1.2
ip host SW4 2006 192.168.1.2
Step 4.
line vty 0
password cisco
login
escape-character W <- 更改默認退出字符爲 Ctrl + W(缺省爲Ctrl+Shift+6)
Step 5.verification
telnet 192.168.1.2 2003
cle line 3
//tcp# 2003 is mappted to line 3
sh session
disc 3
//kill the session on line 3
Cable#>Async#>Tcp#
P0>Async0/0/0>2003
P1>Async0/0/1>2004
P2>Async0/0/2>2005
P3>Async0/0/3>2006
P4>Async0/0/4>2007
terminal_server#show users all <- 查看鏈接的用戶和接在哪一個線路上
Ctrl+Shift+6,而後再按 x <- 返回到終端服務器;若是要徹底退出,須要在當前界面輸入exit再回車
terminal_server#show sessions <- 查看telnet會話 *爲當前會話,回車鏈接,其它輸入相應數字如:2
terminal_server#disconnect 2 <- 終止 telnet 會話(本機到遠程)
terminal_server#clear line 1 <- 清除線路(別人到本機)
terminal_server#show line 1 <- 查看線路的狀態
telnet host 1015 Connection refused by remote host, 而且在tty前邊出現星號,此時須要"clear line tty 68(68爲TTY端口號,系統會顯示爲2068) "
Tip 1.HWIC-16A調試
First check the output of show line command.
The first row is for console. It is always with the lowest number (0) followed by the async lines. The number of async lines varies by platform being used. The reverse telnet ports between 2000-2999 (ascii mode) and 6000-6999 (binary mode) range. The above command output will show the TTY line numbers being used and you have to add that number to 2000 and 6000 for example the first TTY line is 33 its reverse telnet port will be 2033 and 6033.
AS01#sh line
Tty Line Typ Tx/Rx A Modem Roty AccO AccI Uses Noise Overruns Int
* 0 0 CTY - - - - - 12 0 0/0 -
1 1 AUX 9600/9600 - - - - - 0 0 0/0 -
* 0/0/0 2 TTY 9600/9600 - - - - - 4 32 0/0 -
0/0/1 3 TTY 9600/9600 - - - - - 2 36 0/0 -
若是0/0/0接rm01,則對應reverse telnet port就是2000+2=2002,不能像NM-32A那樣隨意定義端口;同理,0/0/1接rm02,則對應reverse telnet port爲2003
ip host rm01 2002 165.46.234.72
ip host rm02 2003 165.46.234.72
上邊的rm01只是一個標示符,真正起做用的是2002,即Async0/0/0線纜對應的設備
Tip 2.若是跨機架,是否須要rollover線纜?
不須要,
由於八爪魚出來的線纜自己就是rollover線纜,因此跨機架跳線時用應該普通的直通網線
Tip 3.如何troubleshoot?
If you cannot connect to the router of your choice with a name configured in the ip host command check:1. Check whether the port address is configured correctly.Verify whether the address (interface) used for the reverse Telnet is up/up. The output of the show ipinterface brief command provides this information. Cisco recommends you to use loopbacks becausethey are always up.2.Ensure that you have the correct type of cabling. For example, you must not use a crossover cable toextend the length. Refer to the Cabling section for more information.3.Establish a Telnet connection to the IP address port to test direct connectivity. You must telnet fromboth an external device and the terminal server. For example, telnet 172.21.1.1 2003.4.Ensure that you have the transport input telnet command under the line for the target device. Thetarget device is the device that is connected to the terminal server.5.Use a PC/dumb terminal to connect directly to the console of the target router. The target router is thedevice connected to the terminal server. This step helps you identify the presence of a port issue.6.If you are disconnected, check timeouts. You can remove or adjust timeouts.Note: If you encounter authentication failures, remember that the terminal server performs the firstauthentication (if configured), while the device to which you try to connect performs the secondauthentication (if configured). Verify whether AAA is configured correctly on both the terminalserver and the connecting device.