Modify the IP address of Ubuntu and windows so that they can ping each other

Source: Internet
Author: User

One, permanently modify the Ubuntu IP address method:

    1. Ubuntu Network configuration information is saved under/etc/network/interfaces, should this to permanently modify the IP address of Ubuntu must first modify this profile, open Ubuntu Terminal login root permissions, and then enter the command: geany/etc/ Network/interfaces Open this configuration file, copy the following contents and replace the contents of the original content:

# interfaces (5) file used by Ifup (8) and Ifdown (8) Auto eth0 #iface eth0 inet dhcp iface eth0 inet static address 192.168 .1.10netmask 255.255.255.0 Gateway 192.168.1.1auto Lo iface lo inet loopback

Save your changes and exit!

Note: We have modified the Ubuntu IP address to 192.168.1.10, so we must make sure that the IP address of the Windows is in the same network segment as the Ubuntu IP.


2. Edit/etc/resolv.conf, set up DNS, log in as root in Ubuntu terminal, and then enter the command: geany/etc/resolv.conf open the configuration file and copy the contents below to replace the original content:

NameServer 202.96.134.86nameserver 202.106.0.166

3. Close and restart Ubuntu, then enter the command: sudo ifconfig eth0 down and sudo ifconfig eth0 up make the above configuration take effect.


Two, the method of modifying the IP address of Windows (WIN8):

    1. Open Network and Sharing Center, then click Change adapter settings, then locate Ethernet, then right-click to select Properties as shown in:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4D/9E/wKiom1RU15HwumcqAACjw-sXDUQ783.jpg "style=" float: none; "title=" 1.png "alt=" Wkiom1ru15hwumcqaacjw-sxduq783.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4D/9E/wKioL1RU1-6xchqUAACeHAeVayQ892.jpg "style=" float: none; "title=" 2.png "alt=" Wkiol1ru1-6xchquaacehaevayq892.jpg "/>


2. Locate the Internet Protocol version 4, and then click Properties to configure the IP address of Windows as shown in:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4D/9E/wKiom1RU2Jyi1t5GAADyP5zMmoM137.jpg "style=" float: none; "title=" 3.png "alt=" Wkiom1ru2jyi1t5gaadyp5zmmom137.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4D/9E/wKiom1RU2JzC9Sd-AAB8Q3CoFLE191.jpg "style=" float: none; "title=" 4.png "alt=" Wkiom1ru2jzc9sd-aab8q3cofle191.jpg "/>

Note: Here we set the IP of Windows to 192.168.1.11, of course you can also set the other, as long as the IP can be guaranteed and Ubnutu in the same network segment on the line.


Three, Ping a try:

The IP addresses of Ubuntu and windows are all set up, then let's ping them and the results are successful! As shown in the following:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4D/9E/wKioL1RU2uSSSriXAAOgTxddg78529.jpg "title=" 5.png " alt= "Wkiol1ru2usssrixaaogtxddg78529.jpg"/>


Four, using SECURECRT and CuteFTP remote landing ubuntu

1. Use SECURECRT to remotely access Ubuntu:

Open SECURECRT--Select quick Connect--Choose SSH2--Host name enter Ubuntu IP address--username Enter your own Ubuntu computer name, then click Connect, You will then be asked to enter your password (this is your Ubuntu password) and then connect to our Ubuntu remotely, as shown in:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4D/9E/wKioL1RU3VbAwsghAAGMIwhw5As185.jpg "title=" 1.png " alt= "Wkiol1ru3vbawsghaagmiwhw5as185.jpg"/>

Note: To try SECURECRT remote access to Ubuntu can be successful, we must open the SSH function on Ubuntu, enter the command:sudo apt-get install openssh-server openssh-client!


2. Upload and download files remotely to Ubuntu using CuteFTP

Open CuteFTP Software (not installed to ask Niang, I installed CUTEFTP9) and then click on the quick Connect input hostname and username and password, click on the settings, select the type, the protocol type is selected to use SSH2 for SFTP, here the choice of protocol type is very important, You can't connect to Ubuntu without this choice.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4D/9E/wKioL1RU362APBIvAAGQlZI7Psw266.jpg "title=" 2.png " alt= "Wkiol1ru362apbivaagqlzi7psw266.jpg"/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4D/9E/wKioL1RU4DTCc8VRAASQIA_knxE240.jpg "title=" 3.png " alt= "wkiol1ru4dtcc8vraasqia_knxe240.jpg"/> Finish!


This article is from the "Stop Thinking" blog, make sure to keep this source http://9110091.blog.51cto.com/9100091/1570785

Modify the IP address of Ubuntu and windows so that they can ping each other

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.