From owner-freebsd-isp Tue Feb 16 23:43:11 1999 Delivered-To: freebsd-isp@freebsd.org Received: from penguin.wise.edt.ericsson.se (penguin-ext.wise.edt.ericsson.se [194.237.142.5]) by hub.freebsd.org (Postfix) with ESMTP id 0703110EC6 for ; Tue, 16 Feb 1999 23:42:51 -0800 (PST) (envelope-from martti.kuparinen@lmf.ericsson.se) Received: from lmf.lmf.ericsson.se (umail.lmf.ericsson.se [131.160.11.2]) by penguin.wise.edt.ericsson.se (8.9.0/8.9.0/WIREfire-1.2) with ESMTP id IAA10202 for ; Wed, 17 Feb 1999 08:42:45 +0100 (MET) Received: from tosb0323 by lmf.lmf.ericsson.se (8.8.8+Sun/SMI-SVR4) id JAA09174; Wed, 17 Feb 1999 09:42:48 +0200 (EET) Message-Id: <3.0.6.32.19990217093956.0092d100@openmail.lmf.ericsson.se> X-Sender: lmfmara@openmail.lmf.ericsson.se X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Wed, 17 Feb 1999 09:39:56 +0200 To: freebsd-isp@freebsd.org From: Martti Kuparinen Subject: PPP clients getting wrong netmask Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I am using FreeBSD 2.2.8-RELEASE as my PPP server. When a client dials in, the ppp0 device looks like this: ws70:~> ifconfig ppp0 ppp0: flags=8051 mtu 1500 inet6 fe80:9::280:c8ff:fe4c:67b8 prefixlen 64 inet xxx.xxx.xxx.70 --> xxx.xxx.xxx.101 netmask 0xffffffc0 ws70:~> So the server side report the correct netmask (255.255.255.192). At the same time, on my home PC (FreeBSD 3.1-RELEASE) I have a wrong netmask (255.255.255.0) as shown in the following output: morse:~> ifconfig tun0 tun0: flags=8051 mtu 1500 inet xxx.xxx.xxx.101 --> xxx.xxx.xxx.70 netmask 0xffffff00 morse:~> I have read the docs but it seems like I haven't read carefully enough :-) Do you have any idea how to tell the client the correct netmask (I'm too lazy to write "ifconfig tun0 netmask 255.255.255.192" every time :-). Below are the config files on the server. /Martti /etc/ppp/options ================ crtscts # use hardware flow control modem # use modem control lines passive # wait for LCP +pap # use PAP login # use /etc/passwd with PAP/CHAP auth # require auth. before allowing packets domain my.name.com # our domain netmask 255.255.255.0 # netmask proxyarp # clients' ARP addresses point to this host ms-dns xxx.xxx.xxx.xxx # tell DNS server address to Windows clients /etc/ppp/options.ttyd0 ====================== xxx.xxx.xxx.70:xxx.xxx.xxx.101 --- Martti Kuparinen http://www.hut.fi/~kuparine To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message