Re: Routing a Dial-in Router ...

From: David Efflandt (efflandt_at_xnet.com)
Date: 05/27/04


Date: Thu, 27 May 2004 03:32:35 +0000 (UTC)

On 26 May 2004 11:23:17 -0700, Dale Martenson <dmartenson@multitech.com> wrote:
> I have a dial-in server (24 line off a T1) using portslave where
> clients dial-in and get access to the network just fine using a pool
> of ip addresses on the same subnet as the server.
>
> Now there is one dial-in client that is actually a router that wishes
> to use a static ip (not on the same subnet). How do I get this to
> work? I assume I need to add a static route, but I don't know which
> ppp interface the client is going to dial-in on. Will I have to add
> something to \etc\ppp\ip-up to special case this?

Assuming you are using the router's IP as remote IP from your end, it
should end up with a host route and you just need to add the network route
from ip-up (or ip-up.local) if the remote IP ($5) is 172.11.1.1:

if [ "$5" = "172.11.1.1" ] ; then
    echo "Router connecting"
    echo "Do /sbin/route -net whatever-net&netmask dev $1"
fi

> Example:
>
> My server 192.168.1.2 with a gateway at 192.168.1.1
>
> Router with static ip 172.11.1.1
>
> When the router connects, it can ping 192.168.1.2, but nothing else.

How would any other boxes on LAN know to route 172.11.1.1 (which is NOT a
private IP range, but currently unassigned) to 192.168.1.2 instead of
their default gateway 192.168.1.1? If the gateway has a suitable OS,
maybe you could set up a pair of alias IPs between the gateway and your
server, so the default gateway could route that network to your server
(instead of internet where it gets lost). If that 172. net wants to
access the internet through you, your gateway would also need to
masquerade it.

-- 
David Efflandt - All spam ignored  http://www.de-srv.com/


Relevant Pages

  • Re: Dual NICs, Routing Problem
    ... There can only be one default gateway (unless you are using extra stuff as ... network that is NOT directly attached to one of your interfaces. ... >> Do all the hosts on 192.1.36.0 know that if they want to talk to any host on ... Here, the web server needs to know the IP of eth0 on the DataBase Server, ...
    (alt.os.linux.suse)
  • Re: One computer on 2 networks
    ... On the server take the new "internet Nic" and set it up properly for the ... Create a static route in the OS's routing table that uses the LAN Router ... don't work in the Network Admin Dept. I'm a developer. ...
    (microsoft.public.windows.server.networking)
  • Re: [SLE] connection redundancy
    ... which is the router just this side of the ... >>because it's own gateway is still up. ... You'll also need three network cards to put into this Linux box. ... your internal LAN can route packets to the Internet. ...
    (SuSE)
  • Re: AIX 1.3 Failures and Fables
    ... DESTINATION GATEWAY FLGS REFCNT USE INTERFACE ... Is my interpretation of the AIX 1.3 #man route correct? ... Manually manipulates the routing tables. ... Is the destination host or network. ...
    (comp.sys.ibm.ps2.hardware)
  • Re: AIX 1.3 Failures and Fables
    ... I don't know if 1.3 has SMIT or its equivalent but there should be some way to add a default gateway which is your router. ... Is my interpretation of the AIX 1.3 #man route correct? ... Manually manipulates the routing tables. ... Is the destination host or network. ...
    (comp.sys.ibm.ps2.hardware)