C613-50170-01 Rev B
Command Reference for x510 Series
782
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
IP A
DDRESSING
AND
P
ROTOCOL
C
OMMANDS
IP
ADDRESS
(IP A
DDRESSING
AND
P
ROTOCOL
)
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
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.
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.