• no ip address command on page 133
• show ip address source command on page 134
• ip dhcp client lease command on page 134
• default ip dhcp client lease command on page 135
• no ip dhcp client lease command on page 135
• show ip dhcp client lease command on page 135
• renew dhcp command on page 136
• ip default-gateway command on page 136
• no ip default-gateway command on page 136
• show ip command on page 137
ip address command
The ip address command sets the IP address and subnet mask for the switch or a stack,
and selects BootP or DHCP as the boot mode for the next switch reboot.
The syntax for the ip address command is
ip address <A.B.C.D> [netmask <A.B.C.D>] source {bootp-always|bootp-
last-address|bootp-when-needed|configured-address|dhcp-always|dhcp-
last-address|dhcp-when-needed} [stack|switch|unit]
Run the ip address command in Global Configuration command mode.
If the stack or switch parameter is not specified, the system automatically modifies the stack
IP address when in stack mode and modifies the switch IP address when in standalone
mode.
The following table describes the parameters for the ip address command.
Table 48: ip address parameters
Parameters Description
A.B.C.D Specifies the IP address in dotted-decimal notation.
netmask Specifies the IP subnet mask for the stack or switch. The
netmask is optional.
source Specifies whether to use the BootP or DHCP server to assign
an IPv4 address for the management VLAN at the next switch
reboot. Values include:
•
bootp-always—always use the BootP server
• bootp-last-address—use the BootP server last used
• bootp-when-needed—use the BootP server when needed
System configuration using ACLI
132 Configuration — System April 2011