From owner-freebsd-hackers Mon Nov 11 12:51:33 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA08742 for hackers-outgoing; Mon, 11 Nov 1996 12:51:33 -0800 (PST) Received: from mexico.brainstorm.eu.org (mexico.brainstorm.fr [193.56.58.253]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id MAA08735 for ; Mon, 11 Nov 1996 12:51:23 -0800 (PST) Received: from brasil.brainstorm.eu.org (brasil.brainstorm.fr [193.56.58.33]) by mexico.brainstorm.eu.org (8.7.5/8.7.3) with ESMTP id VAA00805 for ; Mon, 11 Nov 1996 21:50:48 +0100 Received: (from uucp@localhost) by brasil.brainstorm.eu.org (8.6.12/8.6.12) with UUCP id VAA05741 for hackers@FreeBSD.ORG; Mon, 11 Nov 1996 21:49:56 +0100 Received: (from roberto@localhost) by keltia.freenix.fr (8.8.2/keltia-uucp-2.9) id VAA24549; Mon, 11 Nov 1996 21:42:35 +0100 (MET) Message-ID: Date: Mon, 11 Nov 1996 21:42:35 +0100 From: roberto@keltia.freenix.fr (Ollivier Robert) To: hackers@freebsd.org Subject: Re: Setting PPP netmask! HOW! References: <199611111453.JAA01072@etinc.com> X-Mailer: Mutt 0.50.04 Mime-Version: 1.0 X-Operating-System: FreeBSD 3.0-CURRENT ctm#2686 In-Reply-To: <199611111453.JAA01072@etinc.com>; from dennis on Nov 11, 1996 09:53:19 -0500 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 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. -- Ollivier ROBERT -=- The daemon is FREE! -=- roberto@keltia.freenix.fr FreeBSD keltia.freenix.fr 3.0-CURRENT #28: Sun Nov 10 13:37:41 MET 1996