设为首页 收藏本站
查看: 751|回复: 0

[经验分享] Cisco Terminal Server配置技巧(HWIC-16A & NM-32A)

[复制链接]

尚未签到

发表于 2018-7-11 07:02:13 | 显示全部楼层 |阅读模式
  Cisco 2900
  Step 1.
  ip add 192.168.1.2 255.255.255.0
  no shut
  no ip routing
  ip default-gateway 192.168.1.1
  Step 2
  line 0/0/0 0/1/7
  no exec <- 禁用 EXEC 进程
  transport input all <- 允许所有协议从line 1 - 16 使用
  Step 3.
  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 ip
  interface brief command provides this information. Cisco recommends you to use loopbacks because
  they are always up.
  2.
  Ensure that you have the correct type of cabling. For example, you must not use a crossover cable to
  extend 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 from
  both 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. The
  target 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 the

  device connected to the terminal server. This step helps you>  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 first
  authentication (if configured), while the device to which you try to connect performs the second
  authentication (if configured). Verify whether AAA is configured correctly on both the terminal
  server and the connecting device.

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-535961-1-1.html 上篇帖子: Cisco UCS环境中CentOS带Vlan ID的网络配置指南 下篇帖子: Cisco 胖瘦AP转换
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表