Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Feb 1999 09:39:56 +0200
From:      Martti Kuparinen <martti.kuparinen@lmf.ericsson.se>
To:        freebsd-isp@freebsd.org
Subject:   PPP clients getting wrong netmask
Message-ID:  <3.0.6.32.19990217093956.0092d100@openmail.lmf.ericsson.se>

next in thread | raw e-mail | index | archive | help
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<UP,POINTOPOINT,RUNNING,MULTICAST> 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<UP,POINTOPOINT,RUNNING,MULTICAST> 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 <martti.kuparinen@ericsson.com>
http://www.hut.fi/~kuparine



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" 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.19990217093956.0092d100>