Get LAN ip configuration and modification

vi /etc/sysconfig/network-scripts/ifcfg-em1 

# em1 is the network card name, which may be eth0, eth1,...or em1,em2... Generally, there are several network cards on a physical machine, find the network card connected to the LAN switch (please consult the network management or computer room personnel, usually eth0 or em2)

#Then add the following

IPADDR=172.16.5.19

NETMASK=255.255.255.0

Then execute the restart network card command

service network restart

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326666174&siteId=291194637