linux无线网卡只有插上网线才能ping通吗
我在笔记本上装上Linux系统后,配置好无线网卡后。只有插上网线后才能ping通。拔掉网线后就不好用了(无线网卡根本就不好用)。不知道这是什么原因啊?eth1是无线网卡。我的Linux版本是SlackWare14。
root@risun:/etc/rc.d# ifconfig -a
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.1.1.99 netmask 255.255.255.0 broadcast 10.1.1.255
inet6 fe80::215:58ff:fe09:e858 prefixlen 64 scopeid 0x20<link>
ether 00:15:58:09:e8:58 txqueuelen 1000 (Ethernet)
RX packets 2344 bytes 193117 (188.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 734 bytes 103572 (101.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.1.1.25 netmask 255.255.255.0 broadcast 10.1.1.255
inet6 fe80::216:6fff:fe0d:1c95 prefixlen 64 scopeid 0x20<link>
ether 00:16:6f:0d:1c:95 txqueuelen 1000 (Ethernet)
RX packets 3826 bytes 348008 (339.8 KiB)
RX errors 43 dropped 43 overruns 0 frame 0
TX packets 63 bytes 6966 (6.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 21 base 0xc000 memory 0xa8401000-a8401fff
原因呢?是不是优先的问题 看起来是“双网卡,单网关”的问题。网关是eth0的,所以ping无线也走了有限的网关。
可以通过改路由表修复。