Uh, no you don't want to do it quite like that.
Each machine should have its own unique name and domain, like
fubar.com,
snafu.com,
pita.com and the like.
[EDIT]
The domain name is unique to your network, not to each machine; e.g.,
com,
org,
info, or whatever you've been assigned -- don't want any confusion there.
[/EDIT]
If you're going to use fixe-IP addressing for the individual servers (a Good Ida), those addresses would be something like this
Code:
fubar.com 192.168.1.10
sanfu.com 192.168.1.20
pita.com 192.168.1.30
and so on. Those addresses depend upon your network configuration.
If you're using DHCP, they still need unique names similar to the above.
The advantage of fixed-IP is that the servers (machines) can find each other easily -- you add the names and addresses to
/etc/hosts on each server like this:
Code:
# For loopbacking.
127.0.0.1 localhost
192.168.1.10 fubar.com fubar
192.168.1.15 InkJet
192.168.1.20 snafu.com snafu
192.168.1.30 pita.com pita
That line for
InkJet is the address of a system-wide network printer that has a fixed-IP address.
If you're on
fubar.com, you can then simply connect to, say,
snafu.com with SSH
would get you there -- the purpose of having "fubar.com" and "fubar" is that the servers can be addressed either way (the full name,
fubar.com or the alias
fubar). See the manual page for
hosts.
You should have some sort of network configuration utility on your servers that is used to assign a name and domain, an address, a gateway address (your severs should be connected to a switch or router, the gateway address is the address of the switch or router) for fixed-IP (also for DHCP but the settings are somewhat different).
With 20 serves you
may have different subnet addresses; i.e., you may have a subnet 1 and subnet 2 which would make the addresses 192.168.
1.10 and 192.168.
2.10 (the 1 and 2 are the subnets) simply because you may not have enough ports on a switch or router to handle 20 servers (many routers are 4-, 8, or 16 ports, some are 32 ports). If you're using wi-fi, that's different and you need to check the manual for your wi-fi equipment.
[EDIT]
It is not necessary that you would have different subnet addresses; you could (as suggested by @acid_kewpie below) simply plug in another switch -- you would need to set the gateway address for that additional switch and on whatever servers are wired to that switch (the gateway addresses of each router or switch must be unique on the network).
[/EDIT]
You may want to refer to
http://www.yolinux.com/TUTORIALS/Lin...etworking.html for more information.
Hope this helps some.