network
This command defines the network address and mask for the DHCP pool. This command is mandatory for assigning dhcp pool on the interface.
Syntax
network <first ip> <last ip> <mask>
Command |
Description |
---|---|
<first ip> |
First IP address in the range for this pool. Specifies a valid IPv4 address. IP addresses should be expressed in dotted decimal notation (for example, 10.1.2.3). |
<last ip> |
Last IP address in the range for this pool. Specifies a valid IPv4 address. IP addresses should be expressed in dotted decimal notation (for example, 10.1.2.3). |
<mask> |
Specifies the subnet mask that corresponds to a range of IP addresses. Subnet masks should be expressed in dotted decimal notation (for example, 255.255.255.0). |
Default
NA
Related Commands
This command is also available from the interface configuration sub-directory.
Command Mode
Privileged User
Example
This example enters ip dhcp pool on VLAN 5 and sets the Network addresses and mask for the pool.
(dhcp-conf-VLAN 5)#network 10.4.60.1 10.4.60.5 255.255.0.0