 |
Linux Format forums Help, discussion, magazine feedback and more
|
| View previous topic :: View next topic |
| Author |
Message |
purplepenguin
Joined: Wed Oct 05, 2011 3:19 pm Posts: 33 Location: Blissfully at the Command Line
|
Posted: Sat Jul 07, 2012 1:59 pm Post subject: Static IP and DHCP ranges |
|
|
Hello
I have several machines on my LAN. I like to assign static IP addresses to the ones that are permanent such as HTPCs, Main PC, Media Server. and leave the others such as phones, Wii, Netbooks and Printer to DHCP.
I wanted to use different IP ranges for different classes of machines eg.
Devices assigned DHCP on say 192.168.1.1 -192.168.1.50
Clients such as Main PC, HTPC and Kids PC on 192.168.1.51 -
and all infrastructure servers, printers etc on 192.168.2.1 -
For some reason I cannot use the 192.168.1.x range I can only use the 192.168.2.x range.
I think this may be due to my routers setup in particular the subnet mask? But I'm not sure and I'm getting confused and knotted up from google results.
Here are the router details
My routers address is 192.168.2.1
My DHCP pool range is 192.168.2.2 - 192.168.2.50
Subnet mask is 255.255.255.0
The DHCP range has the first 3 blocks greyed out so I cannot change the 2 to 1.
If I change the subnet mask to 255.255.0.0 will I then be able to use the 192.168.1.x range
Many thanks
Lee |
|
| Back to top |
|
 |
Dutch_Master LXF regular
Joined: Tue Mar 27, 2007 2:49 am Posts: 2353
|
Posted: Sat Jul 07, 2012 3:13 pm Post subject: |
|
|
| The router came pre-configured for a private range Class C network. You're advised to assign static addresses either at the beginning or end of the range. Or set up a bridge that connect both subnets. |
|
| Back to top |
|
 |
purplepenguin
Joined: Wed Oct 05, 2011 3:19 pm Posts: 33 Location: Blissfully at the Command Line
|
Posted: Sat Jul 07, 2012 4:21 pm Post subject: |
|
|
| Dutch_Master wrote: | | The router came pre-configured for a private range Class C network. You're advised to assign static addresses either at the beginning or end of the range. Or set up a bridge that connect both subnets. |
Thanks Dutch Master. I keep the DHCP pool to 192.168.2.2 -192.168.2.50
I assign all client pcs to the range 192.168.2.111 - 192.168.2.199 and
Servers to 1912.168.2.200 -192.168.2.255
I know this gives me more than enough addresses for a simple home lan I'll never use up all the available addresses.
I was just wondering if it would be as simple as changing the subnet mask on the router from 255.255.255.0 to 255.255.0.0 and restarting the router. To allow me to use the 192.168.1.x range.I know I would have to edit the network connections on all machines to reflect the subnet change. |
|
| Back to top |
|
 |
towy71 Moderator

Joined: Wed Apr 06, 2005 3:11 pm Posts: 4169 Location: wild West Wales
|
Posted: Sat Jul 07, 2012 5:06 pm Post subject: |
|
|
What make and model router? _________________ still looking for that door into summer |
|
| Back to top |
|
 |
purplepenguin
Joined: Wed Oct 05, 2011 3:19 pm Posts: 33 Location: Blissfully at the Command Line
|
Posted: Sat Jul 07, 2012 6:16 pm Post subject: |
|
|
| towy71 wrote: | | What make and model router? |
Belkin F5D8233 4-v3
On the LAN setting page I can change the routers IP address and the Subnet Mask except for the first 255 of the subnet which is greyed out.
As far as I understand subnet masks ( I'm probably wrong) the 255's refer to the network and the 0's refer to the hosts. So a subnet of 255.255.255.0 as mine is set now means the last part of the IP is the host 192.168.2.x. If I change the subnet mask to 255.255.0.0 wouldn't that mean I could use IP addresses 192.168.x.x.
Thanks
Lee |
|
| Back to top |
|
 |
wyliecoyoteuk LXF regular

Joined: Sun Apr 10, 2005 11:41 pm Posts: 3358 Location: Birmingham, UK
|
Posted: Sat Jul 07, 2012 7:16 pm Post subject: |
|
|
Yes, that's right, but really unnecessary.
255.255.255.0 gives you access to 254 addresses, more than you can really expect to use for a home network.
Changing it to 255.255.0.0 would give you access to over 64 thousand addresses.
I would set the DHCP range to the first 49 addresses, 192.168.2.2-192.168.2.50
Then allow fixed addresses in the rest of the 50-254 range
e.g. servers 126-192, hardware 193-254
There are good arguments for limiting the number of available addresses, and none really for increasing them..
I know of some installations where the mask is set to 255.255.255.248, for example, to prevent casual connections.
On another note, it is a really bad idea to use DHCP for printers.
Anyway IPv6 will change all of this forever. _________________ The sig between the asterisks is so cool that only REALLY COOL people can even see it!
*************** ************ |
|
| Back to top |
|
 |
purplepenguin
Joined: Wed Oct 05, 2011 3:19 pm Posts: 33 Location: Blissfully at the Command Line
|
Posted: Sat Jul 07, 2012 7:43 pm Post subject: |
|
|
| wyliecoyoteuk wrote: | Yes, that's right, but really unnecessary.
255.255.255.0 gives you access to 254 addresses, more than you can really expect to use for a home network.
Changing it to 255.255.0.0 would give you access to over 64 thousand addresses.
I would set the DHCP range to the first 49 addresses, 192.168.2.2-192.168.2.50
Then allow fixed addresses in the rest of the 50-254 range
e.g. servers 126-192, hardware 193-254
There are good arguments for limiting the number of available addresses, and none really for increasing them..
I know of some installations where the mask is set to 255.255.255.248, for example, to prevent casual connections.
On another note, it is a really bad idea to use DHCP for printers.
Anyway IPv6 will change all of this forever. |
Cool thanks, I know I wont need more than the 254 addresses and I'm happy with my IP scheme I was just curious as to why I couldn't use the 192.168.1.x and started to look at subnets on google.
I used to use static IP's for my printer (Epson sx515w) but when it broke I bought a sx435w which to the best of my knowledge can only use DHCP and yes I do have problems from time to time when the IP address changes, that's why I never turn it off any more.
lee |
|
| Back to top |
|
 |
towy71 Moderator

Joined: Wed Apr 06, 2005 3:11 pm Posts: 4169 Location: wild West Wales
|
Posted: Sat Jul 07, 2012 8:42 pm Post subject: |
|
|
I downloaded the pdf manual for your router and on page 39 it states: | Quote: | 1.
IP Address
The “IP address” is the internal IP address of the Router. The
default IP address is “192.168.2.1”. To access the advanced setup
interface, type this IP address into the address bar of your browser.
This address can be changed if needed. To change the IP address,
type in the new IP address and click “Apply Changes”. The IP
address you choose should be a non-routable IP. Examples of a
non-routable IP are:
192.168.x.x (where x is anything between 0 and 255)
10.x.x.x (where x is anything between 0 and 255)
2.
Subnet Mask
There is no need to change the subnet mask. This is a unique,
advanced feature of your Belkin Router. It is possible to change
the subnet mask if necessary; however, do NOT make changes to
the subnet mask unless you have a specific reason to do so. The
default setting is “255.255.255.0”.
| I have a Belkin router and can change the IP if I want  _________________ still looking for that door into summer |
|
| Back to top |
|
 |
pk_fox LXF regular

Joined: Wed Apr 13, 2005 2:38 pm Posts: 205 Location: Surrey, UK
|
Posted: Sun Jul 08, 2012 1:48 pm Post subject: Re: Static IP and DHCP ranges |
|
|
| purplepenguin wrote: | Hello
I have several machines on my LAN. I like to assign static IP addresses to the ones that are permanent such as HTPCs, Main PC, Media Server. and leave the others such as phones, Wii, Netbooks and Printer to DHCP.
I wanted to use different IP ranges for different classes of machines eg.
Devices assigned DHCP on say 192.168.1.1 -192.168.1.50
Clients such as Main PC, HTPC and Kids PC on 192.168.1.51 -
and all infrastructure servers, printers etc on 192.168.2.1 -
For some reason I cannot use the 192.168.1.x range I can only use the 192.168.2.x range.
I think this may be due to my routers setup in particular the subnet mask? But I'm not sure and I'm getting confused and knotted up from google results.
Here are the router details
My routers address is 192.168.2.1
My DHCP pool range is 192.168.2.2 - 192.168.2.50
Subnet mask is 255.255.255.0
The DHCP range has the first 3 blocks greyed out so I cannot change the 2 to 1.
If I change the subnet mask to 255.255.0.0 will I then be able to use the 192.168.1.x range
Many thanks
If you want to use the 192.168.1.x range just change your routers ip address to 192.168.1.1 and LEAVE THE SUBNET MASK ALONE !
Lee |
|
|
| Back to top |
|
 |
scarydeath
Joined: Sat Aug 11, 2012 9:46 pm Posts: 5
|
Posted: Sat Aug 11, 2012 10:10 pm Post subject: |
|
|
| wyliecoyoteuk wrote: |
On another note, it is a really bad idea to use DHCP for printers.
|
Why?
I assume you mean because the computer accessing the printer will need to be told where it is - i.e. the IP address changes on each request?
I have set up a small printer server with DHCP. I instruct the router to reserve a specific IP address for this device, and therefore all the benefits of DHCP (easy set up) are retained, whilst a "static" IP address is used. |
|
| Back to top |
|
 |
wyliecoyoteuk LXF regular

Joined: Sun Apr 10, 2005 11:41 pm Posts: 3358 Location: Birmingham, UK
|
Posted: Sun Aug 12, 2012 8:47 am Post subject: |
|
|
| scarydeath wrote: | | wyliecoyoteuk wrote: |
On another note, it is a really bad idea to use DHCP for printers.
|
Why?
I assume you mean because the computer accessing the printer will need to be told where it is - i.e. the IP address changes on each request?
I have set up a small printer server with DHCP. I instruct the router to reserve a specific IP address for this device, and therefore all the benefits of DHCP (easy set up) are retained, whilst a "static" IP address is used. |
That's fine. In fact I do that too for all in ones that need DNS etc.
But DHCP without reservation is definitely not a good idea, as if the router or the printer are turned off for longer than the printerDHCP lease period, it will get a different address. _________________ The sig between the asterisks is so cool that only REALLY COOL people can even see it!
*************** ************ |
|
| Back to top |
|
 |
Nuke LXF regular

Joined: Wed Feb 09, 2011 12:11 pm Posts: 134 Location: Chepstow, UK
|
Posted: Sun Aug 12, 2012 11:24 pm Post subject: |
|
|
| scarydeath wrote: | | wyliecoyoteuk wrote: |
On another note, it is a really bad idea to use DHCP for printers.
|
I assume you mean because the computer accessing the printer will need to be told where it is - i.e. the IP address changes on each request?
I have set up a small printer server with DHCP. I instruct the router to reserve a specific IP address for this device, and therefore all the benefits of DHCP (easy set up) are retained, whilst a "static" IP address is used. |
Why is DHCP easier to set up for a printer? I told my print server to use a certain static address, then told my PCs to use that address for their printer. If you set up a reserved DHCP address instead as you do, doesn't that amount to the same work?
That being the case, I'd rather nail down my printer with a fixed IP address. To me, the only point of DHCP is for portable devices. What have I missed?  _________________ Unsolved Mysteries of the Universe No 8 :-
Why did they do away with sinks with integral splashbacks? |
|
| Back to top |
|
 |
dandnsmith LXF regular
Joined: Fri Apr 15, 2005 11:01 am Posts: 267 Location: Berks, UK
|
Posted: Mon Aug 13, 2012 7:23 am Post subject: |
|
|
| Quote: | | That being the case, I'd rather nail down my printer with a fixed IP address. To me, the only point of DHCP is for portable devices. What have I missed? Question |
I'd normally agree, but just recently I had occasion to set up a printer/server for testing in one environment, but final use in another where I didn't know what the address ranges were being used. Here I found using DHCP to be easier, as it happened to be easier to carry the MAC for the printer rather than reconfigure the printer. _________________ Derek |
|
| Back to top |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 8000 Location: Warrington, UK
|
Posted: Mon Aug 13, 2012 8:43 am Post subject: |
|
|
| Nuke wrote: | | Why is DHCP easier to set up for a printer? I told my print server to use a certain static address, then told my PCs to use that address for their printer. If you set up a reserved DHCP address instead as you do, doesn't that amount to the same work? |
Not necessarily. My new network printer has a constant address supplied by DHCP. I could have assigned a static address, but that would have meant reading the manual and working with a 2 line display and fiddly buttons to set it.
One big advantage of setting all your "static" addresses by DHCP is that the configuration is set in one place, not spread all over the network, making administration much easier. _________________ Unix is user-friendly. It's just very selective about who it's friends are. |
|
| Back to top |
|
 |
wyliecoyoteuk LXF regular

Joined: Sun Apr 10, 2005 11:41 pm Posts: 3358 Location: Birmingham, UK
|
Posted: Mon Aug 13, 2012 9:42 am Post subject: |
|
|
I regularly set up MFDs (Multi Function Devices, used to be called photocopiers) on networks, and wherever possible, I try to persuade the sysadmin to use DHCP.
Why?
DHCP can be used for more than just an IP address.
A properly configured DHCP server can also issue DNS servers and other useful info.If you change the IP range, gateway or DNS server, DHCP can automatically update it on all clients. All you need to know is the MAC address.
MFDs are not just printers, they are also document servers, email servers (and clients) and log on to servers to save scanned files in folders via SMB, FTP or NFS, so if you have several of them on a network (we have some customers with 40 or 50), fixed IPs become a pain. They can also use DNS to resolve host names for target servers, and LDAP searches for email addresses, thus avoiding even more manual input.
However, for a home user, it is not advisable to just use DHCP without reserving the address, as often happens. _________________ The sig between the asterisks is so cool that only REALLY COOL people can even see it!
*************** ************ |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|