在/etc/network/interface
重启之后发现静态ip没有生效,照理来说我把dhcp给注释掉了,dhcp应该不生效才对
yongqing wang:
你贴的这段没有将dhcp注释掉啊
yongqing wang:
回复 yongqing wang:
参考一下这个:
auto lo
iface lo inet loopback
allow-hotplug wlan0
iface wlan0 inet manualwpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
allow-hotplug wlan1
iface wlan1 inet manualwpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
allow-hotplug wlan0
#iface wlan0 inet dhcpiface wlan0 inet staticaddress 192.168.0.110netmask 255.255.255.0network 192.168.0.1gateway 192.168.0.1wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
#iface default inet dhcp
iface eth0 inet staticaddress 192.168.0.115netmask 255.255.255.0network 192.168.0.1gateway 192.168.0.1
user4632301:
回复 Denny%20Yang99373:
这个试了一下,确实可以的