Set a fixed Ip address and a linuxip address in linux

Source: Internet
Author: User

Set a fixed Ip address and a linuxip address in linux

I use CentOs6.5

Recently I have been studying the linux operating system. I have to use ifconfig eth0 to set a temporary IP address before using shell connection. Decide to learn how to set a fixed IP Address

Steps:

1. log on to the computer and run the setup command to enter the interface.

2. Select Network Configuration

3. Select Device Configuration

4. Enter eth0

5. Configure related information

DHCP [*] indicates Automatically Obtaining ip addresses. Note: The DHCPserver must provide the automatically assigned service. Otherwise, it will not work.

6. [root @ localhost ~] # Service network restart the network service 

If there is a problem or you need to set an IP address after restart, please:

Modify onboot = yes in/etc/sysconfig/network-scripts/ifcfg-ethX. The default value of redhat6 series is no, that is, the NIC is not started when the operating system starts, after you change to yes, the operating system is required to start and activate the NIC at startup.

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.