From owner-freebsd-questions Wed Aug 12 00:40:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA11517 for freebsd-questions-outgoing; Wed, 12 Aug 1998 00:40:52 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from lanshark.lanminds.com (lanshark.lanminds.com [140.174.208.11]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA11511 for ; Wed, 12 Aug 1998 00:40:50 -0700 (PDT) (envelope-from psh1@cornell.edu) Received: from wartch.sapros.com (wartch.sapros.com [206.14.97.130]) by lanshark.lanminds.com (8.8.7/8.8.6) with ESMTP id AAA22431; Wed, 12 Aug 1998 00:40:16 -0700 (PDT) Received: from wartch.sapros.com (localhost [127.0.0.1]) by wartch.sapros.com (8.8.8/8.8.8) with ESMTP id AAA07324; Wed, 12 Aug 1998 00:39:52 -0700 (PDT) (envelope-from psh1@cornell.edu) Message-Id: <199808120739.AAA07324@wartch.sapros.com> To: Doug White Subject: Re: Setting up two way PPP connection. cc: freebsd-questions@FreeBSD.ORG Date: Wed, 12 Aug 1998 00:39:40 -0700 From: Peter Haight Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >Your ISP will do that? That usually costs them mega-bucks. Well, this is all a centrex ISDN thing, so maybe it is cheaper than with modems. Anyway, I hacked the user-level ppp guy to handle this situation. It now listens for RINGs on the ISDN TA as well as watching for packets on the tun device. So that problem is solved. >> 2. The ISP has given me an 8 IP subnet. Their router routes all packets to >> one address which is the other end of the PPP line. In order to do this I >> had to use two IP addresses for my router. One was the IP address on the >> local lan and the other is the one it gets from the PPP line. Is there some >> way to avoid this? Can I set the PPP link up as some kind of bridge instead? > >No, ppp doesn't support bridging. You'll have to work it so both ends get >the same IP regardless. Then you can config pppd to give the remote the >IP it normally gets when you dial in. I'm not following you. I'll try and explain better. Normally my network is 10.0.0.0/29. I configure my router to have the IP 10.0.0.1. I gave the other machine on the network 10.0.0.2. Both of them have netmasks of 255.255.255.248. At this point I can ping everyone and everyone is happy. Now I dial into my ISP. I tell my ISP that I want to use 10.0.0.1 as my IP. It says OK and that the gateway is 10.0.2.21. Now ppp does the following: It creates the tun0 device with IP 10.0.0.1. It then makes 10.0.2.21 the default route. Now when I try to ping 10.0.0.2 it doesn't work. The reason (I think) is that the routing table says to route anything in the 10.0.0.0/29 subnet through 10.0.0.1. At this point both ed0 and tun0 have 10.0.0.1 as their inet address. I'm not exactly sure what FreeBSD decides to do in this situation, but it doesn't work. I can ping any host out on the Internet at this point, though. I thought I could fix this by adding ADD 0 0 INTERFACE to the ppp.linkup file, but whenever I try to send a packet to the Internet in this mode, I get an error like "Address family not supported". If I look at the routing table, the default route is to tun0 and there is no IP address specified. Do I just need to use two IP addresses for the router or is there something I'm missing? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message