Jump to content
Spartans Home

Assigning STATIC IP & DHCP at the same time


NoScream~SPARTA~
 Share

Recommended Posts

I had a problem and thought I'd share the solution so some of you become more knowlagable regarding modern routers & IP control.

__________

PROBLEM

 

You use DHCP but want fixed IP's on your network too?

 

IPB Image

 

Lets say you have a router and it is running (like most routers) a service called DHCP (Domain Host Control Protocol) which is normally built in to the router (it can be turned off or left on).

 

Lets say DHCP has been assigning IP's to your connected network items like, PC's/ Wireless phones/ NAS/ Media player etc etc...

 

Now you want to still use DHCP so you can have it automatically assign new IP's to new devices (like releatives laptops when they visit) but want fixed IP's too.

 

Your router does not support fixed IP via the router interface.

 

__________

ANSWER

 

 

DHCP assigns free IP's from a range you specify, normally from 0-255

 

Step one is you restrict the range, I normally go for high end DHCP, so assign DCHP the upper portion of the IP range 200-255 and this leaves 0-199 none assigned (unavailable to DHCP).

 

(we normally set the router to 1 & zero is not used).

 

IPB Image

 

Now

 

You just need to set the TCP/IP settings in the Network Connection Properties/ for each static device/PC.

 

 

IP Address - You specifiy (you choose from the free none DHCP range, 2-199)

Subnet Mask - From you Router (normally 255.255.255.0)

Default Gateway - Your Router (your router IP normally the range xxx.xxx.xxx.1)

Primary DNS - From your ISP ( or get this from your router status page)

Secondary DNS - From your ISP ( or again from your router status page)

 

 

 

Go into NETWORK > Properties

Change adaptor settings

Right click the adaptor & select properties

Networking tab

highlight: Internet protocol Version 4

select properties

 

move from obtain to 'use the following'

Enter your chosen

 

IP address

Subnet mask

Default gatway

 

Move from obtain DNS to 'use the following'

 

preferred DNS server (enter the primary DNS from the router status page)

Alternative DNS server (enter the secondary DNS from the router status page)

 

 

Conclude:

 

In this example DHCP has control of 200-255 (xxx.xxx.xxx.200 to xxx.xxx.xxx.255)

You have control of 1-199 (xxx.xxx.xxx.2 to xxx.xxx.xxx.199)

xxx.xxx.xxx.1 reserved for the router I.P. (but your router my be set to 254 etc etc, you can change it or work your own ranges).

Link to comment
Share on other sites

Very well done :)

 

Also, to simplify further more, you can consider this:

 

Many standard Routers like Linksys, D-Link etc. already come with a restricted of DHCP address range.

You can check that on the main page of your Router settings looking at the DHCP info and most probably you will see something similar to "DHCP Range" field.

Usually these routers give 50 addresses to the DHCP and they are"usually" between 100 and 150, you will see that info on the router "overview" page.

 

Once you understand what is the range your router is already using, you just want to assign an IP address to your machine outside that range, following the Viper instructions.

 

This way you do not mess up with your router settings (which still requires a somewhat advanced understanding) but you just set your local machine address.

 

Enjoy :)

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...