我对 Linux 还很陌生,但我决定构建自己的控制台服务器来连接我的 Cisco 设备。
我有一台 Raspberry Pi 4,我在上面安装了它ser2net
,它运行良好。
但是当我使用 telnet 进入我的某个设备时,终端中出现了两行内容,如下所示:
Sw1>
Sw1>
如果我按下 Enter 键,我就得到这个!
Sw1>
Sw1>
我尝试了很多方法,在互联网上搜索了很多解决方案,已经为此奋斗了两天。我又累又迷茫,需要一些好的建议。
我已经做了什么:
尝试使用 Putty 和 Teraterm,包括调整终端设置。
CF、LF 和 Force 回声等等。
我甚至尝试更换 USB 转串行适配器,这让我相信它一定是 Pi、Linux 或 上的某种东西ser2net
。但我搞不清楚。
对于任何成功的关键来说,这是我的ser2net
配置:
define: &banner \r\nser2net port \p device \d [\B] (Debian GNU/Linux)\r\n\r\n
admin:
accepter: tcp,8000
connection: &1
accepter: tcp,8001
enable: on
options:
max-connections: 4
connector: serialdev,
/dev/serial/by-id/usb-FTDI_FT4232H_Device_FT78IUDK-if00-port0,
9600n81,local
connection: &2
accepter: tcp,8002
enable: on
options:
max-connections: 4
connector: serialdev,
/dev/serial/by-id/usb-FTDI_FT4232H_Device_FT78IUDK-if01-port0,
9600n81,local
connection: &3
accepter: tcp,8003
enable: on
options:
max-connections: 4
connector: serialdev,
/dev/serial/by-id/usb-FTDI_FT4232H_Device_FT78IUDK-if02-port0,
9600n81,local
connection: &4
accepter: tcp,8004
enable: on
options:
max-connections: 4
connector: serialdev,
/dev/serial/by-idh/usb-FTDI_FT4232H_Device_FT78IUDK-if03-port0,
9600n81,local
connection: &5
accepter: tcp,8004
enable: on
options:
max-connections: 4
connector: serialdev,
/dev/serial/by-id/usb-FTDI_FT4232H_Device_FT78IUTQ-if00-port0,
9600n81,local
connection: &6
accepter: tcp,8004
enable: on
options:
max-connections: 4
connector: serialdev,
/dev/serial/by-id/usb-FTDI_FT4232H_Device_FT78IUTQ-if01-port0,
9600n81,local
connection: &7
accepter: tcp,8004
enable: on
options:
max-connections: 4
connector: serialdev,
/dev/serial/by-id/usb-FTDI_FT4232H_Device_FT78IUTQ-if02-port0,
9600n81,local
connection: &8
accepter: tcp,8004
enable: on
options:
max-connections: 4
connector: serialdev,
/dev/serial/by-id/usb-FTDI_FT4232H_Device_FT78IUTQ-if03-port0,
9600n81,local
connection: &9
accepter: tcp,8004
enable: on
options:
max-connections: 4
connector: serialdev,
/dev/serial/by-id/usb-FTDI_FT4232H_Device_FT78J9GN-if00-port0,
9600n81,local
connection: &10
accepter: tcp,8004
enable: on
options:
max-connections: 4
connector: serialdev,
/dev/serial/by-id/usb-FTDI_FT4232H_Device_FT78J9GN-if01-port0,
9600n81,local
connection: &11
accepter: tcp,8004
enable: on
options:
max-connections: 4
connector: serialdev,
/dev/serial/by-id/usb-FTDI_FT4232H_Device_FT78J9GN-if02-port0,
9600n81,local
connection: &12
accepter: tcp,8004
enable: on
options:
max-connections: 4
connector: serialdev,
/dev/serial/by-id/usb-FTDI_FT4232H_Device_FT78J9GN-if03-port0,
9600n81,local
答案1
我遇到了同样的问题,以下接受器配置解决了该问题:
accepter: telnet(rfc2217),tcp,8001