![]() | Command: ip address (Global Configuration) |
Configures the switch or stack address.
ip address [stack | switch ] {A.B.C.D} [A.B.C.D] [default-gateway {A.B.C.D}] [netmask {A.B.C.D}]
ip address netmask {A.B.C.D} [default-gateway {A.B.C.D}]
ip address source source {bootp-always | bootp-last-address | bootp-when-needed | configured-address | dhcp-always | dhcp-last-address | dhcp-when-needed}
ip address unit <1-8> {A.B.C.D}
default ip address
default ip address source
no ip address [stack] [switch] [unit <1-8>]
None
Global Configuration
| Parameter | Description |
|---|---|
|
A.B.C.D | Specifies the IP address or subnet mask. |
|
bootp-always | Always use the bootp server. |
|
bootp-last-address | Use the last time bootp server. |
|
bootp-when-needed | Use bootp server when needed. |
|
configured-address | Use a user-configured IP address. |
|
default-gateway {A.B.C.D} | Configures the default-gateway address. |
|
dhcp-always | Always use the DHCP server. |
|
dhcp-last-address | Use the last time DHCP server. |
|
dhcp-when-needed | Use DHCP client when needed. |
|
netmask {A.B.C.D} | Spcifies the subnet mask. |
|
source | Configures default BootP/DHCP settings. |
|
stack | Configures the address of the stack. |
|
switch | Configures the IP address of local unit. |
|
unit <1-8> {A.B.C.D} | Configures the IP address of another unit in a stack. |