Xshell6 trouble making a connection VMware virtual machine failure

Premise: In VMware successfully installed Centos6.5

Process: Connect virtual machine xshell6

Result: The connection failed

The reason: After installing centos need to configure their own static IP, gateway, subnet mask, and so on.

Steps of: inputting a command in the terminal VMware

1, su root, then enter the root password: root user login

2, chmod 777 / etc / sysconfig / network-scripts / ifcfg-ens33: modifying the read-only file read and write permissions to perform

3, vi / etc / sysconfig / network-scripts / ifcfg-ens33: open the folder for editing

4, the onboot = no change onboot = yes; bootproto = dsnp into bootproto = static

     Add:

IPADDR = 192.168.111.XXX (before the static IP provided herein require three identical with the local host, the local IP landlord is 192.168.111.68)

GATEWAY = 192.168.111.254 (the gateway of the machine)

NETMASK = 255.255.255.254 (native subnet)

DNS = 202.106.0.20 (Machine according DNS)

Save and exit

This time to go on xshell enter a user name password to connect the virtual machine IP (192.168.111.xxx), found that can successfully connect!

note:

1, you need to ping the IP when setting up a virtual machine, confirm that the IP is used

2, connection VMware virtual machine's network adapters must choose "bridge mode", otherwise I might Rom network

 

 

Released eight original articles · won praise 0 · Views 1518

Guess you like

Origin blog.csdn.net/qq_45012223/article/details/102687739