Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jan 1997 21:01:52 +0000
From:      Brian Somers <brian@awfulhak.demon.co.uk>
To:        "Matthew A. Gessner" <mgessner@aristar.com>
Cc:        hackers <hackers@FreeBSD.ORG>
Subject:   Re: dialup iijppp not letting line go? 
Message-ID:  <199701312101.VAA23940@awfulhak.demon.co.uk>
In-Reply-To: Your message of "Thu, 30 Jan 1997 16:10:10 EST." <32F10E32.167EB0E7@aristar.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
[.....]
>   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 <brian@awfulhak.demon.co.uk>, <brian@freebsd.org>
      <http://www.awfulhak.demon.co.uk/>;
Don't _EVER_ lose your sense of humour....





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701312101.VAA23940>