Lin Bingwen Evankaka Original works. Reprint please specify the source Http://blog.csdn.net/evankaka
Operating system: Unbuntu14.04
Virtual machine: VMware10
First, network settings
1. Set up VMware Bridge Protocol
Local link, Properties->vmware Bridge Protocol Hook
2, then the host set the static IP (assuming the set of no tube)
3. VMware settings
Edit-"Virtual network editor"
4. Ununtu setting
Confirm off, next set Ubuntu IP and DNS, Terminal: (Alt+ctrl+t Open)
sudo vi/etc/network/interfaces
Then enter the following content:
S (5) file used by Ifup (8) and Ifdown (8) Auto lo iface lo inet loopbackauto eth0iface eth0 inet staticaddress 10.75.4.25netm Ask 255.255.255.0gateway 10.75.4.254 dns-nameservers 10.75.210.1 107.5.210.2
Description
Iface eth0 inet Static indicates the use of static IP,
address10.75.4.25, set the IP address. To have IP on a computer on Windows in a network segment
Netmask 255.255.255.0 Set the mask to the IP of the computer on the windows in a network segment
Gateway 10.75.4.254 Sets the IP of the gateway to and the computer on Windows in a network segment
Dns-nameservers 10.75.210.1 107.5.210.2 Set the gateway. Set DNS multiple spaces separated
Another way to set up DNS:
sudo vi/etc/resolvconf/resolv.conf.d/base
Join:
NameServer 223.5.5.5
NameServer 223.6.6.6
Multiple rows down
Finally, it's good to restart the network.
sudo ifconfig etho down
and open it again.
sudo ifconfig etho up
Then turn it on to see if the IP address is set incorrectly.
5, verify whether the connection
Host Ping Virtual Host: Data returned successfully
Virtual Host Ping Host:
In fact, the best way is to open the browser directly on the OK: (assuming still not, please start again again)
Second, SSH login
SSH sub-client openssh-client and Openssh-server
Suppose you just want to login to another machine ssh just need to install Openssh-client (Ubuntu has a default installation, assuming no sudo
Apt-get install openssh-client). Suppose you need to install Openssh-server to make the native SSH service open
sudo apt-get install Openssh-server
Then confirm that the Sshserver is started:
Ps-e |grep SSH
Suppose you see an sshd that shows that Ssh-server has started.
1, the server installed and through the SECURECRT to connect to the Linux
Startup information
2. Client Connection
Then enter the IP (the corresponding Linux IP. Able to use Ipconfig view)
And you'll finally be able to connect.
3.SFTP Login
Use FileZilla. The installation process is very easy. No more talking here. The difference between FileZilla and SecureCRT is one with GUI interface, one without.
Ubuntu14.04 Bridging network settings and SSH login