There was a server with 1 LAN card hosting 2 IPs.
In the setup stage, I've assigned 1 IP set.
(e.g 192.168.1.10/24, Gateway = 192.168.1.1)
After finished, I set the lan card hosting another IP set. (using internet IP)
Now, I got the problem is when I use route check the routing table, there is 2 gateway, 1 with the orignal internal gateway, another is the real IP gateway..
The server now go to internet using the internal gateway.
I don't want this, so I use the command:
ip route show then use ip route delete the internal gateway.
It's ok, I use traceroute see that now server go to internet using the real IP gateway.
But this routing does not save after reboot.(Bad luck today got a power failure, so after server restart , I have to remove the route again.)
How can the route be saved? So that if server is restarted, I don't need to remove a route again.(Too bad power guy will come to check power issue and need to cut the power on Saturday again
...)