Setting up a secondary IP address range

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
We are running out of IP's in our DHCP range and do not have 'room' in our IPv4 to enlarge the current scope. Can you setup a secondary IP range to use DHCP?

Like so:

interface vlan.0.100
ip address 10.10.1.0 255.255.255.0 primary
ip address 10.10.7.0 255.255.255.0 secondary
Photo of Jeremy Bullock

Jeremy Bullock

  • 324 Points 250 badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of André Herkenrath

André Herkenrath, Employee

  • 1,942 Points 1k badge 2x thumb
Hi Jeremy,
working with secondary IP addresses on a router interface is possible but alway a nasty workaround.

Regards
André
Photo of André Herkenrath

André Herkenrath, Employee

  • 1,942 Points 1k badge 2x thumb
Both subnets are broadcastdomains - usually broadcastdomains are separated by routers - you plan to connect them with a bridge.

You better create a second vlan with its own IP range and use tagging on the uplinks.

/André
(Edited)
Photo of Daniel Coughlin

Daniel Coughlin, Employee

  • 2,648 Points 2k badge 2x thumb
I am not sure I would use the adjective "nasty".  Adding the secondary address with another class c address is not much different than backing off the mask by 1 bit.  That said I understand and agree with the sentiment of keeping broadcast domains as small a possible.
Photo of André Herkenrath

André Herkenrath, Employee

  • 1,942 Points 1k badge 2x thumb
When it stops with the first secondary IP - I agree. But you are opening the door to a bad style of networking (I have customers with 12 secondary IPs in a subnet). Creating a second vlan shouldn't be a problem.
Photo of Ronald Dvorak

Ronald Dvorak, Embassador

  • 45,286 Points 20k badge 2x thumb
Another thing is the DHCP request - I assume DHCP relay will be used,
In that case the router will send out 2 requests for the different scopes and the first reply will decide which IP (subnet) is used by the client.

In my opinion it's better to configure a new VLAN instead of using a secondary IP.
Photo of Curtis Parish

Curtis Parish

  • 3,332 Points 3k badge 2x thumb
Your DHCP server will need to be configured to show the different subnets are actually a part of the same network.  Our BlueCat DHCP servers are able to do that.  
Photo of Erik Auerswald

Erik Auerswald, Embassador

  • 12,782 Points 10k badge 2x thumb
Hi Jeremy,

you can add a secondary IP address to a VLAN:
configure vlan <NAME> add secondary-ipaddress <ADDRESS>
You can configure the BOOTP Relay service to include the secondary address(es):
configure bootprelay ipv4 include-secondary
Br,
Erik