DHCP 環境下重新取得 IP
sudo dhclient eth0
sudo dhclient wlan0
修改 Ethernet 網路設定
$ sudo vi /etc/network/interfaces Enter
--------------------------------------------------
auto lo
iface lo inet loopback
#
#NAT
auto eth0
#iface eth1 inet dhcp
iface eth0 inet static
address 192.168.100.108
netmask 255.255.0.0
gateway 10.5.87.254
dns-nameservers 8.8.8.8 168.95.1.1 208.67.220.220
#
#HOST
auto eth1
iface eth1 inet dhcp
#iface eth0 inet static
#address 192.168.100.10
#netmask 255.255.0.0
#gateway 192.168.127.254
dns-nameservers 8.8.8.8 168.95.1.1 208.67.220.220
#
#BRIDGED
#auto eth2
#iface eth2 inet dhcp
#dns-nameservers 8.8.8.8 168.95.1.1 208.67.220.220
--------------------------------------------------
留言列表