Linux Configuration temporary IP address

Source: Internet
Author: User

# ifconfig

View the NIC information as shown in:

# ifconfig Eth0 192.168.0.107

Eth0 represents the first network card, all the set up in Linux is a file, so eth0 is the first NIC file name,

IP needs to be configured according to the IP of the computer, need to ensure that the same network segment in order to communicate, such as all in 192.168.0 this network segment

After the configuration and then look at the network card information will be more than one eth0 NIC.

After the IP is configured, ping the command prompt to check if it can ping

Note 1: You need to set up the network adapter for the virtual machine before configuring IP

Note 2: IP configured in this way will restore the settings after the system restarts and permanently modify the configuration in Linux to modify the configuration file directly.

Linux Configuration temporary IP address

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.