Centos7使用无线wifi连接

来自ling
跳转至: 导航搜索
tee > /etc/sysconfig/network-scripts/ifcfg-bo.wang <<EOF
HWADDR=28:18:78:CE:8F:F9
ESSID="bo.wang"
MODE=Managed
KEY_MGMT=WPA-PSK
TYPE=Wireless
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=bo.wang
UUID=33bc2fb3-487b-4c06-9092-bcdf0905e50a
ONBOOT=yes
MAC_ADDRESS_RANDOMIZATION=default
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_PRIVACY=no

EOF
tee > /etc/sysconfig/network-scripts/keys-bo.wang <<EOF
WPA_PSK='191010610109'
EOF