[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Networking



> > > I guess my real question is, can I do a connect like this:
> > > 
> > >  inet ----> hub ---> box1
> > >              |
> > >              +-----> box2 
> 
> Yes, you can do so, as long as you tell box2 to route its traffic through
> box1. You did know that the gateway is a wholly logical and not physical
> connection, didn't you? If it's possible to give Box2 a global IP, then do
> it. Conversely, box2 can have an internal IP, but that doesn't mean that
> it needs to be directly physically connected to box1. 

So, given this configuration, I should be able to:
configure box1 to handle IP-Masq
ifconfig eth0 on box1 to the inet addr 160.94.138.145
add default route to my internet gateway (160.94.139.254) on box1
configure eth0 on box1 to the localnet addr 192.168.1.1 <-- how do i do this?
ifconfig eth0 on box2 to the localnet addr 192.168.1.2
add 192.168.1.1 as gateway machine for box2 

Is this right? And how do I set up the 1 NIC (on box1) to respond to both
160.94.138.145 and 192.168.1.1?

> > >  inet ---> box1 ---> hub ---> box2
> 
> > this is the right one, but you don't need the hub - a crossed tp-cable
> > would do it, too.
> 
> ...unless you want to add more boxes at any point.

I think I've decided I will go with a hub, because I may try something like
this at home over the summer, which would need to include 2 more boxes. And
the hub might come in handy anyways.

Thanks for the help,
Colin


Reply to: