centos7最小安装配置无线网卡

无线网络ssid:test

密码:12345678

1新建配置文件ifcfg-test

vi /etc/sysconfig/network-scripts/ifcfg-test
HWADDR=CC:AF:78:26:0A:EA
ESSID=test#无线网名称
MODE=Managed
KEY_MGMT=WPA-PSK
SECURITYMODE=open
MAC_ADDRESS_RANDOMIZATION=default
TYPE=Wireless
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=sn
UUID=c145eaec-3e6e-4db9-9a63-c731e11493e7
ONBOOT=yes

2新建密码文件

vi /etc/sysconfig/network-scripts/keys-test
WPA_PSK=12345678

3重启网卡

你可能感兴趣的:(Linux)