From owner-freebsd-questions Tue Feb 9 06:18:47 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA19708 for freebsd-questions-outgoing; Tue, 9 Feb 1999 06:18:47 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from penguin.wise.edt.ericsson.se (penguin-ext.wise.edt.ericsson.se [194.237.142.5]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA19695 for ; Tue, 9 Feb 1999 06:18:41 -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 PAA22781 for ; Tue, 9 Feb 1999 15:18:32 +0100 (MET) Received: from tosb0323 by lmf.lmf.ericsson.se (8.8.8+Sun/SMI-SVR4) id QAA13334; Tue, 9 Feb 1999 16:18:34 +0200 (EET) Message-Id: <3.0.6.32.19990209161555.03091dc0@openmail.lmf.ericsson.se> X-Sender: lmfmara@openmail.lmf.ericsson.se X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Tue, 09 Feb 1999 16:15:55 +0200 To: questions@FreeBSD.ORG From: Martti Kuparinen Subject: Kernel PPP and netmask Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello! I have some minor difficulties with my PPP server setup. I am running 2.2.8-RELEASE with the kernel PPP (pppd). The netmask received by the client is incorrect, i.e. it gets 255.255.255.0 while it should get 255.255.255.192. Here is server's /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 xxx.xxx.fi # our domain netmask 255.255.255.192 # our netmask proxyarp # clients' ARP addresses point to this host Here is /etc/ppp/options.ttyd0 ------------------------------ xxx.xxx.xxx.70:xxx.xxx.xxx.100 The server's IP address is xxx.xxx.xxx.70 and the client dialing in via modem #1 (which is connected to ttyd0) should get xxx.xxx.xxx.100 for the IP address. On the client (FreeBSD 3.0-STABLE) I have this configuration after establishing PPP connection: # ifconfig tun0 tun0: flags=8051 mtu 1500 inet xxx.xxx.xxx.100 --> xxx.xxx.xxx.70 netmask 0xffffff00 Please notice the invalid netmask, it should be 0xffffffc0. What am I doing wrong? Thanks in advance, Martti --- Martti Kuparinen http://www.hut.fi/~kuparine To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message