VMware bridging mode ssh connection LAN Virtual Machine

Bridge mode is equivalent to adding a virtual local area network of computers, as long as the computer can ssh LAN to a virtual machine (and not just connected to the host only)

1. Click VMware edit, select the Virtual Network Editor

 

 

2. Create a new bridge mode network, select Change settings (admin administrator privileges), attention must be bridged to their true correct NIC (The figure is from the Internet to steal someone else's)

 

 

3. How do I know which is correct, by opening a shared network, for example, I use the wireless network

 

 

 

 

 4. Find the card information in the file / etc / sysconfig / network-scripts, such as ifcfg-ens33

vi  /etc/sysconfig/network-scripts/ifcfg-ens33

= The TYPE Ethernet network type is Ethernet # 
BOOTPROTO = static # manually assign ip 
the DEVICE = ens33 # NIC device name, device name must be used with the same file name I was ens33, if the configuration is not the same, so the next time a network restart will fail 
ONBOOT = yes # if the card with the network service boot 
IPADDR = 192.168 . 1.67 # ip address of the network card and its own host on the same network segment 
NETMASK = 255.255 . 255.0 # subnet mask 
gATEWAY = 192.168 . 1.1 # gateway and host their own as 
DNS1 = 8.8 . 8.8 #   8.8 . 8 IP address of the DNS server free of .8 is provided by Google

 

5. restart the service:

service network restart

ping www.baidu.com test networking

 

Guess you like

Origin www.cnblogs.com/zhzhlong/p/12615056.html