Switching the egress IP address of a multi-IP application cloud server [Linux System Tutorial]

Published: 2020-06-09


1. View the external network interface device and gateway

Execute command: ip route show

image.png

2. Change the egress IP to 211.149.140.130

Execute command: ip route change default via 211.149.140.1 dev eth0 src 211.149.140.130

3. View the result

Execute command: ip route show

image.png