multiple public ips on oracle linux
Summary:
How to assign more than two public IPs to a VM in OCI?
Content (please ensure you mask any confidential information):
dear community
For load distribution reasons I require that my application go out to the Internet through more than one public IP address.
Example:
hostname Private IP address. Public IP address.
prod1 10.0.0.50/24 150.136.x.x
prod2 10.1.0.50/24 150.136.x.x
prod3 10.2.0.50/24 150.136.x.y
prod4 10.3.0.50/24 150.136.x.z
So the routing tables look like this:
[root@prod ~]# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 ens3
0.0.0.0 10.1.0.1 0.0.0.0 UG 0 0 0 ens4
0.0.0.0 10.2.0.1 0.0.0.0 UG 0 0 0 ens5
0.0.0.0 10.3.0.1 0.0.0.0 UG 0 0 0 ens6
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 ens3
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 ens3