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

Re: [Sheflug] Network configs



On Thursday 16 November 2000  8:31 pm, Barrie Bremner wrote:
> Since NICs, and hubs and all that is favour of the moment, could someone
> tell me if this is possible:
>
>  5 machines all on hub, plus one machine with two NICs, one to hub, and
> one to a sixth machine.
>  Can I access machine #6 from any machine, or would I have to log into
> machine #5 to get access to machine #6?


Assuming, for example, that the machine with 2 NICS is set up as follows:

1. Enable IPv4 forwarding (option in linuxconfig or YAST setup or, in a 
RedHat type system, ensure the string "FORWARD_IPV4=true" exists in the 
/etc/sysconfig/network file.)
2. hub NIC address is 192.168.1.1 and network is 192.168.1.0
3. private network to machine 6 NIC address is 192.168.2.1 and network 
address is 192.168.2.0

Then:

on the other hub machines (with addresses in the range 192.168.1.2-254), 
execute:  "route add default gw 192.168.1.1"

on machine 6 (with address in the range 192.168.2.2-254), execute:
 "route add default gw 192.168.2.1"

Voila.

Pieter
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.