From owner-freebsd-stable Fri Aug 2 7:50: 7 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9FF3F37B400 for ; Fri, 2 Aug 2002 07:50:00 -0700 (PDT) Received: from math.uic.edu (neumann.math.uic.edu [131.193.178.222]) by mx1.FreeBSD.org (Postfix) with SMTP id 3950743E3B for ; Fri, 2 Aug 2002 07:50:00 -0700 (PDT) (envelope-from vladimir@math.uic.edu) Received: (qmail 14323 invoked by uid 31415); 2 Aug 2002 14:49:50 -0000 Date: Fri, 2 Aug 2002 09:49:49 -0500 From: Vladimir Egorin To: freebsd-stable@freebsd.org Subject: PPP problems (long) Message-ID: <20020802094949.A14221@math.uic.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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