Linux configuration network card information

4.1.3 Configure network card information
Step 1: Switch to the /etc/sysconfig/network-scripts directory (this directory stores the configuration file of the network card)
Step 2: Use the vim editor to modify the network card file ifcfg-eno16777736, write item by item Enter the configuration parameters, save and exit.
Device type: TYPE=Ethernet
Address allocation mode: BOOTPROTO=static
Network card name: NAME=eno16777736
Whether to start: ONBOOT=yes
IP address: IPADDR=192.168.10.10
Subnet mask: NETMASK=255.255.255.0
Gateway address: GATEWAY=192.168. 10.1
DNS address: DNS1=192.168.10.1
Step 3: Restart the network card device and test whether the network is connected.
#systemctl restart network
#ping 192.168.10.10

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326231841&siteId=291194637