Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Nov 1996 17:26:36 -0500
From:      dennis@etinc.com (dennis)
To:        roberto@keltia.freenix.fr (Ollivier Robert)
Cc:        hackers@freebsd.org
Subject:   Re: Setting PPP netmask! HOW!
Message-ID:  <199611112226.RAA03756@etinc.com>

next in thread | raw e-mail | index | archive | help
>According to dennis:
>> market. I believe that the netmask is meaningless on a PTP interface,
>> so even if you get it to display the way you want  you won't have
>> achieved much of anything.
>
>That's not true. 
>
>Consider my case. We -- a group of friends -- have a C-class address
>(/24). We have cut in in 16 subnets (/28) and distributed the subnets
>between us. We connect thru PPP to a machine in one of these subnets. My
>ethernet at home has another subnet. We have an interconnection subnet for
>the Internet router.
>
>It would be impossible to send packets to my ethernet and to the Internet
>thru the PPP at the same time if subnets were not handled correctly by
>"pppd" (kernel PPP).
>
>ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>	inet 193.56.58.65 netmask 0xfffffff0 broadcast 193.56.58.79
>	ether 00:00:c0:7c:66:48 
>
>pppd is run with this (line cut for display):
>
>$PROG $DEFOPTS connect 'chat -v ABORT "NO CARRIER" ABORT BUSY "" AT   \
>OK ATDTXXXXXXXX CONNECT "" ogin: XXXXXXX assword: \qXXXXXXXX' netmask \
>255.255.255.240 /dev/$DEVICE 115200 
>
>That way, I have a subnet route for my ethernet in /28...
>
>Routing tables
>
>Internet:
>Destination        Gateway            Flags     Refs     Use     Netif Expire
>127.0.0.1          127.0.0.1          UH          2      688       lo0
>193.56.58.64/28    link#1             UC          0        0 
>193.56.58.65       0:0:c0:7c:66:48    UHLW        0      958       lo0
>
>...and the default route will be added to another subnet when PPP is up.
>
>PPP correct handling of subnetting is *vital* for me.

Its not quite working the way you think (the PPP routes are "hosts" and
the subnet is irrelevant), but it you're happy........what the heck!

Dennis




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611112226.RAA03756>