Date: Sun, 09 Aug 1998 18:03:04 -0700 From: Peter Haight <psh1@cornell.edu> To: freebsd-questions@FreeBSD.ORG Subject: Setting up two way PPP connection. Message-ID: <199808100103.SAA00751@wartch.sapros.com>
next in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 10.0.0.134 netmask 0xfffffff8 broadcast 10.0.0.135
ether 00:40:05:1d:3d:d5
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.129 --> 10.0.1.120 netmask 0xffffff00
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808100103.SAA00751>
