C613-50631-01 Rev A Command Reference for IE340 Series 873
AlliedWare Plus™ Operating System - Version 5.5.3-0.x
IP ADDRESSING AND PROTOCOL COMMANDS
IP
ADDRESS (IP ADDRESSING AND PROTOCOL)
ip address (IP Addressing and Protocol)
Overview This command sets a static IP address on 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]
Mode Interface Configuration for a VLAN interface or a local loopback interface.
Usage notes To set the primary IP address on the interface, specify only ip address
<ip-addr/prefix-length>. 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, instead of 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.
Examples To add the IP address 10.10.10.50/24 to the interface vlan2, use the following
commands:
awplus# configure terminal
awplus(config)# interface vlan2
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 vlan2
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.