ubuntu下网络配置
1.静态ip的配置
gedit /etc/network/interface
添加如下
auto eth0
iface eth0 inet static
hwaddress ether xx:xx:xx:xx:xx:xx
address xx:xx:xx:xx
netmask xx:xx:xx:xx
geteway xx:xx:xx:xx
2. dns的配置
gedit/etc/resolv.conf
加入
nameserver xx:xx:xx:xx
gedit etc/dhcp3/dhclient.conf
将以下行添加到末尾
prepend domain-name-servers xx:xx:xx:xx;#你自己的DNS服务器
把所有的127.0.0.1全部改为xx:xx:xx:xx
3.重启网络
/etc/init.d/networking force-reload
阅读(692) | 评论(0) | 转发(0) |