虚拟机 ubuntu 12环境下设置静态IP
来源:互联网 发布:怎样在淘宝联盟买东西 编辑:程序博客网 时间:2024/06/06 15:40
我设置静态IP的目的有两点
1.想通过crt连接到虚拟机上,
2.可以网络映射驱动到该虚拟机从而可以使用source insight等编辑软件在window下进行操作。
下面是如何操作:
1、配置静态IP地址:
# vim /etc/network/interfaces
原内容有如下4行:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
以上表示默认使用DHCP分配IP,修改为如下:
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.80.129
netmask 255.255.255.0
gateway 192.168.80.2
注意:在设置上述地址时,不能加入注释。
3、重启networking服务使其生效:
# /etc/init.d/networking restart
阅读全文
0 0
- 虚拟机 ubuntu 12环境下设置静态IP
- 虚拟机下ubuntu静态ip设置
- 虚拟机 ubuntu设置静态IP
- 在 Ubuntu 8.0.4下设置静态IP和虚拟机
- 桥接模式下,虚拟机Ubuntu设置静态IP上网
- ubuntu环境下静态ip地址设置--重启后仍然有效
- Ubuntu下设置静态IP
- Ubuntu下 设置静态IP
- Ubuntu下设置静态ip
- Ubuntu下设置静态IP
- 虚拟机中设置ubuntu为静态ip
- Ubuntu 虚拟机设置静态IP地址
- 虚拟机中ubuntu设置静态IP
- vmware中的ubuntu 虚拟机 静态IP设置
- 为虚拟机的ubuntu设置静态ip
- 虚拟机下ubuntu配置静态IP
- Linux-虚拟机下设置静态IP
- 虚拟机Nat模式下设置静态ip
- python系列三.2(ipython图形化交互)
- dd if=/dev/zero of=的含义是什么?Linux 下的dd命令使用详解
- 时间片轮询应用
- js跨浏览器的事件处理程序
- 实例化时内存的变化
- 虚拟机 ubuntu 12环境下设置静态IP
- 数据库锁机制
- [java]线程池
- JAVA经典面试题(来源于互联网)
- hasOwnProperty实现数组去重
- 阿里菜鸟网络二面
- Unity图片优化神器
- 广播实时监听网络状态
- Java 集合源码解析(2):ListIterator