用于配置新 HP procurve 交换机的终端服务器 (ser2net)

用于配置新 HP procurve 交换机的终端服务器 (ser2net)

交换机:HP ProCurve 2910AL-48G - J9147A

该交换机是直接从 HP 购买的全新交换机。

有人熟悉 ser2net 用于创建终端服务器以从 HP procurve 交换机上的 USB>串行>控制台端口进行连接吗?在过去的几个月里我已经这样做了 4 次,并且遇到了 0 个问题。这个一模一样的新的不起作用。

我用作参考的指南:
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&taskId=115&prodSeriesId=3901671&prodTypeId=12883&prodSeriesId=3901671&objectID=c01975721
http://www.gns3.net/switching-how-to-console-into-your-devices/

root@mycomp:/dev# lsusb
Bus 001 Device 006: ID 0557:2008 ATEN International Co., Ltd UC-232A Serial Port [pl2303]

root@mycomp:/dev# dmesg | grep tty
[ 0.000000] console [tty0] enabled
[ 0.738224] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 0.963603] 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[16153.422206] usb 1-1.1: pl2303 converter now attached to ttyUSB0
[18163.982680] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
[18167.091054] usb 1-1.2: pl2303 converter now attached to ttyUSB0

/etc/ser2net.conf
3002:telnet:0:/dev/ttyUSB0:9600 8DATABITS NONE 1STOPBIT banner

root@mycomp -> telnet localhost 3002
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

ser2net port 3002 device /dev/ttyUSB0 [9600 N81] (Debian GNU/Linux)

然后它就挂在那里,不会像过去使用其他全新开关那样让我看到提示。如果您输入任何内容,您会得到:

外部主机关闭连接。

关于如何解决这个问题有什么想法吗?另外,如果有更好的方法,请随时通知我,我有 3 个新交换机,理想情况下需要在明天结束之前部署。

答案1

当我在/etc/ser2net配置文件中的配置行上启用硬件流控制(RTSCTS)时,我看到了这个问题。您可以通过添加-RTSCTS到该行来禁用此功能。

我还遇到了我的会话会立即断开连接的问题:

外部主机关闭连接。

我通过在配置行中添加“LOCAL”来解决这个问题,该配置行忽略调制解调器监控线。

相关内容