cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
482
Views
5
Helpful
3
Replies

DHCP for different VLANs

Izac ICT
Level 1
Level 1

Dear All,

 

I have two VLANs on my 2960 SW and 3950Sw. There are two different DHCP Pools on MS DHCP Server. Clients on different VLANs should receive IP addresses according to their VLAN.

 

How can I do that? Could you please share an example?

THanks

 

Cheers

Isac.

1 Accepted Solution

Accepted Solutions

Deepak Kumar
VIP Alumni
VIP Alumni

Hi, 

As I am understanding your question you having one DHCP server which is (suppose) under the VLAN 10 and IP address of server is 192.168.10.100/24 and at the same time you are having another VLAN 20 for users but you want to use the single DHCP server.

 

Yes, it is possible with help of "IP helper-Address xx.x.x" command.

 

your configuration on your core switch:

 

interface vlan 10

ip address 192.168.10.1 255.255.255.0 (maybe difference IP address) 

exit

!

interface vlan 20

IP address 192.168.20.1 255.255.255.0 (maybe difference IP address) 

ip helpder-address 192.168.10.100

exit

!

 

regards,

Deepak Kumar

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

View solution in original post

3 Replies 3

Deepak Kumar
VIP Alumni
VIP Alumni

Hi, 

As I am understanding your question you having one DHCP server which is (suppose) under the VLAN 10 and IP address of server is 192.168.10.100/24 and at the same time you are having another VLAN 20 for users but you want to use the single DHCP server.

 

Yes, it is possible with help of "IP helper-Address xx.x.x" command.

 

your configuration on your core switch:

 

interface vlan 10

ip address 192.168.10.1 255.255.255.0 (maybe difference IP address) 

exit

!

interface vlan 20

IP address 192.168.20.1 255.255.255.0 (maybe difference IP address) 

ip helpder-address 192.168.10.100

exit

!

 

regards,

Deepak Kumar

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

Hello Deepak,

 

Thank you for reply. Actually DHCP server is connected to management VLAN1 and I have VLAN10 and VLAN20.

DHCP server has two pools :  Pool1-192.168.10.0 and Pool2-192.168.20.0

 

vlan 10 client get IP from Pool1

vlan 20 clients get IP from Pool2

 

So should I assign IP helper address to VLAN10, too.  Does it solve the issue? May I use same gateway(router) address for both VLANs?

 

Thaks again.

 

regards

Isac

Hi, 

You have to assign the IP helpder-address to your both VLAN 10 & 20. 

 

Regards,

Deepak Kumar

 

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!
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