From owner-freebsd-questions Sun Aug 9 18:03:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA21840 for freebsd-questions-outgoing; Sun, 9 Aug 1998 18:03:38 -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 SAA21833 for ; Sun, 9 Aug 1998 18:03:36 -0700 (PDT) (envelope-from psh1@cornell.edu) Received: from wartch.sapros.com (machine1.sapros.com [206.14.97.130] (may be forged)) by lanshark.lanminds.com (8.8.7/8.8.6) with ESMTP id SAA06603 for ; Sun, 9 Aug 1998 18:03:12 -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 SAA00751 for ; Sun, 9 Aug 1998 18:03:06 -0700 (PDT) (envelope-from psh1@cornell.edu) Message-Id: <199808100103.SAA00751@wartch.sapros.com> To: freebsd-questions@FreeBSD.ORG Subject: Setting up two way PPP connection. Reply-To: psh1@cornell.edu Date: Sun, 09 Aug 1998 18:03:04 -0700 From: Peter Haight Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've got a FreeBSD box that I use as a router for a small house network. I recently got some IP addresses and my new ISP calls my ISDN TA whenever there are packets for my network. I have two questions. 1. How do I setup this kind of two way ppp connection where it dials into the ISP when I have an outgoing packet and it accepts calls from my ISP when there is an incoming packet? 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? Here's what the setup looks like (with fake IPs): 10.0.1.120 - ISP's router IP. 10.0.0.129 - Local router IP on PPP to ISP. 10.0.0.134 - Local router IP on local network. 10.0.0.130 - Some host on the local network. The router's routing table looks like this: Destination Gateway Flags Refs Use Netif Expire default 10.0.1.120 UGSc 1 1 tun0 127.0.0.1 127.0.0.1 UH 0 0 lo0 10.0.1.120 10.0.0.129 UH 2 0 tun0 10.0.0.128/29 link#1 UC 0 0 10.0.0.130 0:e0:29:c:66:8 UHLW 2 4724 ed0 1036 10.0.0.134 0:40:5:1d:3d:d5 UHLW 3 10 lo0 10.0.0.135 ff:ff:ff:ff:ff:ff UHLWb 2 59 ed0 Here is the output from ifconfig with the PPP link up. ed0: flags=8843 mtu 1500 inet 10.0.0.134 netmask 0xfffffff8 broadcast 10.0.0.135 ether 00:40:05:1d:3d:d5 lp0: flags=8810 mtu 1500 tun0: flags=8051 mtu 1500 inet 10.0.0.129 --> 10.0.1.120 netmask 0xffffff00 lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message