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