Ok let me stab at this one:

On Tue, Apr 06, 2004 at 02:04:29PM -0500, Jason Sievert wrote:
> Close, here is some ascii art to try and describe it.
> 
> |----------------|                                  |-------|(corp lan)
> |Privet net      |                                  |gateway|(world)
> |192.168.123.0/24| <----------> eth0 192.168.123.100|-------|eth1
> |----------------|              eth0:0 192.168.0.100         172.16.0.3
>                                 eth0:1 10.0.0.100
> 
> What I am looking for is when I bring a box in at 192.168.0.101 that the 
> router will not send that traffic through to the world but will NAT or 
> route it through the appropriate device.
> For example if 192.168.123.2 want to go to google the gateway will nat 
> it but if it wants to talk to a raid at 192.168.0.101 it will route or 
> nat that through the gateway.
> Jason
> P.S. I im in way over my head so be gentel :)

If you set up aliases on eth0 like you defined above, your linux router
will route stuff to said aliases.  so, 

ifconfig eth0 alias 192.168.0.1 netmask 255.255.255.0

(might have to check that syntax) - if you are on your router and you go
ping 192.168.0.101 it'll see that alias and send the packets out
accordingly, and you'll be able to get a response on 192.168.0.1.  

Does that help?

dan

_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list