My local use of the Internet mode dial-up Internet, IP segment is a public network through the routing of LAN, network segment 182.18.1.*
The local connection contains the following:
One of the wireless network card, WMware Bridge is a custom LAN IP segment: 192.168.253.*;
Where the local connection, broadband connection 3 (dial-up Internet use, is generally automatic access to IP, if set fixed IP is likely IP conflict on the network, so this stuff can not be modified).
I want to connect my local and my virtual machines to the same network segment:
So I modified the IPV4 setting for local Area Connection:
Modify the virtual machine's network connection as: "Bridging Mode"
Set my virtual machine master/node1/node2/node3 to static IP:
master:192.168.1.100
Node1:192.168.1.101
node2:192.168.1.102
node3:192.168.1.103
I have these too many virtual machines are Ubuntu Server 14.04, how to set the static IP?
1) Modify the configuration file/etc/network/interfaces
sudo vim/etc/network/interfaces
Add the following content:
Auto eth0 #设置自动启动eth0接口
iface eth0 inetstatic #配置静态IP
address 192.168.1.100 #IP地址
netmask255.255.255.0 #子网掩码
Gateway 192.168.1.1 #默认网关
2) Modify DNS
Sudovim/etc/resolve.conf
Add the following content:
nameserver 8.8.8.8
3) Restart the network for the configuration to take effect
sudo/etc/init.d/networking restart
I think 2) is not necessary, 3) may also not exist in this directory.
4) See if the settings are successful
Ifconfig
Local IP test:
Local ping virtual on master (192.168.1.100)
VMware Install Virtual machine Ubuntu14.04 Server Setup bridging mode