Linux PPP protocol development
 help / color / mirror / Atom feed
From: Bill Unruh <unruh@physics.ubc.ca>
To: linux-ppp@vger.kernel.org
Subject: Re: pppd creates route without "gateway" flag
Date: Wed, 17 Sep 2008 21:15:12 +0000	[thread overview]
Message-ID: <Pine.LNX.4.64.0809171412190.27485@info.physics.ubc.ca> (raw)
In-Reply-To: <b09e96770809171223j34dd04d7k52f29677c9c7a540@mail.gmail.com>

On Wed, 17 Sep 2008, Joakim Wennergren wrote:

> I just looked at my routing table, and the route pppd created does not
> have the "G" flag like I'm used to, is there a reason for this?

PPP is Peer to Peer Protocol. Ie, it is from one peer to another. It has
nothing whatsoever to do with gateways, etc. 
Now you CAN use the peer as your gateway if you wish, but there is no need
to. 
In your output the default route is delivered to the ppp interface and
since there is only one thing, the remote peer, connected to that
interface, all traffic is sent out to that remote peer. 
A gateway says "if you get traffic for this range of addresses send it to
this IP". In your case it says "In the default case just dump it onto the
ppp interface"

>
> This is output from route:
>
> # route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 10.64.64.64     0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
> 192.168.2.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 br0
> 0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ppp0
>
> It seems to work, I'm just wondering why? And can it affect something
> in the future?
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

-- 
William G. Unruh   |  Canadian Institute for|     Tel: +1(604)822-3273
Physics&Astronomy  |     Advanced Research  |     Fax: +1(604)822-5324
UBC, Vancouver,BC  |   Program in Cosmology |     unruh@physics.ubc.ca
Canada V6T 1Z1     |      and Gravity       |  www.theory.physics.ubc.ca/

  reply	other threads:[~2008-09-17 21:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-17 19:23 pppd creates route without "gateway" flag Joakim Wennergren
2008-09-17 21:15 ` Bill Unruh [this message]
2008-09-17 21:31 ` James Carlson
2008-10-09 11:50 ` Paul Mackerras
2008-10-14 10:26 ` James Carlson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.0809171412190.27485@info.physics.ubc.ca \
    --to=unruh@physics.ubc.ca \
    --cc=linux-ppp@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox