DHCP Server netmask. How to define?

Reply
Highlighted
L3 Networker

DHCP Server netmask. How to define?

Working with the built-in DHCP server on a PA200. Running PanOS 5.0.4

Eth1/3 has the address of 172.168.1.1/16

I have devices with static IPS in the 172.168.1.0/24 range.

I'd like to have the clients in the 172.168.2.0/24 range so I'll need the netmask to be 255.255.0.0, however, there's no way to set that (that I can see) on the PAN.

Setting the DHCP range to 172.168.2.1-172.168.2.254 results in a netmask of 255.255.255.0 on the client. This breaks all connectivity as the gateway is still 172.168.1.1

I've tried setting the range to 172.168.1.250-172.168.2.254 (forcing the netmask to be different for it to work) and still the client gets a 255.255.255.0 netmask.

I looked at the CLI manual and can't find any useful information there.

Does DCHP only hand out a netmask of 255.255.255.0 no matter what?

Tags (1)

Accepted Solutions
Highlighted
L4 Transporter

OK I just confirmed that we are doing DHCP with a /23 subnet, and our clients ARE getting the correct subnet mask via DHCP (255.255.254.0). Maybe PA doesn't parse the /16 right?

There's a bug with PA DHCP by the way, where the built in PA DHCP server doesn't NACK a client if the client requests an old IP... make SURE your DHCP client is doing the DORA process (confirm it via Wireshark if you have to even).

The bug's supposed to be fixed in 4.1.13

View solution in original post


All Replies
Highlighted
L4 Transporter

Could you set the IP space to the /16 you want, and then define specific reservations for the IP space you already have allocated?

Highlighted
L3 Networker

Thanks for the link. It is helpful.

I need an accessible network range of 172.168.1.1-172.168.2.254 (/22 allows 172.168.0.0-172.168.3.254, correct?)

I need DHCP leases in the range of 172.168.2.1.-172.168.2.254 (easy enough to assign)

How do I tell the the DHCP server to give out a netmask besides 255.255.255.0?

Highlighted
L3 Networker

Assigning a /16 DHCP pool still results in a 255.255.255.0 netmask

Highlighted
L4 Transporter

If that's the case then this sounds like a bug to me... in theory the CIDR notation on the pool assignment should be parsed and the PA should 'figure out' the netmask to dole out to client.

Just my two cents though.

Highlighted
L4 Transporter

In-house here we have a PA doing DHCP that crosses a subnet boundary just like you're trying to set up... let me take a look at what netmask the clients are getting from our PA as well

Highlighted
L4 Transporter

OK I just confirmed that we are doing DHCP with a /23 subnet, and our clients ARE getting the correct subnet mask via DHCP (255.255.254.0). Maybe PA doesn't parse the /16 right?

There's a bug with PA DHCP by the way, where the built in PA DHCP server doesn't NACK a client if the client requests an old IP... make SURE your DHCP client is doing the DORA process (confirm it via Wireshark if you have to even).

The bug's supposed to be fixed in 4.1.13

View solution in original post

Highlighted
L3 Networker

Stuck in 172.168.1.0/23 with a reserved address of 172.168.1.1 and client is still getting a 255.255.255.0 netmask.

I thought it odd that it didn't do what I was expecting, but presumed that I was missing something.

Thanks very much for your assistance!

Are you running PANOS 4.1? I've got 5.0.4 on mine.

Highlighted
L4 Transporter

I'm running 4.1 right now... we're taking a "wait and see" approach on 5.0 right now. You might have found a bug in 5.0's DHCP implementation possibly....

Highlighted
L3 Networker

Ours isn't in service yet, so we're going with the latest and 'greatest'

I'll ping support and see what they say.

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!