网卡配置:
1,ifup etch0 激活网卡 (ifdown 关闭网卡)
2,DNS设置
vim /etc/resolv.conf
nameserver 119.29.29.29
nameserver 8.8.8.8
3,网卡配置
vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE='eth0'
HWADDR=00:0C:29:CA:67:F6
TYPE=Ethernet
NM_CONTROLLED='yes'
BOOTPROTO=static
DEFROUTE=yes
NETWORKING=yes
IPV4_FAILURE_FATAL=yes
UUID=2827faac-8125-4334-a6f8-61c9fb081ca3
NAME='System eth0'
IPADDR=10.130.70.222 #这里需要改成无线网络ip段
GATEWAY=10.130.70.1 #
NETMASK=255.255.255.0
ONBOOT=yes
4,重启网络
service network restart