Ubuntu 16.04 LTS 校园网频繁掉线

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
Fight_Cola
帖子: 2
注册时间: 2018-04-12 15:31
系统: Ubuntu 16.04 LTS

Ubuntu 16.04 LTS 校园网频繁掉线

#1

帖子 Fight_Cola » 2018-04-12 15:51

具体问题:校园网是锐捷认证,下载了mentohust,刚连上的时候网络没有问题,之后开始一分钟一次的断网,打开网页显示 正在解析主机,只有点击右上角断开网络再连接,才能接着用。
之前各种搜索,误打误撞解决了,不过由于某些原因重装了系统,目前还没有找到解决方法。。

希望能再论坛找到解决方法,免得下次还是一知半解。

本子是 华硕FX50J


一些参数
-----------------------------------------------------------------------------
sudo ifconfig -a


enp4s0f1 Link encap:以太网 硬件地址 9c:5c:8e:27:f9:49
inet 地址:10.16.151.113 广播:10.16.151.255 掩码:255.255.255.0
inet6 地址: 2001:da8:b803:10a:fe83:8f95:4941:5e44/64 Scope:Global
inet6 地址: 2001:da8:b803:10a:a1e6:4f83:9ecd:1982/64 Scope:Global
inet6 地址: fe80::7abb:4adc:9910:2643/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1
接收数据包:190832 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:133800 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:258360211 (258.3 MB) 发送字节:13323267 (13.3 MB)
中断:31 基本地址:0x5000

lo Link encap:本地环回
inet 地址:127.0.0.1 掩码:255.0.0.0
inet6 地址: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 跃点数:1
接收数据包:8452 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:8452 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:853197 (853.1 KB) 发送字节:853197 (853.1 KB)

wlp3s0 Link encap:以太网 硬件地址 80:a5:89:ab:8e:9d
BROADCAST MULTICAST MTU:1500 跃点数:1
接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:0 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:0 (0.0 B) 发送字节:0 (0.0 B)
-----------------------------------------------------------------------------
sudo cat /etc/network/interfaces

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto enp4s0f1
iface enp4s0f1 DHCP

-----------------------------------------------------------------------------
sudo iwlist scan

lo Interface doesn't support scanning.

wlp3s0 Interface doesn't support scanning : Network is down

enp4s0f1 Interface doesn't support scanning.

-----------------------------------------------------------------------------
sudo lshw -class network

*-network DISABLED
description: Wireless interface
product: QCA9565 / AR9565 Wireless Network Adapter
vendor: Qualcomm Atheros
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlp3s0
version: 01
serial: 80:a5:89:ab:8e:9d
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless
configuration: broadcast=yes driver=ath9k driverversion=4.13.0-36-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11
resources: irq:18 memory:f7900000-f797ffff memory:f7980000-f798ffff
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0.1
bus info: pci@0000:04:00.1
logical name: enp4s0f1
version: 12
serial: 9c:5c:8e:27:f9:49
size: 100Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8168 driverversion=8.045.08-NAPI duplex=full ip=10.16.151.113 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
resources: irq:31 ioport:d000(size=256) memory:f7814000-f7814fff memory:f7810000-f7813fff

-----------------------------------------------------------------------------
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: Ubuntu 16.04 LTS 校园网频繁掉线

#2

帖子 poloshiao » 2018-04-12 16:23

校园网
1. 猜測 是使用 有線網卡界面 enp4s0f1
sudo lshw -class network
*-network DISABLED
description: Wireless interface
product: QCA9565 / AR9565 Wireless Network Adapter
vendor: Qualcomm Atheros
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlp3s0
version: 01
serial: 80:a5:89:ab:8e:9d
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless
configuration: broadcast=yes driver=ath9k driverversion=4.13.0-36-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11
resources: irq:18 memory:f7900000-f797ffff memory:f7980000-f798ffff
wlp3s0 Link encap:以太网 硬件地址 80:a5:89:ab:8e:9d
BROADCAST MULTICAST MTU:1500 跃点数:1
接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:0 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:0 (0.0 B) 发送字节:0 (0.0 B)
2. 無線網卡 沒有驅動 合宜啟用
2-1. 建議 把無線網卡拔除 或 把自動連線 取消打勾
enp4s0f1 Link encap:以太网 硬件地址 9c:5c:8e:27:f9:49
inet 地址:10.16.151.113 广播:10.16.151.255 掩码:255.255.255.0
inet6 地址: 2001:da8:b803:10a:fe83:8f95:4941:5e44/64 Scope:Global
inet6 地址: 2001:da8:b803:10a:a1e6:4f83:9ecd:1982/64 Scope:Global
inet6 地址: fe80::7abb:4adc:9910:2643/64 Scope:Link
3. 如果校園網預設使用 IPv4
建議 把 IPv6 關閉
3-1. 關閉方法
3-1-1. /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash ipv6.disable=1"
3-1-2. sudo update-grub
3-1-3. sudo systemctl reboot

4. 如果沒改善 歡迎再貼文
Fight_Cola
帖子: 2
注册时间: 2018-04-12 15:31
系统: Ubuntu 16.04 LTS

Re: Ubuntu 16.04 LTS 校园网频繁掉线

#3

帖子 Fight_Cola » 2018-04-13 22:19

感谢楼上帮助,目前问题已经解决。
问题出在IPv6上。
回复