UBUNTU SERVER 配置网卡

来源:互联网 发布:c51 c语言 编辑:程序博客网 时间:2024/05/21 06:47

1. 修改interface文件。

    vi  /etc/network/interfaces

添加


auto eth0

iface eth0 inet dhcp

auto wlan0
iface wlan0 inet static
address 192.168.1.202
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1 192.168.253.3
wpa-conf /etc/wpa_config.conf

2. 填写无线ID

  wpa_passphrase TP-LINK 123456 > /etc/wpa_config.conf

3. 修改启动配置BUG

  vi /etc/init/failsafe.conf

注掉

#sleep 20

#sleep 40

#sleep 59


原创粉丝点击