cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3482
Views
0
Helpful
6
Replies

Extending DHCP scope by adding a secondary IP range to same vlan?

peng
Level 1
Level 1

Hi,

 

Current dhcp scope is running out of IPs and would like to add a secondary IP range for vlan 50 and I was hoping the following will work. Extending the current ip range is not an option at the moment, so the PC's connected to switch ports configured for vlan 50 will pick up addresses from both ranges...

I was hoping someone can clarify if the following scenario will work or not or can foresee any problems with it, HSRP is also included, will this be a issue?:

 

Sw1:

interface Vlan50
 ip address 192.169.12.1 255.255.255.0 secondary
 ip address 192.168.10.1 255.255.0.0
 standby 1 ip 192.168.10.254
 standby 1 ip 192.169.12.254 secondary
 standby 1 priority 110
 standby 1 preempt

 

Sw2

interface Vlan50
 ip address 192.169.12.2 255.255.255.0 secondary
 ip address 192.168.10.2 255.255.0.0
 standby 1 ip 192.168.10.254
 standby 1 ip 192.169.12.254 secondary
 

sw1 and sw2:

ip dhcp excluded-address 192.168.10.1
ip dhcp excluded-address 192.168.10.2

ip dhcp excluded-address 192.168.10.254
ip dhcp excluded-address 192.169.12.1

ip dhcp excluded-address 192.169.12.2 

ip dhcp excluded address 192.169.12.254

ip dhcp pool pool1
 network 192.168.10.0 255.255.255.0
 dns-server 4.1.1.1
 default-router 192.168.10.254
!
ip dhcp pool pool2
 network 192.169.12.0 255.255.255.0
 dns-server 4.1.1.1
 default-router 192.169.12.254

6 Replies 6

Martin Carr
Level 4
Level 4

It won't work, you can only assign one address dynamically!

In addition you have two separate networks, so nodes would not be able to communicate with each other.

One final note, is that it is an 'illegal' address, i.e. it is not from the reserved private network classes.

Martin

Hi cmartyn,

 

Sorry forgot to mention the above config is isolated in a test lab environment and will not be using these addresses in the production environment.

 

I tested in a lab environment and I was able to assign the two laptops with an ip address, one from the  192.169.12.x and one from the 192.168.10.x range and both laptops were connected to switch ports configured for access vlan 50.

 

So it seems to work......

 

 

 

But those two hosts won't be able to communicate, as they are on different networks?

Martin

hey cmartyn,

Just tested each laptop which is sitting on different network but same vlan and are able to ping each other...

I was not sure how the routing would work, as you are not inter routing between VLANS, none the less it must be, else you would not be able to communicate between the two!

It's interesting re the DHCP though, it may be that you won't know for sure which node will use which pool?

Martin

Hi cmartyn,

I've just checked the routing table and both ip ranges are seen as "connected" routes, so that would explain how they are able to communicate with each other.

 

It looks like 192.168.10.x range is utilised first and when the ips are exhausted the ips in the 192.169.12.x range, which is set as secondary then gets distributed.

 

It seems to work but because this is the first time I have tried this, I just wanted to know if anyone has tried this method and had any other issues with it?

 

 

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: