Why does ubuntu set the both private and public Gateway to

Posted March 15, 2014 1.9k views
Hi, Today I was trying to mess around the private network in ny2 datacenter, here's default route set up for Ubuntu 12: Destination Gateway Genmask Flags Metric Ref Use Iface UG 100 0 0 eth0 U 0 0 0 eth1 U 0 0 0 eth0 Does it mean both 10.128.*.*(private) and 107.179.96.*(public) go though the save gateway( how about map public and private traffic into different gateway as follow setup: Destination Gateway Genmask Flags Metric Ref Use Iface UG 0 0 0 eth0 UGH 0 0 0 enp0s4v1 U 0 0 0 eth0

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer
Basically, the routes mean that since the private interface lives in that subnet, anything with a destination of should be reachable just by throwing it on the interface, without going through a gateway as it will break/cause heavy packet loss on the droplet.
Public traffic goes through the gateway "".