CentOS7命令行链接wifi的方法

2020-01-30 16:57:02王振洲

[root@localhost]# dhclient wlp2s0

9、最后,查看无线网卡地址信息,有ip地址表示网络连接成功了 

[root@ localhost]# ifconfig wlp2s0 

wlp2s0: flags=4163< UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 

inet 192.168.168.139 netmask 255.255.255.0 broadcast 192.168.168.255 

inet6 fe80::62d8:19ff:fecc:7484 prefixlen 64 scopeid 0x20 

ether 60:d8:19:cc:74:84 txqueuelen 1000 (Ethernet) 

RX packets 13567 bytes 13386147 (12.7 MiB) 

RX errors 0 dropped 0 overruns 0 frame 0 

TX packets 12682 bytes 1979923 (1.8 MiB) 

TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0