linux-01red Hat Enterprise Linux 7 (RHEL7) Configuring a static IP address

Source: Internet
Author: User

For convenience in learning Linux READHAT7, a virtual machine is installed on a local installation. For Linux remote client operations that can connect virtual machines with Win7, virtual machines and win-local networks are required to interoperate;

The operation is as follows: 1. Configure IP Address locally:

      

2, verify the network manager status, Active:active (running) is running, the general RHEL7 are installed by default.

[Email protected] ~]# systemctl status Networkmanager.service

3. View network devices and status

[Email protected] ~]# NMCLI Dev

Ethernet (Ethernet) device, if the device status is not connected, enable it

4.

[[email protected] ~]# nmcli con up ID eno16777736

Prompt connection Success!

5. Check if there is a configuration file for the device under directory/etc/sysconfig/network-scripts, IFCFG-ENP0S3, if not, create a new

ls  /etc/sysconfig/network-scripts/

6. Edit this configuration file ifcfg-eno16777736

[Email protected]/]#  VI /etc/sysconfig/network-scripts/ifcfg-eno16777736

Focus on configuring these several:

Type=ethernet
Bootproto=static
Name=enp0s3
Onboot=yes
Ipaddr= Address
Netmask= Mask
gateway= Gateway
Dns1= your DNS

7. Restart the Network Service
[Email protected] ~]# systemctl Restart Network
8. Set OK, ping try it

linux-01red Hat Enterprise Linux 7 (RHEL7) Configuring a static 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.