cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6662
Views
59
Helpful
36
Replies

300 series switch dhcp configuration

pharan.b
Level 1
Level 1

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  

2 Accepted Solutions

Accepted Solutions

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
!

View solution in original post

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.

 

 

View solution in original post

36 Replies 36

Hello,

page 293 of the attached user guide tells you how to enable the DHCP server feature:

https://www.cisco.com/c/dam/en/us/td/docs/switches/lan/csbms/sf30x_sg30x/administration_guide/78-19308-01.pdf

This is not working :(

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.

Thankyou 

First I nees to enable DHCP server on this switch.

And do this configuration right?

 

Yes, enter the configuration commands in the sequence provided. If any errors are displayed, please share them here.

 

cheers,

Seb.

How can i enable DHCP on this switch.

 

I did that commands

But i can't enable dhcp server. 

So ,??

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.

I don't receive any error messages.

But i didn't get a configure dhcp ip address in a particular system.

The screen shot are here.

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.

Sure 

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

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.

 

 

Please supply the output of sh ip int

 

cheers,

Seb.

Yap

Got it.

 

Review Cisco Networking for a $25 gift card