大网数据广告活动
服务器运维问答

Ubuntu SSH connection hangs when I run ifconfig with IPv6 enabled

· 52CE 我爱测

I've been playing around with IPv6 and setup a DigitalOcean droplet. The only difference between now and before is that I told it to setup IPv6. More often than not, when I run ifconfig the SSH session hangs, then disconnects due…

问题原文

原帖链接 · Brian · CC BY-SA 4.0

I've been playing around with IPv6 and setup a DigitalOcean droplet. The only difference between now and before is that I told it to setup IPv6. More often than not, when I run ifconfig the SSH session hangs, then disconnects due to unresponsiveness. The ifconfig command doesn't finish when this happens...it only gets past dumping the IPv6 details.

Any place I can check to debug this? My solution right now is just not to run ifconfig.

After reading the comments again, I realized that there is maybe a misinterpretation occurring. My command was only ifconfig to display network details, I'm not configuring anything with it so there are no extra details beyond that.

The tip that ifconfig isn't in use anymore is the most helpful thing so far. There is so much legacy crap on the net still, it is easy to pick up something antiquated.

已采纳解答

原帖链接 · KeepLearning · CC BY-SA 4.0

That sounds like a MTU issue - perhaps the extra IPv6 addresses in the ifconfig output tipped the packet size over the MTU limit and the session hangs.

Does the hangup happen with any other long-listings? Perhaps when running top? Or when copying files to/from the host? Check the link, it explains what a MTU problem is and what you can do about it.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-06-08)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。