Centos IP address configuration

Today I will share with you an IP address configuration method commonly used by my centos

1. Configure an IP address

1. Enter this file (the file path is a bit long, just remember after typing a few more articles)

2. After entering the file, modify it

3. After modifying the file, we save the file and launch it, then restart the service

We use the ip addr command to check whether the IP address is configured

2. Configure multiple IP addresses

1. To configure multiple ip addresses, you must first add a network card

2. Activate the network card

3. Then you can configure the IP address for the new network card

restart network card

View IP address

4. Connectivity test

This chapter shares with you the configuration of one or more IP addresses of centos. If you learn from my article and solve the problem, it will be a great encouragement to me. I am also a novice. If someone finds out Where I said something bad or wrong, welcome to comment and correct in the comment area.

Guess you like

Origin blog.csdn.net/qq_53504528/article/details/129683433