Date: Tue, 09 Feb 1999 16:15:55 +0200 From: Martti Kuparinen <martti.kuparinen@lmf.ericsson.se> To: questions@FreeBSD.ORG Subject: Kernel PPP and netmask Message-ID: <3.0.6.32.19990209161555.03091dc0@openmail.lmf.ericsson.se>
next in thread | raw e-mail | index | archive | help
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<UP,POINTOPOINT,RUNNING,MULTICAST> 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 <martti.kuparinen@ericsson.com>
http://www.hut.fi/~kuparine
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.6.32.19990209161555.03091dc0>
