
Chapter 6 Interfaces
6.2.2 DHCP Setting Commands
This table lists DHCP setting commands. DHCP is based on DHCP pools. Create a DHCP pool if you want to assign a static IP address to a MAC address or if you want to specify the starting IP address and pool size of a range of IP addresses that can be assigned to DHCP clients. There are different commands for each configuration. Afterwards, in either case, you have to bind the DHCP pool to the interface.
Table 14 interface Commands: DHCP Settings
COMMAND | DESCRIPTION |
show ip dhcp | Shows the DHCP extended option settings. |
show ip dhcp pool [profile_name] | Shows information about the specified DHCP pool |
| or about all DHCP pools. |
ip dhcp pool rename profile_name profile_name | Renames the specified DHCP pool from the first |
| profile_name to the second profile_name. |
[no] ip dhcp pool profile_name | Creates a DHCP pool if necessary and enters sub- |
| command mode. You can use the DHCP pool to |
| create a static entry or to set up a range of IP |
| addresses to assign dynamically. |
| About the |
| • If you use the host command, the NXC treats |
| this DHCP pool as a static DHCP entry. |
| • If you do not use the host command and use |
| the network command, the NXC treats this |
| DHCP pool as a pool of IP addresses. |
| • If you do not use the host command or the |
| network command, the DHCP pool is not |
| properly configured and cannot be bound to |
| any interface. |
| The no command removes the specified DHCP |
| pool. |
show | Shows information about the specified DHCP pool. |
| Use the following commands if you want to create |
| a static DHCP entry. If you do not use the host |
| command, the commands that are not in this |
| section have no effect, but you can still set them. |
|
|
[no] host ip | Specifies the static IP address the NXC should |
| assign. Use this command, along with |
| |
| entry. |
| Note: The IP address must be in the |
| same subnet as the interface to |
| which you plan to bind the DHCP |
| pool. |
| When this command is used, the NXC treats this |
| DHCP pool like a static entry, regardless of the |
| network setting. The no command clears this |
| field. |
[no] | Reserves the DHCP pool for the specified MAC |
| address. Use this command, along with host, to |
| create a static DHCP entry. The no command |
| clears this field. |
| 53 |
NXC CLI Reference Guide | |
|
|