[wlug_org] Route Tables + Question + I Hope I explain this...

Chris Hodgetts wlug_org@lists.naos.co.nz
Fri, 04 Jun 2004 11:24:57 +1200


Sorry will post this to the LUG list!!!

My Bad!

On Fri, 2004-06-04 at 11:07, Chris Hodgetts wrote:
> Hello, 
> 
> I hope I explain this correctly -- 
> 
> OK.....
> 
> I have a machine, it has a DNS entry for an external IP address that is
> different from archnetnz.com, for the purpose of this, we will call it,
> lists.archnetnz.com
> 
> When you ping lists.archnetnz.com from within the local network it
> resolves the external IP address - via the default route, which is what
> we want....  archnetnz.com is not the internal network suffix nor is
> there an internal DNS server hosting up .archnetnz.com names....
> 
> The Ping comes back in via that same default router and it sends it off
> to the machine in question through a static route.
> 
> This is the routing table of the machine in question - -and it works.
> 
> It will connect internally on the network to the external IP address,
> and obviously from external to the external IP, for what the static
> route exists for forwarding all packets to lists.archnetnz.com's ip
> address to it's internal IP address.
> 
> ONLY IF THE ROUTE TABLE ON THE MACHINE LOOKS LIKE THIS!
> 
> penny:/etc/network# route
> Kernel IP routing table
> Destination  Gateway       Genmask   lags Metric Ref Use Iface
> default    192.168.0.33    0.0.0.0   UG    0      0   0  eth0
> 
> But if it looks like this:
> 
> penny:/etc/network# route
> Kernel IP routing table
> Destination  Gateway       Genmask    lags Metric Ref Use Iface
> 192.168.0.0    *         255.255.255.0 U   0      0   0  eth0
> default    192.168.0.33    0.0.0.0   UG    0      0   0  eth0
> 
> Which is the standard route when the interface comes up, it does not
> route the packets correctly from internal to the external IP address.
> 
> Now I hope I have explained it correctly, if you need further
> clarification on anything please let me know, and I will be happy to
> provide any further info regarding this :)
> 
> Thanks...
> 
> 
> -- 
--