2011/01/22

interface

#ubuntu

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0

iface eth0 inet static

address 192.168.31.101
netmask 255.255.255.0
network 192.168.31.0
broadcast 192.168.31.255
gateway 192.168.31.1

dns-nameserver 168.95.1.1



sudo ifconfig eth0 down
sudo ifconfig eth0 up

sudo /etc/init.d/networking restart

沒有留言:

張貼留言