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
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
相关文章推荐
- 永久修改ubuntu系统MAC和IP地址的方法命令
- 解决Ubuntu系统下无线网卡的IP地址无法修改的问题
- ubuntu系统修改IP地址连接外网方法
- 修改系统启动项 grub2配置的方法 ubuntu
- ubuntu 12.10与 windows 双系统 修改启动项顺序
- Ubuntu系统中最大柄数(最大文件打开数)修改办法
- Ubuntu配置和修改IP地址
- ubuntu 修改IP地址
- Ubuntu和Windows默认系统启动顺序修改
- Ubuntu 10.04 修改启动菜单默认系统的的方法
- ubuntu系统修改系统最大打开文件数的步骤
- Ubuntu、Win7双系统修改Grub引导顺序
- Ubuntu系统修改系统时间与时区
- 修改 Ubuntu 12.04 Grub系统启动顺序
- 【转】修改Ubuntu系统的登陆信息的简单方法
- Windows、Ubuntu双系统重装windows系统后grub引导的修复及默认启动项的修改
- Ubuntu与Windows双系统修改默认启动项
- 修改ubuntu系统时间
- Ubuntu 12.04 - 修改环境变量导致无法登录系统
- Windwos 系统下修改PC的hosts文件,绑定特定的域名和IP地址