All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ross Vandegrift <ross@willow.seitz.com>
To: linux-ppp@vger.kernel.org
Subject: pppd not setting netmask
Date: Fri, 30 Jan 2004 19:05:14 +0000	[thread overview]
Message-ID: <20040130190514.GB16326@willow.seitz.com> (raw)

Hello everyone,

	I'm using pppd with vtun to create dynamic VPNs to connect
remote networks.  I had everything almost working, but noticed a bad
problem with routing and traced it back to netmasks.

	I'm creating ppp tunnels with non-routeable networks to conserve
our IP space.  The first tunnel is using 10.100.100.0/30, with .1 being
the router at the office, and .2 being the remote router.

	My options file has "netmask 255.255.255.252" in it, but when
pppd comes up, ifconfig shows that ppp0 still has 255.255.255.255 for a
netmask.  How can I convince ppp0 to have the proper netmask?  The logs
don't have any error messages mentioning a problem setting the netmask
or anything.  Adding "debug" doesn't give me any extra information.

	This is bad because the connected route that gets installed is
for the opposite end of the tunnel (ie, 10.100.100.1/32) and not the
route for the 10.100.100.0/30.  This confuses OSPF quite a bit (see my
quagga-users thread with all the gorey OSPF details and routes:
http://lists.quagga.net/pipermail/quagga-users/2004-January/001382.html)
-- 
Ross Vandegrift
ross@willow.seitz.com

A Pope has a Water Cannon.                               It is a Water Cannon.
He fires Holy-Water from it.                        It is a Holy-Water Cannon.
He Blesses it.                                 It is a Holy Holy-Water Cannon.
He Blesses the Hell out of it.          It is a Wholly Holy Holy-Water Cannon.
He has it pierced.                It is a Holey Wholly Holy Holy-Water Cannon.
He makes it official.       It is a Canon Holey Wholly Holy Holy-Water Cannon.
Batman and Robin arrive.                                       He shoots them.

             reply	other threads:[~2004-01-30 19:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-30 19:05 Ross Vandegrift [this message]
2004-02-01  1:09 ` pppd not setting netmask Paul Mackerras
2004-02-02 20:14 ` Ross Vandegrift
2004-02-02 21:55 ` Bill Unruh
2004-02-02 22:29 ` Ross Vandegrift
2004-02-03  4:32 ` Paul Mackerras
2004-02-03  4:43 ` Paul Mackerras

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=20040130190514.GB16326@willow.seitz.com \
    --to=ross@willow.seitz.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.