Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Dec 1998 11:28:06 -0500
From:      Graeme Tait <graeme@echidna.com>
To:        freebsd-questions@FreeBSD.ORG
Cc:        Graeme@echidna.com
Subject:   PPP -alias won't work anymore
Message-ID:  <367E7716.E9B@echidna.com>

next in thread | raw e-mail | index | archive | help
About a month ago, I succeeded in getting aliasing to work with user ppp, and 
everything was great until yesterday when I had to reboot the system running ppp. 
Apparently I had made configuration changes at the command line to enable 
aliasing and had forgotten to feed them back into rc.conf, etc.

However after checking everything over and setting gateway_enable="YES" in 
rc.conf, I still can't get aliasing to work again. Communication via ppp from the 
machine running ppp is fine without aliasing enabled. The only other thing I 
remember changing was the /etc/hosts file. For the life of me, I can't figure out 
what I'm doing wrong now, and it's driving me nuts, since everything was working 
so well before the reboot.


If I do

PPP ON home> set log tcp/ip hdlc

I can see that when I set

PPP ON home> alias enable yes

the source IP address in the outgoing packets changes from the correct value to 
all zeros.

This is true even when sending from the system running ppp.


-- 
Graeme Tait - Echidna


-----------------------------------------------------------------------------

netstat -rn output:

Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
default            10.65.69.14        UGSc        3       45      tun0
10.65.69.14        yyy.yyy.yyy.yyy    UH          3        0      tun0
127.0.0.1          127.0.0.1          UH          2       86       lo0
xxx.xxx.xxx        link#2             UC          0        0 
xxx.xxx.xxx.15     0:a0:c9:c5:c0:94   UHLW        0      322       ep0    416
xxx.xxx.xxx.18     0:10:4b:56:32:a1   UHLW        2       30       ep0    947


yyy.yyy.yyy.yyy is a static IP address, dynamically assigned by ppp negotiation, 
and is the address corresponding to the system hostname. The xxx.xxx.xxx 
addresses are registered IP numbers - the reason I have these on the local 
network right now is that one system is a spare/development unit corresponding to 
an online machine, and I don't want to reconfigure all the IP numbers/hostnames 
set up on it.


ifconfig -a output:

lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
ep0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	inet xxx.xxx.xxx.16 netmask 0xffffff00 broadcast xxx.xxx.xxx.255
	ether 00:10:4b:56:36:bd 
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1006
	inet yyy.yyy.yyy.yyy --> 10.65.69.14 netmask 0xffffff00 
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
	inet 127.0.0.1 netmask 0xff000000


ppp.conf (invoked with "ppp -ddial provider"):

default:
  set server 3000
  set device /dev/cuaa1
  set speed 115200
  set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK 
\\dATDT\\T TIMEOUT 40 CONNECT"
provider:
  set phone "1 ddd ddd dddd"
  set login
  set timeout 3000
  deny lqr
  set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0
  set mtu 1006
  delete ALL
  add 0 0 HISADDR
  set authname xxxxxxxx
  set authkey xxxxxxxx


ppp.linkup:

MYADDR:
  delete ALL
  add 0 0 HISADDR


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?367E7716.E9B>