From owner-freebsd-hackers Fri Jan 31 13:03:49 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA12258 for hackers-outgoing; Fri, 31 Jan 1997 13:03:49 -0800 (PST) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA12245 for ; Fri, 31 Jan 1997 13:03:38 -0800 (PST) Received: from awfulhak.demon.co.uk (localhost.coverform.lan [127.0.0.1]) by awfulhak.demon.co.uk (8.8.4/8.7.3) with ESMTP id VAA23940; Fri, 31 Jan 1997 21:01:53 GMT Message-Id: <199701312101.VAA23940@awfulhak.demon.co.uk> X-Mailer: exmh version 1.6.9 8/22/96 To: "Matthew A. Gessner" cc: hackers Subject: Re: dialup iijppp not letting line go? In-reply-to: Your message of "Thu, 30 Jan 1997 16:10:10 EST." <32F10E32.167EB0E7@aristar.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 31 Jan 1997 21:01:52 +0000 From: Brian Somers Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk [.....] > 1) Our ISP has dedicated 2 IP addresses for us: > 206.25.171.180 inetgw running ppp+pktAlias > 206.25.171.181 phoenix machine > > I want to be able to allow packets for phoenix coming in from the > outside into inetgw to get to phoenix. So far, I haven't been able to > make this happen. > > 2) I have assigned an alias to ed0: it has 2 addresses: > > 10.0.0.1 (local) > 206.25.171.181 (alias) With a netmask of 0xfffffffe I take it. > 3) phoenix's usual default gateway is inetgw, except when I want to > connect directly through my modem (which I do sometimes). > > > 4) I have a static route on phoenix: > route add 206.25.171.181 localhost > It gives an error when I start it but it does go through: it gives > me this: > > (/etc/ppp.orig)# netstat -rn > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif > Expire > default 206.25.171.40 UGc 4 0 tun0 > 10 link#1 UC 1 0 > 10.0.0.4 0:40:5:1b:dc:44 UHLW 0 1587 ed0 > 530 > 10.0.0.16 0:40:5:37:7b:4b UHLW 0 132 ed0 > 127.0.0.1 127.0.0.1 UH 1 0 lo0 > 206.25.171 link#1 UC 1 0 > 206.25.171.40 206.25.171.68 UH 5 0 tun0 > 206.25.171.181 127.0.0.1 UGHS 1 0 lo0 > > I think I'm missing something somewhere. Can someone fill in the > missing pieces? Do I need to be running ipfw? Do I need to put > something else in my routing tables? So how does phoenix get to 206.25.171.68 ? What you want on phoenix is ifconfig ed0 inet 206.25.171.181 netmask 0xfffffffe alias route add 206.25.171.181 localhost route add default 206.25.171.180 and on inetgw ifconfig ed0 inet 206.25.171.180 netmask 0xfffffffe alias route add 206.25.181.180 localhost Assuming you've got forwarding turned on on inetgw and that your ISP is routing packets for both machines, things should be ok. -- Brian , Don't _EVER_ lose your sense of humour....