Edit the file after entering the server:

Enter and enter the editing interface:

Modify GATEWAY:

Enter and enter the editing interface:

Modify IPADDR (IP address), NETMASK (mask)
After modifying it, click the ESC button.
Then type: wq!
Finally restart the network, enter /etc/init.d/network restart