简体   繁体   中英

I can't disable echo option using apache-commons-net TelnetClient

I am using apache-commons-net TelnetClient class for my telnet connection to cisco router. This code EchoOptionHandler(false, false, false, false) should disable echo-option for this connection. But it doesn't disable! Wireshark shows that router sends "will echo", then my telnet client sends "don't echo" and then router sends "won't echo". This telnet commands should mean no echoing, right? But my client receives all sent commands! How is it possible?

I use and works:

tc = new TelnetClient("unset localecho");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM