redhat configure static ip address

Here are two recommended ways to configure static IP.
Method 1: If there is a desktop, this is a method reserved for handicapped people. I will not go into details here.

Method 2: The following is to change the IP by modifying the configuration file. This method is not cool and is recommended.

1. Enter the network card configuration file

# vim /etc/sysconfig/network-scripts/ifcfg-## ("##" represents the network port name)

 Edit configuration file

If there is no graphical interface, the same operation is performed on the command line interface.

 

 Just save the modification and then restart the service: systemctl restart network. The network card will automatically start next time you restart systemctl enable network.

Guess you like

Origin blog.csdn.net/m0_46517962/article/details/129763678
Recommended