家中debian服务器的IP地址配置备份:
/etc/network/interfaces:
- ##########/etc/network/interfaces###########
- # The loopback network interface
- auto lo
- iface lo inet loopback
- # The primary network interface
- auto eth0 # or allow-hotplug eth0
- #iface eth0 inet dhcp
- iface eth0 inet static
- hwaddress ether xx:xx:xx:xx:xx:xx
- address 192.168.5.15
- netmask 255.255.255.0
- gateway 192.168.5.1
- dns-nameservers 8.8.8.8 8.8.4.4
- # The wireless network interface
- auto wlan0
- allow-hotplug wlan0
- iface wlan0 inet static
- hwaddress ether 00:13:ce:b4:0a:28
- address 192.168.5.15
- netmask 255.255.255.0
- gateway 192.168.5.1
- dns-nameservers 8.8.8.8 8.8.4.4
- #WEP
- wireless-essid home
- wireless-keymode open|restricted
- #和mode匹配,如果是字符串需要加s:
- wireless-key 12345|s:ascii
- #WPA
- wpa-ssid home
- wpa-driver wext
- wpa-psk plaintext|hexadecimal
/etc/resolv.conf:
- nameserver 8.8.8.8
- nameserver 8.8.4.4
- # OpenDNS
- nameserver 208.67.222.222
- nameserver 208.67.220.220
#########/etc/ppp/peers/dsl-provider##########
defaultroute
replacedefaultroute