On Friday 06 January 2006 19:28, Bruce Marshall wrote:
On Friday 06 January 2006 14:20, Doctor Who wrote:
I have several machines on my internal network. They are all currently connected to the Internet via a Netgear router and receive their IP addresses via DHCP from the router. For the sake of consistincy, I would like to give them all static IPs on the internal network and then place entries in the /etc/hosts files so that I can more easily do file transfers and such (ssh, scp, etc.) between them.
<snip>
1) Set up the static IP addresses *outside* the range of the routers DHCP addresses (on the LAN side) 2) Put your names and IP addresses in /etc/hosts 3) In /etc/resolv.conf, point to your router for DNS resolution. 4) For each of the static LAN cards, point to the router as the default gateway.
That's it.
The above can all be done in one swoop with yast, doing the above settings.
Another thing you could do is leave the router and the NICs set up for DHCP on the eth0 interface and use YAST to add an additional interface on each NIC on a different subnet with fixed IP addresses, and use the hosts file for these addresses. This has 1 additional advantage for me, I use the fixed subnet for Samba and for any machine booted to Microsoft Operating systems - which means that any machine booted to Microsoft cannot see the internet.