How do I setup routing table after using static networking?
it might be a silly question, and I think the correct answer is to forwarding all data to gateway, right?
The problem is…how do I find the gateway IP for static networking?
I followed the static networking configuration tutorial, but what it's using is the gateway for public IPs. In my setup, I disabled the public IP and use static IP only so the internal DB server won't have to worry about the public internet, but it still needs to talk to public internet when running something like "yum update" or installing some tools. Since I disabled the public IP, it's impossible to use the public gateway for routing purpose.
Any hint? Thanks.
btw, the output from netstat is:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.128.0 0.0.0.0 255.255.128.0 U 0 0 0 eth0
3 Replies
1. bring up the public IP whenever you need it for patching, etc (script bringing it up and down)
2. just leave the public IP up, firewall everything inbound and have the DB server only bind to the private IP
@glg:
2. just leave the public IP up, firewall everything inbound and have the DB server only bind to the private IP
This is probably the best and easiest to manage setup.