Four ways to configure IP address for Linux (centOS)

1 ifconfig command temporary configuration

    This method is temporary and not used much

2 Setup tool permanent configuration

Redhat proprietary tool. Command setup, then select the network configuration

After setting, add a sentence service network restart

3 Modify the permanent configuration of the network configuration file (I use centOS, the location of other version files is not the same)

Modify in this file, the first file changes the IP address, etc., the second file changes the DNS

After setting, add a sentence service network restart

4 Graphical interface configuration (similar to windows)

Published 59 original articles · Likes46 · Visits 30,000+

Guess you like

Origin blog.csdn.net/sinat_41852207/article/details/88808933