> -----Original Message-----
> From: San Goku [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 04, 2000 9:09 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: [plug] routing problem
>
> I'll re-draw it again:
>
> [satellite mmp]--[cisco]--{eth0}--[linux dialup
> host]--[modems]--[PSTN]
> |
> \/
> [internet]
>
> the [linux dialup host] has an ip address belonging to the
> old ip block
> our isp gave us (e.g. 192.168.1.0). the dialup connections
> belong to a new
> ip block (e.g. 192.168.2.0).
>
> [satellite mmp] = 192.168.1.254/24
> [cisco] = 192.168.1.253/24
> [linux dialup host] = 192.168.1.252/24
> [modem pool] = 192.168.2.0/24
>
> the cisco router is configured:
>
> router ospf 1234
> redistribute static metric 1 subnets
> network 192.168.1.0 0.0.0.0 area 0
> network 192.168.2.0 0.0.0.0 area 0
> !
> ip route 0.0.0.0 0.0.0.0 192.168.1.254
> ip route 192.168.2.0 255.255.255.0 192.168.1.252
>
> (note: all ip addresses used are for sample purposes only)
Hmmmmmmm! I haven't actually tried this kind of setup. But if I was asked to
do it, then I'll do it this way.
1. Since I got an existing NIC on my linux, I will assign an aliased ip
address to the eth0 which I will get from the new IP address block. (You can
also add another NIC if you want. Better performance!!!)
ifconfig eth0:0 192.168.2.1 netmask 255.255.255.0 broadcast 192.168.2.255
Note: This will execute properly if you have configured IP aliasing on your
kernel.
2. Normally, a route will be added to 192.168.2.0 network on your routing
table. If it happens na wala siya sa routing table, then do this.
#route add -net 192.168.2.0 netmask 255.255.255.0 eth0:0
And most of all, do not forget to create a DEFAULT ROUTE from your linux to
the world. I guess, you know kung sino dapat ang gateway ni linux kapag
magke-create ka ng DEFAULT ROUTE.
FYI, the cisco routing table looks fine.
FOOLER and CARLO is also right. That's the only way to learn: reading,
trying and doing it over and over again. :-)
...sni :-)
--
.-------------------------------------------------------.
o^o | Ronneil Camara | [EMAIL PROTECTED] |
/V\ |--------------------| +632 6354086 +63917 5326993 |
// \\ | "The only way to `----------------------------------|
/( )\ | stop a hacker is to think like one." |
^^-^^ | ...brilliant misguided youth |
`-------------------------------------------------------'
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]