标签:
修改/etc/network/interfacs
sudo vim /etc/network/interfaces
动态IP设置如下:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
静态IP设置如下:
auto eth0
iface eth0 inet static
address 192.168.195.2
netmask 255.255.255.0
gateway 192.168.195.1
这是要注意 gateway网关的设置,要设置为 "VMware Network Adapter VMnet1" 的IP地址。
标签:
原文地址:http://www.cnblogs.com/jiangzhaowei/p/5373684.html