您的位置:首页 > 其它

ubuntu系统修改IP地址

2010-11-09 18:27 253 查看
1、ubuntu系统修改IP地址:sudo gedit /etc/network/interfaces
auto eth0
iface eth0 inet static
address 172.16.16.85
netmask 255.255.255.0
gateway 172.16.16.254
2、ubuntu系统修改DNS: sudo vi /etc/resolv.conf
nameserver 172.16.100.101
nameserver 172.16.100.102
domain cloudvally.com
domain cloudvally.com
3、使网络生效:sudo /etc/init.d/networking restart
Ubuntu8.04虚拟机更换host主机后开机无法加载网卡,提示:No such device
删除缓存文件,重启后解决。
sudo rm /etc/udev/rules.d/70-persistent-net.rules
reboot

ifconfig eth0 172.16.16.85 netmask 255.255.255.0
route add default gw 172.16.16.254
route -n
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: