先使用命令查看无线网卡的名字:
ifconfig
结果如下:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.123.165 netmask 255.255.255.0 broadcast 192.168.123.255
inet6 fe80::8ced:f8c8:81e:4e78 prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:5f:7f:23 txqueuelen 1000 (Ethernet)
RX packets 241360939 b