企业环境下如何把ubuntu的dhcp改为静态IP

静态ip不能连接外网

因为老的虚拟机有ubuntu桌面 以及一些磁盘的问题, 想 迁移 自己的虚拟机,连带着把ip也迁移,(公司有些界面是 通过我的虚拟机ip访问的。)

编辑

root@ubuntu:/home/ubuntu# cat /etc/network/interfaces  # This file describes the network interfaces available on your system  # and how to activate them. For more information, see interfaces(5).    # The loopback network interface  auto lo  iface lo inet loopback    # The primary network interface  auto eth0  iface eth0 inet static  address 168.192.10.72  netmask 255.255.255.0  gateway 168.192.0.1  

然后重启即可

原文出处:chinaunix -> http://blog.chinaunix.net/uid-69904575-id-5821963.html

本站所发布的一切资源仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容。如果您喜欢该程序,请支持正版软件,购买注册,得到更好的正版服务。如果侵犯你的利益,请发送邮箱到 [email protected],我们会很快的为您处理。
超哥软件库 » 企业环境下如何把ubuntu的dhcp改为静态IP