FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 11-06-2009, 09:00 PM
Alex Samad
 
Default 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
 
Old 11-06-2009, 09:11 PM
Tony Nelson
 
Default networking help (routing table and iptables)

On 09-11-06 16:35:58, H.S. wrote:
...
> I have this routing table:
> > /sbin/route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
...
> 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.

Try without "-n" and it will explain.

--
__________________________________________________ __________________
TonyN.:' <mailto:tonynelson@georgeanelson.com>
' <http://www.georgeanelson.com/>


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 11-06-2009, 10:08 PM
"H.S."
 
Default networking help (routing table and iptables)

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?


>
> you also have wireless on ath0

Yes, forgot to specify that.

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.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 11-07-2009, 02:44 AM
Alex Samad
 
Default networking help (routing table and iptables)

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.

>
>
> >
> > you also have wireless on ath0
>
> Yes, forgot to specify that.
>
> Thanks.
>

--
It is up to us to produce better-quality movies.
-- Lloyd Kaufman, producer of "Stuff Stephanie in the Incinerator"
 
Old 11-07-2009, 02:52 AM
"H.S."
 
Default 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.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 11:42 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org