Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Aug 2002 09:49:49 -0500
From:      Vladimir Egorin <vladimir@math.uic.edu>
To:        freebsd-stable@freebsd.org
Subject:   PPP problems (long)
Message-ID:  <20020802094949.A14221@math.uic.edu>

next in thread | raw e-mail | index | archive | help
I am running 4.6-STABLE on my machine (buildworld done on Apr 10).
Computer is connected to the network via a cable with a hardware switch
between the computer and cable modem.   I've been using PPP to 
connect to establish a connection between home machine and
network at work.   The setup pretty much duplicated PPP over TCP 
setup as described in the man page.   

On the client side, I have this:

tunnel:
 set escape 0xff
 set device X.Y.Z.108:6669/tcp
 set ifaddr X.Y.Z.209 X.Y.Z.108
 add X.Y.Z.108/32 192.168.0.1
 set dial
 set log Phase Chat Connect hdlc LCP IPCP CCP tun
 set authname vladimir
 set authkey XXXXX

Remote machines's IP is X.Y.Z.108, local X.Y.Z.209 
(both are public IP addresses).   Also, on the remote
machine X.Y.Z.108 is asigned to an ethernet device
(ethernet card and tun0 interface have the same IP
on the remote end).

/etc/ppp/ppp.linkup has

 delete! X.Y.Z.108
 add! X.Y.Z.108/32 192.168.0.1

where 192.168.0.1 is the hardware switch.   This tells it
to route connections to the other end of the link through
the switch (and not through the PPP link).

This setup worked perfectly.   Recently, i've installed a 5.0-CURRENT
on one of partitions to take advantage of some hardware I have.
Unfortunately, ppp setup broke.    Here is the ppp.log entry:

Aug  2 08:23:00 kot ppp[354]: tun1: HDLC:  0f 01 9e 9f                                      .... 
Aug  2 08:23:00 kot ppp[354]: tun1: IPCP: deflink: State change Ack-Rcvd --> Opened 
Aug  2 08:23:00 kot ppp[354]: tun1: IPCP: deflink: LayerUp. 
Aug  2 08:23:00 kot ppp[354]: tun1: IPCP: myaddr X.Y.Z.209 hisaddr = X.Y.Z.108 
Aug  2 08:23:00 kot ppp[354]: tun1: Warning: iface add: ioctl(SIOCAIFADDR, X.Y.Z.209 -> X.Y.Z.108
: File exists 
Aug  2 08:23:00 kot ppp[354]: tun1: Error: ipcp_InterfaceUp: unable to set ip address 
Aug  2 08:23:00 kot ppp[354]: tun1: IPCP: deflink: LayerDown: 131.193.178.209 

If at the remote end I use different IP addresses for the ethernet card and
tun device, everything works as before.   Is there any problem with using
the same IP for two different interfaces?

-- 
Vladimir

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020802094949.A14221>