RHEL7 IP address configuration, DNS configuration, NetworkManager view

Source: Internet
Author: User
RHEL7 IP address configuration, DNS configuration
Configure IP
Vim/etc/sysconfig/network-scripts/ifcfg-ens33

Configure DNS
Vim/etc/resolv.conf

Write nameserver DNS Address

You can also use Nmtui to modify the IP configuration


Restart the NIC
Systemctl Restart Network

Ifconfig View IP

IP addr Show (can be abbreviated to IP a)

Temporarily modify the IP address, add multiple temporary IP, on the network card name plus: numbers, such as ens33:0
Ifconfig ens33 172.25.20.20 netmask 255.255.255.0

Delete temporary IP
Ifconfig ens33:0 del 172.25.20.20

NetworkManager Service is a daemon that manages and monitors network settings, RHEL7 more attention to the use of NetworkManager services for network configuration and management
See if the NetworkManager service is started
Systemctl Status NetworkManager

RHEL7 IP address configuration, DNS configuration, NetworkManager view

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.