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

Re: networking help (routing table and iptables)



Alex Samad wrote:
> On Fri, Nov 06, 2009 at 06:08:00PM -0500, H.S. wrote:
>> Alex Samad wrote:
>>> On Fri, Nov 06, 2009 at 04:35:58PM -0500, H.S. wrote:
>>>> 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 
>> Yes, more explanation here.
>>> ip route
>> 206.248.154.122 dev ppp0  proto kernel  scope link  src 69.196.173.66
>> 192.168.5.0/24 dev ath0  proto kernel  scope link  src 192.168.5.1
>> 192.168.1.0/24 dev eth1  proto kernel  scope link  src 192.168.1.10
>> 192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.1
>> default dev ppp0  scope link
>>
>> So that last line of the route command output earlier is present in all
>> home router then?
> 
> depends, if you have configured a default route then yes, if not then
> no.
> 
> you could trick it with something like (try this)
> 
> ip r d default
> ip r a 0.0.0.0/1 dev ppp0
> ip r a 128.0.0.0/1 dev ppp0
> 
> ip r
> 
> 
> you shouldn't see a default route but your internet should still be
> working.
> 


Internet is working fine. Lan and Wlan to WAN, between lan and wlan,
between vpn and wlan and wan and so on. I just wanted to know if my
routing stuff was right after seeing many routing tables, while reading
about networking, which did not have a line like my last line.

Thanks.


-- 

Please reply to this list only. I read this list on its corresponding
newsgroup on gmane.org. Replies sent to my email address are just
filtered to a folder in my mailbox and get periodically deleted without
ever having been read.


Reply to: