Lesson Big Data - connection to another computer in a virtual machine on a computer xshell

A contents: connected virtual machines on another computer remotely with xshell from a computer.

1, view the machine's IP address

  Search field, enter cmd, enter ipconfig to see the IP address of the machine in cmd inside.

2, change the virtual machine connection bridge mode

   Note: If multiple virtual machines on a computer can be used NAT mode, and then vm8 arranged on the same line vm virtual IP address in the next step.

      If multiple virtual machines on multiple computers to use bridge mode, the virtual machine IP address configuration that computer and equipped to the same line of Xhell

      

 

IP address on the 3, modify the virtual machine

     In the virtual machine input terminal: su, then enter the password and enter vim / etc / sysconfig / network-scripts / ifcfg-eth **

     Modify this file several places.

    1、ONBOOT = yes

    2、BOOTPROTO = static

    3, IPADDR = 192.168. ***. *** (here and that computer is equipped with Xshell same line)

    4, GETEWAY = 192.168. ***. *** (here and that computer is equipped with Xshell same line)

    5, NETMASK = 255.255.255.0 (herein this should be substantially all)

    6, DNS1 = 192.168. ***. *** (here and that computer is equipped with Xshell same line) that can be configured within another file.

4, and then: save and exit. Re network services: service network restart

5, with the command ifconfig to see if the amendment is successful, success can be modified after a connection has Xshell this virtual machine on another computer.

   If the other computer can access, then this virtual machine access to the Internet.

Guess you like

Origin www.cnblogs.com/tyh666/p/11746404.html