subnet-mask

Last Updated : Nov 06, 2012 |

Sets the subnet mask of a DHCP pool. Use no subnet-mask to reset the subnet mask of the pool to default.

Syntax

[no] subnet-mask {mask | prefix-length}

Parameters

Parameter

Description

Possible Values

Default Value

mask

The subnet mask of the DHCP pool

255.0.0.0- 255.255.255.0

255.255.255.0

prefix-length

The prefix length of subnet mask

8-32

24

User level

read-write

Context

dhcp pool

Examples

To set the subnet-mask for DHCP pool 5 to 255.255.255.240:

Gxxx-001(DHCP 5)# subnet-mask 255.255.255.240

To set the subnet-mask for DHCP pool 5 to 255.255.255.240 by stating the subnet mask prefix:

Gxxx-001(DHCP 5)# subnet-mask 28