
60 Chapter 2 General CLI commands
212160-A
• “no ip default-gateway command” on page 62
• “show ip command” on page 63
ip address command
The ip address command sets the IP address and subnet mask for the switch or
a stack. The syntax for the
ip address command is:
ip address [stack|switch] <XXX.XXX.XXX.XXX> [netmask
<XXX.XXX.XXX.XXX>]
The ip address command is in the config command mode.
If you do not enter either the stack or switch parameter, the system automatically
modifies the stack IP address when in stack mode and modifies the switch IP
address when in standalone mode.
Table 13 describes the parameters and variables for the
ip address command.
Table 13 ip address command parameters and variables
Parameters and
variables
Description
stack|switch Sets the stack the IP address and netmask or the switch IP
address and netmask.
XXX.XXX.XXX.XXX Enter IP address in dotted decimal notation; netmask is optional.
netmask Set the IP subnet mask for the stack or switch.
Note: When you change the IP address or subnet mask, you may lose
connection to Telnet and the Web.
Komentarze do niniejszej Instrukcji