我已经采用了英特尔 NUC 来充当我的家庭路由器。它为 wifi 客户端和一些以太网客户端处理 LAN 上的 VLAN、本地 LAN、OpenVPN 服务器、WAN 连接。奇怪的是它的WAN连接是非常慢,外线100Mb/s时大约2-3Mb/s。还,平同样减慢:ping Google DNS 从3毫秒 至 120 毫秒, 等等。
我已经尝试过明显的事情:
由于 WAN 连接是通过 USB 以太网适配器进行的,因此我重新编译并重新安装了最新版本的驱动程序,AX88179_178A;
更换了以太网电缆和USB 以太网适配器;
通过插入我的笔记本电脑来测试调制解调器的以太网端口;
通过将潜在的路由器用作普通的 LAN 电脑来测试它,并使用相同/不同的电缆/适配器对其所有接口进行速度测试(它们都工作正常);在这种情况下我总是获得 100Mb/s 的速度。
我现在开始相信我正在处理某种错误,而不是错误配置:事实上,此配置已被克隆的(猫 /dev/sda > /dev/sdb)来自不同的无头服务器(华硕 Vivo PC),我也在其他地方将其用作路由器,并且在华硕上配置工作完美。但我不知道该向哪里求助。
一个提示来自于这样的事实:如果配置不检测通过的数据包:
# ifconfig eth2
eth2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.239 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::223:54ff:fe6c:7527 prefixlen 64 scopeid 0x20<link>
ether 00:23:54:6c:75:27 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 1 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
尽管ip路由只展现这神秘的无前缀路由在 IPv4 线路上这让我很困惑,因为我认为这是一个选项IPv6仅有的:
# ip addr show eth2
3: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:23:54:6c:75:27 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.239/24 brd 192.168.1.255 scope global dynamic noprefixroute eth2
valid_lft 86150sec preferred_lft 86150sec
inet6 fe80::223:54ff:fe6c:7527/64 scope link noprefixroute
valid_lft forever preferred_lft forever
上面的输出是在获得 DHCP 地址后生成的,通常我使用静态地址,见下文:它没有任何区别。
相关信息:我的/etc/网络/接口:
auto lo
iface lo inet loopback
auto eth2
iface eth2 inet static
address 192.168.1.128
network 192.168.1.0
gateway 192.168.1.254
netmask 255.255.255.0
auto eth0
iface eth0 inet static
address 192.168.73.1
network 192.168.73.0
netmask 255.255.255.0
iface eth0.10 inet manual
vlan-raw-device eth0
iface brwifi inet static
address 10.0.73.1
network 10.0.73.0
netmask 255.255.255.0
bridge_ports eth0.10
bridge_stp on
pre-up sleep 3
bridge_maxwait 10
的输出以太网工具对于有问题的界面,以太坊2:
ethtool eth2
Settings for eth2:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 3
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pg
Wake-on: g
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
以及内核环形缓冲区的相关部分:
[ 11.819082] ax88179_178a 2-1:1.0 eth2: renamed from eth1
[ 11.864685] IPv6: ADDRCONF(NETDEV_UP): eth2: link is not ready
[ 15.968067] IPv6: ADDRCONF(NETDEV_UP): eth2: link is not ready
[ 19.608009] ax88179_178a 2-1:1.0 eth2: ax88179_178a - Link status is: 1
[ 19.816004] ax88179_178a 2-1:1.0 eth2: ax88179_178a - Link status is: 1
[ 19.919997] ax88179_178a 2-1:1.0 eth2: ax88179_178a - Link status is: 1
[ 19.920021] ax88179_178a 2-1:1.0 eth2: Write medium type: 0x0033
[ 20.023986] ax88179_178a 2-1:1.0 eth2: ax88179_178a - Link status is: 1
[ 20.127989] ax88179_178a 2-1:1.0 eth2: ax88179_178a - Link status is: 1
[ 20.335991] ax88179_178a 2-1:1.0 eth2: ax88179_178a - Link status is: 1
[ 20.336093] IPv6: ADDRCONF(NETDEV_CHANGE): eth2: link becomes ready
[ 20.648006] ax88179_178a 2-1:1.0 eth2: link up, 1000Mbps, full-duplex, lpa 0xC3E1
[ 20.965805] ax88179_178a 2-1:1.0 eth2: Write medium type: 0x0033
[ 21.687979] ax88179_178a 2-1:1.0 eth2: link up, 1000Mbps, full-duplex, lpa 0xC3E1
就其价值而言,我运行了一个完美更新的Debian 破坏者/sid,一个合适的评论是:我不坚持是正确的稳定的。但无论如何,任何人都可以帮忙,请?