2008年8月12日星期二

ubuntu网卡设定相关

/etc/network/interfaces


iface eth0 inet static
address 192.168.0.111
netmask 255.255.255.0
gateway 192.168.0.1

也可以加上一条
auto eth0
如此一来,断线亦可自动恢愎之。

这时候我们重启下网络.Ubuntu 重启网络的命令是:
sudo /etc/init.d/networking restart

没有评论: