C613-50170-01 Rev B
Command Reference for x510 Series
2492
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
D
YNAMIC
H
OST
C
ONFIGURATION
P
ROTOCOL
(DHCP) C
OMMANDS
SUBNET
-
MASK
subnet-mask
Overview
This command sets the subnet mask option for a DHCP address pool you are
configuring. Use this command to specify the client’s subnet mask as defined in
RFC 950. This sets the subnet details using the pre-defined option 1. Note that if
you create a user-defined option 1 using the
command, then you will
override any settings created with this command. If you do not specify a subnet
mask using this command, then the pool’s network mask (specified using the
command) is applied.
The
no
variant of this command removes a subnet mask option from a DHCP pool.
The pool reverts to using the pool’s network mask.
Syntax
subnet-mask <
mask
>
no subnet-mask
Mode
DHCP Configuration
Examples
To set the subnet mask option to
255.255.255.0
for DHCP pool
P2
, use the
commands:
awplus#
configure terminal
awplus(config)#
ip dhcp pool P2
awplus(dhcp-config)#
subnet-mask 255.255.255.0
To remove the subnet mask option from DHCP pool
P2
, use the commands:
awplus#
configure terminal
awplus(config)#
ip dhcp pool P2
awplus(dhcp-config)#
no subnet-mask
Related
Commands
Parameter
Description
<mask>
Valid IPv4 subnet mask, in dotted decimal notation.