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

the relationship between VLAN and DHCP server to assign ip into hosts

hello guys , 

 

DHCP server configured on windows server with a multipe scopes and each scop has different range of IPs , for exmple 

scope (HR) => 10.124.80.2/24

scope (IT) => 10.124.100.2/24

 

locally on switches i created two VLANs (IT => vlan id=100) , (HR => vlan id =80). 

how can i force each host assigned to vlan IT to go direct into IT scope and request IP from DHCP Server and likewise regarding hosts assiged to o go VLAN HR to go direct and request into HR scope and request IP from DHCP server ? 

 

1 Accepted Solution

Accepted Solutions

balaji.bandi
Hall of Fame
Hall of Fame

On the switch you create a VLAN SVI Interface example :

 

IT - VLAN 100

HR - VLAN 80

 

interface vlan 100

ip address 10.124.100.1 255.255.255.0

ip helper-address x.x.x.x ( where dhcp Server IP)

 

 

interface vlan 80

ip address 10.124.80.1 255.255.255.0

ip helper-address x.x.x.x ( where dhcp Server IP)

 

Acces port

 

( example)  for IT

 

interface GigabitEthernet1/0/4
switchport access vlan 100
switchport mode access

 

 

 for HR

 

interface GigabitEthernet1/0/5
switchport access vlan 80
switchport mode access

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

5 Replies 5

balaji.bandi
Hall of Fame
Hall of Fame

On the switch you create a VLAN SVI Interface example :

 

IT - VLAN 100

HR - VLAN 80

 

interface vlan 100

ip address 10.124.100.1 255.255.255.0

ip helper-address x.x.x.x ( where dhcp Server IP)

 

 

interface vlan 80

ip address 10.124.80.1 255.255.255.0

ip helper-address x.x.x.x ( where dhcp Server IP)

 

Acces port

 

( example)  for IT

 

interface GigabitEthernet1/0/4
switchport access vlan 100
switchport mode access

 

 

 for HR

 

interface GigabitEthernet1/0/5
switchport access vlan 80
switchport mode access

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hi,

I have the same set up as him. I have a switch 3560 with 1/2 switch are on VLAN 100 and 1/2 switch ports are on VLAN 80 and   the DHCP on Windows server (10.124.100.10) is connected to one port of VLAN 100. The desktops on VLAN 100 get all the IP from scope (IT) => 10.124.100.2/24 but for VLAN 80, the desktop still doesn't get or  no IP or any IP from scope (HR) => 10.124.80.2/24.  Any advise? Thank you

 

scope (HR) => 10.124.80.2/24

scope (IT) => 10.124.100.2/24

Hello,

 

what does the rest of your topology look like, where is the layer 3 routing happening ?

 

You need either a layer 3 switch with 'ip routing' enabled, or a router configured with subinterfaces (router-on-a-stick setup) in order for what you want to occur.

topology configured with layer 3 core switch , all switches will be linked in trunk configuration to Core switch 

May I ask how? 

Review Cisco Networking for a $25 gift card