ubuntu下设置网络

IP、网关设置

sudo vi /etc/network/interfaces

auto eth0

iface eth0 inet static

address 192.168.1.123

netmask 255.255.255.0

gateway 192.168.1.1

DNS设置(临时)

sudo vi /etc/resolv.conf
nameserver 202.xx.xx.xx
nameserver 192.168.1.1

posted @ 2011-09-30 13:05  moonbay  阅读(142)  评论(0编辑  收藏  举报