Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

how to config vlan dhcp on sg500

Hell all

 

i'm so sorry, i'm not so good in english

 

but i have a picture about my network

 

and i don't know how to config sg500 dhcp and fix ip look like my the picture

 

please, help me please

Thank you all

 

3 REPLIES

Re: how to config vlan dhcp on sg500

Hi there,

Do you want clients on VLAN15 to be served DHCP from the SG500 and VLANs 10 and 20 to use static reservations from DHCP server?

 

cheers,

Seb.

New Member

Re: how to config vlan dhcp on sg500

Yes, all clients that have dhcp and fix ip on network

 

and all clients connect on only 1 switch

 

thank you all

Re: how to config vlan dhcp on sg500

OK, by your diagram, switch-2 at the top switch-1 at the bottom, try this config:

 

SWITCH-2

Set it to router mode:

set system mode router
reload

 

Then this config

 

!
vlan 10
vlan 15
vlan 20
!
ip dhcp relay enable
ip dhcp relay address 192.168.1.254
!
int vlan 1
  ip address 192.168.1.1
!
int vlan 10
  ip address 192.168.10.1
!
int vlan 15 
  ip address 192.168.15.1
!
int vlan 20
  ip address 192.168.20.1
!
!
int gi2
  description SWITCH-1
  switchport mode trunk
  switchport trunk vlan allowed vlan add 10,15,20
!
int gi15
  description DHCP_SERVER
  switchport mode access
  switchport access vlan 1
  spanning-tree portfast
!

 

 

SWITCH-1

!
vlan 10
vlan 15
vlan 20
!
int gi1
  description SWITCH-2
  switchport mode trunk
  switchport trunk vlan allowed vlan add 10,15,20
!

For each connect PC, you will need to specify the VLAN ID:

!
int giXX
  switchport mode access
  switchport access vlan <VLAN_ID>
  spanning-tree portfast
!

Then you will need to define the DHCP scopes on your DHCP server. Collect the MAC address of the devices on VLANs 10 and 20 and confgure the static assignments on the DHCP server.

 

cheers,

Seb.

 

 

 

 

144
Views
0
Helpful
3
Replies
CreatePlease login to create content