[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: networking help (routing table and iptables)



On Fri, Nov 06, 2009 at 04:35:58PM -0500, H.S. wrote:
> Hello,
> 
> I have an old machine running Debian Testing and acting as a router
> between my home lan and my ADSL modem (modem works in bridge mode).
> 
> The router has two nics, eth1 (connects to the modem) and eth0 (connects
> to a switch on my home lan).
> 
> The wan device created by pppd is ppp0.
> 
> I have this routing table:
> > /sbin/route -n
> Kernel IP routing table
> Destination     Gateway     Genmask         Flags Metric Ref    Use Iface
> <MyWANIP>       0.0.0.0     255.255.255.255 UH    0      0        0 ppp0
> 192.168.5.0     0.0.0.0     255.255.255.0   U     0      0        0 ath0
> 192.168.1.0     0.0.0.0     255.255.255.0   U     0      0        0 eth1
> 192.168.0.0     0.0.0.0     255.255.255.0   U     0      0        0 eth0
> 0.0.0.0         0.0.0.0     0.0.0.0         U     0      0        0 ppp0
> 
> 
> Does this look good to the networking gurus here? I am not sure what to
> make of the last line.

last line is defining the default gateway - where to send packets when
it doesn't have a local route.

also try using 

ip route 

you also have wireless on ath0
> 
> If something is the matter with this table, I will start looking for the
> problem.

what problems do you have ?

> 
> Thanks.

-- 
"I refuse to be sucked into your hypnotheoretical arguments."

	- George W. Bush
10/15/2004
Indianapolis, IN

Attachment: signature.asc
Description: Digital signature


Reply to: