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

Re: Networking



> I have a question about networking.. here's the situation:
> 
> I have 2 Debian boxes with Ethernet cards, & respective cabling. I have an
> on-campus Ethernet connection, with 1 static IP & 1 etherjack allocated to me.
> Currently, I have the two PC's both online and configured to use the static
> IP, 160.94.138.145. I read the Net-3 & IP-Masq Howtos, and I am pretty sure I
> can configure one of the boxes as a firewall if I must.
> 

> I guess my real question is, can I do a connect like this:
> 
>  inet ----> hub ---> box1
>              |
>              +-----> box2 
> 
> or do i need to do this:
> 
"of course" you cannot do so, because the second box would need a separate
global ip.

>  inet ---> box1 ---> hub ---> box2
> 
this is the right one, but you don't need the hub - a crossed tp-cable
would do it, too.

> And, if I do that second setup, won't I need two NIC's on box1, one ingoing &
> one outgoing?
> 
you need two nics.

the "inner" net is configured with local IPs, like 172.16.96.x or
192.168.1.x (which are reserved for this purpose).

read the IP-Masquerade mini-howto!

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Linux - the last service pack you'll ever need.


Reply to: