IP address and DNS configuration in Linux

Source: Internet
Author: User
In Linux, the IP address and DNS configuration methods-Linux Enterprise Application-Linux server application information are described as follows. This article uses RedHatLinux9.0 for testing.

Method 1: Use the ifconfig command

For example, ifconfig eth0 192.168.0.200 netmask 255.255.255.0

This method is only valid at the time. After the system is restarted, it becomes invalid. You do not need to reactivate the NIC.

Method 2:

1. Edit "/etc/sysconfig/network-scripts/ifcfg-eth0"

After the IP address is changed, save and exit.

2. Use ifdown eth0 and ifup eth0 to reactivate the eth0.
Related Article

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.