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. I'm running SUSE 10 and wanted to know what information I need (besides the IP address for each I want to use) to do this. For example, if they all have and address of the format 192.168.0.x, the subnet mask will be 255.255.255.0, but do I need to get the nameservers and domain search entries from my ISP? Or can I still get those via DHCP? Thanks.
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.
I'm running SUSE 10 and wanted to know what information I need (besides the IP address for each I want to use) to do this. For example, if they all have and address of the format 192.168.0.x, the subnet mask will be 255.255.255.0, but do I need to get the nameservers and domain search entries from my ISP? Or can I still get those via DHCP?
Thanks.
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.
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.
On Friday 06 January 2006 11:20 am, Doctor Who wrote:
I'm running SUSE 10 and wanted to know what information I need (besides the IP address for each I want to use) to do this. For example, if they all have and address of the format 192.168.0.x, the subnet mask will be 255.255.255.0, but do I need to get the nameservers and domain search entries from my ISP? Or can I still get those via DHCP?
Nah, you can setup any or all of the TCPIP stuff for DHCP. I currently have this exact setup. My Wintendo box runs .100 and my Linux boxes are .200 and .201 on the network. You simply assign the IP and subnets in the appropriate places then leave the rest to be assigned by DHCP. Can't help you with any router settings, since I don't know which Netgear you have. -- kai www.perfectreign.com linux - genuine windows replacement part
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.
I'm running SUSE 10 and wanted to know what information I need (besides the IP address for each I want to use) to do this. For example, if they all have and address of the format 192.168.0.x, the subnet mask will be 255.255.255.0, but do I need to get the nameservers and domain search entries from my ISP? Or can I still get those via DHCP?
If you configure the computers for static addresses, you'll also have to configure DNS and default gateway.
If you configure the computers for static addresses, you'll also have to configure DNS and default gateway.
I had a problem with installing 10.0 in that DHCP did not work right off the bat. I chose to use static addressing using the usual 192.168.0.1 thru .3 & 255.255.255.0 mask. I wonder if changing the mask to 255.255.255.252 on all of the machines would make things easier/quicker on the router? It would limit me to 3 machines on the subnet, but I'm not planning on add more machines anytime soon. Just wondering out loud...
gonzlobo wrote:
If you configure the computers for static addresses, you'll also have to configure DNS and default gateway.
I had a problem with installing 10.0 in that DHCP did not work right off the bat. I chose to use static addressing using the usual 192.168.0.1 http://192.168.0.1 thru .3 & 255.255.255.0 http://255.255.255.0 mask. I wonder if changing the mask to 255.255.255.252 http://255.255.255.252 on all of the machines would make things easier/quicker on the router? It would limit me to 3 machines on the subnet, but I'm not planning on add more machines anytime soon. Just wondering out loud...
I don't know of any reason why the subnet size would make any difference. It's used to determine whether an address is on the local network or not. This is determined by using AND and compare functions.
On Sun, 2006-01-08 at 07:54 -0700, gonzlobo wrote:
If you configure the computers for static addresses, you'll also have to configure DNS and default gateway.
I had a problem with installing 10.0 in that DHCP did not work right off the bat. I chose to use static addressing using the usual 192.168.0.1 thru .3 & 255.255.255.0 mask. I wonder if changing the mask to 255.255.255.252 on all of the machines would make things easier/quicker on the router? It would limit me to 3 machines on the subnet, but I'm not planning on add more machines anytime soon. Just wondering out loud... That would actually limit you to two machines. There are four addresses, one network address, two host addresses and one broadcast address.
-- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
participants (7)
-
Bruce Marshall
-
Doctor Who
-
gonzlobo
-
James Knott
-
Kai Ponte
-
Ken Schneider
-
Vince Littler