Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Feb 2001 22:48:34 -0800
From:      Jaye Mathisen <mrcpu@internetcds.com>
To:        questions@freebsd.org
Subject:   Ridiculously obvious PPP question...
Message-ID:  <20010215224834.Z97686@apocalypse.cdsnet.net>

next in thread | raw e-mail | index | archive | help

I have stared at this, and looked at the sample a kazillion times, and
I just tain't seeing it.

A 4.2-RELEASE box is working fine with a similar config, but
a 4.2-stable box from 1/10/2001 is having trouble.

ed0 is on a private network (192.168.101.2), albeit it has static routes to
a couple other subnets.

So the intention is to just dial in, start ppp, add a default
route, do my thing, disconnect.

If I don't do add default HISADDR's in the config file, then
I can ping the peer IP.  I can *never* ping the tun0 IP,
for reasons I don't understand.

I can usually ping the peer, and if I add a default route by
hand, I can usually do some stuff.

I just do 'ppp -nat -foreground papchap'

ifconfig/Routing table with this ppp.conf:

xyzzy# ifconfig -a
ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.101.2 netmask 0xffffff00 broadcast 192.168.101.255
        inet6 fe80::200:e8ff:fee4:1282%ed0 prefixlen 64 scopeid 0x1 
        ether 00:00:e8:e4:12:82 
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7 
        inet6 ::1 prefixlen 128 
        inet 127.0.0.1 netmask 0xff000000 
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
        inet6 fe80::200:e8ff:fee4:1282%tun0 --> :: prefixlen 64 scopeid 0xa 
        inet 63.164.162.152 --> 63.164.160.71 netmask 0xff000000 
        Opened by PID 719
xyzzy# ping 63.164.162.152
PING 63.164.162.152 (63.164.162.152): 56 data bytes
ping: sendto: No route to host
^C
--- 63.164.162.152 ping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss
xyzzy# ping 63.164.160.71
PING 63.164.160.71 (63.164.160.71): 56 data bytes
64 bytes from 63.164.160.71: icmp_seq=0 ttl=255 time=227.799 ms
64 bytes from 63.164.160.71: icmp_seq=1 ttl=255 time=250.285 ms
^C
--- 63.164.160.71 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 227.799/239.042/250.285/11.243 ms
xyzzy# netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
63.163.68.2        192.168.101.1      UGHS        0        0      ed0
63.163.68.5        192.168.101.1      UGHS        2     3089      ed0
63.163.68.68       192.168.101.1      UGHS        0       23      ed0
63.164.160.71      63.164.162.152     UH          0        2     tun0
127.0.0.1          127.0.0.1          UH          0        2      lo0
192.168.101        link#1             UC          0        0      ed0 =>
192.168.101.1      0:e0:52:8d:78:0    UHLW        3        0      ed0    788

And if I add a route by hand to the default, it works:

xyzzy# route add -net default 63.164.160.71
add net default: gateway 63.164.160.71
xyzzy# ping ns-01
PING ns-01.cdsnet.net (204.118.244.2): 56 data bytes
64 bytes from 204.118.244.2: icmp_seq=0 ttl=251 time=218.460 ms


Now, all I do is do the "add default HISADDR" in ppp.conf:

Dial again, and nada.

What's weird is that the NAS box I'm dialling into shows 0 bytes in on
the serial interface when it's frozen.  Nothing in ppp.log stands out
it just doesn't work.


The ppp.conf: 
#################################################################

default:
 ident user-ppp VERSION (built COMPILATIONDATE)
 set device /dev/cuaa2

 set log Phase Chat LCP IPCP CCP tun command
 set speed 57600
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
           \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
# set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
# set ifaddr 0 0 0 0
 set timeout 120                        # 3 mintue idle timer (the default)
# add default HISADDR                    # Add a (sticky) default route
# ^This is the line I uncomment and then nothign works.
 enable dns                             # request DNS info (for resolv.conf)
 nat enable yes
 disable vjcomp
 disable deflate
 disable pred1
 set server /var/tmp/internet ppp 0177

papchap:
 set phone 7801001
 set authname acct
 set authkey pass
# set filter  in 0 permit 0 0
# set filter  out 0 permit 0 0
# set filter  alive 0 permit 0 0
# set filter  dial 0 permit 0 0


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?20010215224834.Z97686>