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

Published: 2020-06-09


1. Check the external network adapter device and gateway

Run command: ip route show

image.png

2. Change the egress IP to 211.149.140.130

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

3. View the result

Run command: ip route show

image.png