Quote:
Originally posted by fin
Hi All,
Iam setting up a home network with three pc's, one linux box & two windows. The linux box RH 7.2 is going to be the main gateway for the net, firewall, samba.. etc
Which class of IP address sould I use for a home Lan network A, B or C At the moment the linux box IP is 127.0.0.1 should I keep this IP number or not ?
Thanks Rich
|
If you enter root mode, and type ifconfig, you will find that the interface defined with an ip address 127.0.0.1 is the lo interface. For the most part this can be left alone.
If you can enable eth0, ( or whatever interface you are trying to add) you should assign it an ip address in whichever network you are going to participate in. With three machines, you can use any of the classes of private network space, however you will want to be aware of what you are doing.
Pick a class of address, a network address and a subnet to use. With three devices, I would recomend using a class C subnet on any of the classes of address space. You could use 10.20.30.0 as your network address for example. With this as the network address and a subnet mask of 255.255.255.0, you would have the range of addresses from 10.20.30.1 through 10.20.30.254 available to use.
If you are going to set up one of the devices as a nat/proxy to the internet, you will need to set that device's ip address (from the range you select) as the gateway for your other two devices.
I would recomend .1, or .254 as the gateway, but there is not a specific rule.
All devices in the subnet need unique addersses, meaning you can not have two devices in the network with the same ip, 10.20.30.40 for example. (there are exceptions, however those exceptions are outside of the scope of what you are attempting to do.)
That should provide a sufficient start to setting up your network.
-Rusty