cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1553
Views
0
Helpful
3
Replies

DHCP and Secondary Addresses

mrashby
Level 1
Level 1

All,

I have a router that has a primary address and a couple of secondaries on the ethernet interface. This is a simple question I know it but I am having trouble solving this issue. When a host looks for a DHCP address it uses the address that is on the ethernet interface which is the PC's gateway. If there are secondary addresses on an ethernet interface does the PC request a DHCP address using all of the addresses on the ethernet interface?

1 Accepted Solution

Accepted Solutions

Jon Marshall
Hall of Fame
Hall of Fame

Mario

Assuming you are using an "ip helper-address .." this will only work for the primary interface. It will not work for secondary interfaces so any clients on the secondary networks will not be able to get IP addresses.

If your addressing was contiguous you could just enlarge the DHCP scope on your DHCP server.

What you really need to do is to create subinterfaces on your router interface for each subnet ie. 802.1q routing on a stick. With subinterfaces each one can use their own ip helper-address.

Jon

View solution in original post

3 Replies 3

Jon Marshall
Hall of Fame
Hall of Fame

Mario

Assuming you are using an "ip helper-address .." this will only work for the primary interface. It will not work for secondary interfaces so any clients on the secondary networks will not be able to get IP addresses.

If your addressing was contiguous you could just enlarge the DHCP scope on your DHCP server.

What you really need to do is to create subinterfaces on your router interface for each subnet ie. 802.1q routing on a stick. With subinterfaces each one can use their own ip helper-address.

Jon

I think for what I am trying to do enlarging the scope will work best. Thanks.

DHCP SuperScopes.....

Not that I would advise anyone to use secondary addressing and superscopes as it is a 'bodge' to be used during migrations and should never be put forward as a final design. However DHCP SuperScopes are exactly what secondary addresses are used for. When you group DHCP Scopes into SuperScopes the DHCP server can assign addresses from any of the scopes within the superscope as long as the DHCP forwarder is within the range.

For example a router with the following config:

interface FastEthernet0/1

ip address 10.1.1.254 255.255.255.0

ip address 10.1.50.254 255.255.255.0 secondary

ip address 172.16.10.254 255.255.255.0 secondary

ip helper-address 192.168.10.10 secondary

!

The DHCP Server at address 192.168.10.10 can be configured with three DHCP scopes covering each of the four subnets (10.1.1.0/24, 10.1.50.0/24 & 172.16.10.0/24). These can then be grouped into a single superscope so it can offer IP addresses from any of the scopes when it receives a forwared DHCP discover/request from the router 10.1.1.254.

Obviously your DHCP server needs to support SuperScopes (Windows DHCP Server does).

Again though, I must stress I wouldn't advise this unless you need to continue a service during a migration.

HTH

Andy

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card