08-23-2017 11:16 PM - edited 03-08-2019 11:49 AM
I am using CISCO SG300-10POE switch
I already update firmware.
Now i have a 1.4.8.6 firmware version.
i want to configure DHCP scope and release a different ip address series in each ports in switch.
how can i complete this task??
Thankyou
Solved! Go to Solution.
09-06-2017 04:18 AM
OK, since you have reset the switch, try this:
! set system mode router ! int vlan 1 no ip address dhcp ! int vlan 10 ip address 10.10.10.254 255.255.255.0 ! ip dhcp server ip dhcp pool network DHCP_POOL10 address 10.10.10.0 /24 default-router 10.10.10.254 dns-server 8.8.8.8 ! ip dhcp excluded-address 10.10.10.254 ! int gi1 switchport mode access switchport access vlan 10 spanning-tree portfast !
09-07-2017 12:15 AM
You are missing a dash between 'excluded' and 'address':
! ip dhcp excluded-address 10.10.10.254 !
You do know that pressing the Tab key as you type commands will auto-complete and show possible paramters. Try typing 'ip dhcp' and pressing 'Tab'....
cheers,
Seb.
08-23-2017 11:42 PM
Hello,
page 293 of the attached user guide tells you how to enable the DHCP server feature:
08-29-2017 11:42 PM
This is not working :(
08-30-2017 12:38 AM
Hi there,
When you first try to enable the DHCP server there is a good chance the switch will complain about having a DHCP clinet running on the switch; this is usually on VLAN1. I suspect this might be the problem you are encountering.
Try the config below (only the first 5 VLANs for the sake of brevity!):
! int vlan 1 no ip address dhcp ! int vlan 10 ip address 10.10.10.254 255.255.255.0 int vlan 11 ip address 10.10.11.254 255.255.255.0 int vlan 12 ip address 10.10.11.254 255.255.255.0 int vlan 13 ip address 10.10.11.254 255.255.255.0 int vlan 14 ip address 10.10.11.254 255.255.255.0 ! ip dhcp server ip dhcp pool network DHCP_POOL10 address 10.10.10.1 /24 default-router 10.10.10.254 dns-server 8.8.8.8 ! ip dhcp pool network DHCP_POOL11 address 10.10.11.1 /24 default-router 10.10.11.254 dns-server 8.8.8.8 ! ip dhcp pool network DHCP_POOL12 address 10.10.12.1 /24 default-router 10.10.12.254 dns-server 8.8.8.8 ! ip dhcp pool network DHCP_POOL13 address 10.10.13.1 /24 default-router 10.10.13.254 dns-server 8.8.8.8 ! ip dhcp pool network DHCP_POOL14 address 10.10.14.1 /24 default-router 10.10.14.254 dns-server 8.8.8.8 ! int range gi1-10 switchport mode access spanning-tree portfast ! int gi1 switchport access vlan 10 int gi2 switchport access vlan 11 int gi3 switchport access vlan 12 int gi4 switchport access vlan 13 int gi5 switchport access vlan 14
If you encounter any problems when inputing the above commands, plase share the output with us.
cheers,
Seb.
08-30-2017 01:58 AM
Thankyou
First I nees to enable DHCP server on this switch.
And do this configuration right?
08-30-2017 02:12 AM
Yes, enter the configuration commands in the sequence provided. If any errors are displayed, please share them here.
cheers,
Seb.
08-30-2017 02:55 AM
How can i enable DHCP on this switch.
I did that commands
But i can't enable dhcp server.
So ,??
08-30-2017 03:05 AM
Just to clarify, have you typed conf t to enter configuration mode?
If you are in configuration mode, when you type:
! ip dhcp server !
...what error message is displayed?
cheers,
Seb.
08-30-2017 03:17 AM
08-30-2017 04:03 AM
Please share the output from (a screenshot if fine):
sh run int gi1
sh mac address-table
sh ip dhcp pool network
sh ip dhcp binding
cheers,
Seb.
08-30-2017 05:12 AM
08-30-2017 06:32 AM
From your previous screenshot, it looked as if your PC was connected to Gi1. However from this second screenshot this doesn't appear to be the case. Is it still connected to Gi1?
What is the output of sh ip int
08-30-2017 08:24 PM
No.
First i connect system to gi1 and then change to automatic ip.
Now system cannot have a dhcp ip address what we give to switch.
System have a different ip address like 169 series.
And disconnected d connection and taking a screenshot.
08-31-2017 01:26 AM
Please supply the output of sh ip int
cheers,
Seb.
08-31-2017 02:32 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide