542 Command Reference for x230 Series Edge Switches C613-50055-01 REV A
AlliedWare Plusâ„¢ Operating System - Version 5.4.5-0.x
IP ADDRESSING AND PROTOCOL COMMANDS
IP
ADDRESS
ip address
Overview This command sets a static IP address on an interface. To set the primary IP address
on the interface, specify only ip address<ip-address/m>. This overwrites any
configured primary IP address. To add additional IP addresses on this interface, use
the secondary parameter. You must configure a primary address on the interface
before configuring a secondary address.
NOTE: Use show running-config interface not show ip interface brief when you need
to view a secondary address configured on an interface. show ip interface brief will
only show the primary address not a secondary address for an interface.
The no variant of this command removes the IP address from the interface. You
cannot remove the primary address when a secondary address is present.
Syntax
ip address <ip-addr/prefix-length> [secondary] [label <label>]
no ip address <ip-addr/prefix-length> [secondary]
no ip address
Mode Interface Configuration for a VLAN interface or a local loopback interface.
Examples To add the primary IP address 10.10.10.50/24 to the interface vlan3, use the
following commands:
awplus# configure terminal
awplus(config)# interface vlan3
awplus(config-if)# ip address 10.10.10.50/24
To add the secondary IP address 10.10.11.50/24 to the same interface, use the
following commands:
awplus# configure terminal
awplus(config)# interface vlan3
awplus(config-if)# ip address 10.10.11.50/24 secondary
Parameter Description
<ip-addr/prefix-
length>
The IPv4 address and prefix length you are assigning to the
interface.
secondary Secondary IP address.
label Adds a user-defined description of the secondary IP address.
<label> A user-defined description of the secondary IP address. Valid
characters are any printable character and spaces.