Write at the beginning of the tutorial:

You must take a snapshot of the disk and confirm the IP with the server before you decide whether to add it!

Adding an incorrect IP has a certain probability of causing server network interruption. Please confirm that the IP is available before operation!

IP addition is almost risk-free. Considering that most of the ECS are used, once the server command line is not connected and there is no snapshot, it can only be processed locally in the server room. For this reason, it is recommended to take a disk snapshot before operation!

[ Home ]

IP setup tool compatible system Version Description

      CentOS series:   cenots7
      Ubuntu series:   ubuntu18/ubuntu20
      Debian series:   debian10

Usage scenario

When multiple IP servers need to bind multiple IP addresses

Its IP is automatically obtained by DHCP by default, but the IP changes every day. I hope to configure it with a static IP

Add a new IP address

When you need to add and set authorization IP to SSH remotely, you can initialize with one click if you don't know which authorization IP is set

IP setup
Note: the current version of the IP setup tool supports the use of multiple network card servers. If the server is an ECS and requires intranet mapping, please bind the intranet IP assigned by the cloud platform.

Add IP example:

Fill in the corresponding information as shown in the figure and understand the safety risks. After checking to confirm, click confirm to submit.
Take adding 192.168.1.158 IP as an example:
After confirmation, if the IP format is legal, the new configuration IP list will be successfully added and automatically obtained.

As shown in the figure below, the latest binding IP information is successfully added and obtained:

test:

Ping the newly added IP on the server to test that the communication can be normal. As shown in the figure:

Note: for multi network card server, please select and bind to the corresponding network card as required. Select which network card to bind to, and the corresponding IP needs to be bound to the corresponding network card in the IP configuration tool plug-in. If you are an ECS and have an intranet mapping, please bind the IP of the intranet mapping.


Edit and modify the IP and subnet mask, and modify 192.168.1.158 to 192.168.1.198 as an example:

As shown in the figure, the editing is successful. It will automatically obtain the new binding IP list information.

As shown in the figure, the deletion is successful, and the list of new binding IP and corresponding subnet mask information will be automatically obtained.

SSH configuration:

The native IP is 192.168.1.123. Add a 192.168.2.65 non native IP example:

After adding, only the added authorized IP machine can connect to the server command line, and this IP is a non local IP, so it cannot connect normally. The description is added normally.

Edit 192.168.2.65 IP to native ip192 168.1.123。

After adding, the test can be connected.


Delete authorized IP example:

initialization
Before initialization:

Initialization will clear all authorized IP addresses. Restore an unrestricted state accessible to all IPS.

Connect with us: 📨 Telegram 💬 Discord Email: support@aapanel.com