無線網絡ssid:test
密碼:12345678
1新建配置文件ifcfg-testvi /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重啟網卡