代码: 全选
uname -a
Linux debian 4.2.0-1-amd64 #1 SMP Debian 4.2.3-2 (2015-10-14) x86_64 GNU/Linux
代码: 全选
sudo ifconfig -a
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 08:9e:01:89:a2:24 txqueuelen 1000 (Ethernet)
RX packets 7409463 bytes 623796399 (594.8 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 7128 bytes 802826 (784.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 264 bytes 24059 (23.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 264 bytes 24059 (23.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.103 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::2ed0:5aff:feb2:10ca prefixlen 64 scopeid 0x20<link>
ether 2c:d0:5a:b2:10:ca txqueuelen 1000 (Ethernet)
RX packets 4958 bytes 419298 (409.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 245 bytes 36336 (35.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
代码: 全选
sudo route -nv
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 600 0 0 wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 600 0 0 wlan0
代码: 全选
sudo route del -net 169.254.0.0 netmask 255.255.0.0 wlan0