cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

632
Views
0
Helpful
3
Replies
Highlighted
Beginner

DHCP Issue on 3560 Switch

Hi all,

I'm aiming to achieve something so simple I cannot believe it isn't working already!

Essentially I have a 24 port 3560 switch in our company DMZ. All ports on the switch are in VLAN98 (DMZ VLAN). A few servers with static IPs in the relevant range (192.168.98.0/24) are currently connected to the switch and work just fine.

I now want to create a DHCP pool on this switch as it is going to provide IP addresses for hosts connecting to public WiFi in the building.

The pool is as follows:

Start Address: 192.168.98.192

End Address: 192.168.98.254

x2 excluded addresses: 192.168.98.198 & 192.168.98.199

Default gateway: 192.168.98.1

Granted the address block is a little odd but I needed to grab the end of the subnet range in a way that would be easy to summarise the IP addresses for the firewall ACL (wanted to use 192.168.98.200-254 but 192.168.98.192 was the closest summary for that)

My switch config looks as attached - I have used Cisco documentation to do it but my connected client is not getting an IP address and the "debug dhcp" command has resulted in no output so far.

It's gotta be something silly but I cant see what. Any help greatly appreciated.

(The client is plugged into fa0/2 - all other unused ports are in the shutdown state)

Everyone's tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
Rising star

DHCP Issue on 3560 Switch

that won't work. You pool must be a /24 if it's a /24

ip dhcp excluded-address 192.168.98.1 192.168.98.192

ip dhcp excluded-address 192.168.98.198 192.168.98.199

!

ip dhcp pool DMZ_Pool

   network 192.168.98.0 255.255.255.0

   default-router 192.168.98.1

   lease 30

3 REPLIES 3
Rising star

DHCP Issue on 3560 Switch

that won't work. You pool must be a /24 if it's a /24

ip dhcp excluded-address 192.168.98.1 192.168.98.192

ip dhcp excluded-address 192.168.98.198 192.168.98.199

!

ip dhcp pool DMZ_Pool

   network 192.168.98.0 255.255.255.0

   default-router 192.168.98.1

   lease 30

Beginner

DHCP Issue on 3560 Switch

Just realised the pool is a bit backwards so config has changed a bit.

Have opted to have the whole 192.168.98.0/24 subnet in the pool and have excluded 192.168.98.1-192.168.98.199 as below:

no ip dhcp use vrf connected

ip dhcp excluded-address 192.168.98.1 192.168.98.199

!

ip dhcp pool DMZ_Pool

   network 192.168.98.0 255.255.255.0

   default-router 192.168.98.1

   lease 30

Beginner

DHCP Issue on 3560 Switch

Cheers Roman - we must have been typing in sync!

CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards