Linode Forum
https://forum.linode.com/

How do I setup routing table after using static networking?
https://forum.linode.com/viewtopic.php?f=19&t=11353
Page 1 of 1

Author:  zlike [ Thu Oct 09, 2014 12:02 am ]
Post subject:  How do I setup routing table after using static networking?

Hi,
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

Author:  hoopycat [ Thu Oct 09, 2014 7:05 am ]
Post subject:  Re: How do I setup routing table after using static networki

There is no default gateway for the RFC 1918 space. You need a publicly routable IP address if you're going to route to the public IP network.

Author:  glg [ Thu Oct 09, 2014 8:37 am ]
Post subject:  Re: How do I setup routing table after using static networki

I see 2 main options:
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

Author:  vonskippy [ Thu Oct 09, 2014 12:10 pm ]
Post subject:  Re: How do I setup routing table after using static networki

glg wrote:
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.

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/