2011/01/15

network interfaces

#ubuntu

sudo vim.tiny /etc/network/interfaces


# 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 /etc/init.d/network-manager restart 
sudo /etc/init.d/networking restart


沒有留言:

張貼留言