|
在家里使用dhcp无线上网,可是经常自动断线,无奈使用cron定时运行dhclient,why?我的网络配置如下:
# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 10.11.46.3
netmask 255.255.255.0
broadcast 10.11.46.255
network 10.11.46.0
gateway 10.11.46.1
#dns-nameservers 202.99.160.68 202.99.166.4
#auto eth1
allow-hotplug eth1
iface eth1 inet dhcp
pre-up wpa_supplicant -B -i eth1 -c /etc/wpa_supplicant/wpa_supplicant.conf -f /var/log/wpa_supplicant.log
post-down killall -9 -q wpa_supplicant
无线网络使用wpa2加密的,使用中国电信的线路,有线走中国联通。 |
|