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
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?
OK, by your diagram, switch-2 at the top switch-1 at the bottom, try this config:
Set it to router mode:
set system mode router
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 !
! 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.