修改ubuntu虚拟机ip
sudo gedit /etc/network/interfaces
更改为以下内容:
auto lo
iface lo inet loopback
# Assgin static IP by Joe on 25-FEB-2014
iface eth0 inet static
address 192.168.220.203
netmask 255.255.255.0
gateway 192.168.220.2
#We must specify dns-nameserver here
#in order to get internet access from host
dns-nameservers 192.168.220.2
auto eth0
参考: http://www.cnblogs.com/objectorl/archive/2012/09/27/vmware-ubuntu-nat-static-ip-settings.html
相关推荐
localhost0 2020-11-12
jlccwss 2020-09-11
lwplvx 2020-09-07
YzhilongY 2020-08-31
KevinXC 2020-08-12
oLeiShen 2020-08-01
dahege 2020-08-01
windzoone 2020-07-29
travelinrain 2020-07-27
hxf0 2020-07-10
oLeiShen 2020-06-25
oLeiShen 2020-06-25
dahege 2020-06-25
dahege 2020-06-22
MissFuTT 2020-06-21
ationwork 2020-06-16
kenson 2020-06-12
chwzmx 2020-06-09