企业环境下如何把ubuntu的dhcp改为静态IP
2019-06-03 08:47
218 查看
静态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
然后重启即可
(adsbygoogle = window.adsbygoogle || []).push({});相关文章推荐
- Ubuntu 如何设置静态IP
- vmware环境 Ubuntu14.04 静态ip
- [Ubuntu网络配置]Ubuntu GNOME版网络配置中无法将默认DHCP方式修改为静态IP的解决办法
- Ubuntu 将网络环境修改为静态IP
- 交叉环境下linux内核中ipp2p模块由静态加载改为动态加载的问题
- Ubuntu虚拟机如何配置Nat模式的静态ip
- ubuntu16.04 修改DHCP为静态IP
- Linux开发环境搭建与使用——ubuntu如何设置IP
- ubuntu网络环境更换导致ip更换,各类配置文件报错处理:更改本机ip/如何更改ubuntu的ip
- ubuntu 14.04 如何设置静态ip
- ubuntu下如何把用户的语言环境变量改为中文
- Ubuntu如何设置静态IP
- vmware vcenter appliance dhcp 改为 静态IP导致web service认证失败
- 详解ubuntu14.04如何设置静态IP的方法
- virtualbox里的ubuntu如何设置静态ip?
- [Ubuntu] 如何设置静态 IP 和 DNS
- win7 vmware10 rhel6.4 环境dhcp可以上网,静态ip不能上网问题
- python和c++如何读入txt文件 从代码到运行环境windows/ubuntu最全说明
- ubuntu 设置静态ip
- 如何配置ubuntu 64安装环境(转自source.android.com)