C613-50066-01 REV A
Command Reference for IE200 Series Industrial Managed PoE+ Switches
551
AlliedWare Plus™ Operating System - Version 5.4.5I-0.x
IP A
DDRESSING
AND
P
ROTOCOL
C
OMMANDS
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.