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! Message-ID: <Mutt.19961111214235.roberto@keltia.freenix.fr> In-Reply-To: <199611111453.JAA01072@etinc.com>; from dennis on Nov 11, 1996 09:53:19 -0500 References: <199611111453.JAA01072@etinc.com>
next in thread | previous 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. -- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Mutt.19961111214235.roberto>