IP Addressing and Protocol Commands
©2008 Allied Telesis Inc. All rights reserved.
Software Version 5.2.1
AlliedWare Plus
TM
Operating System Software Reference C613-50003-00 REV E
23.7
ip address IPADDR
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
. 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.
The
no
form removes the IP address from the interface. You cannot remove the primary
address when a secondary address is present.
Syntax
ip address <
ip-address
> [secondary [label <
label
>]]
no ip address <
ip-address
> [secondary]
no ip address
Mode
Interface mode
Examples
To add the primary IP address 10.10.10.50/24 to the interface vlan3, use the command:
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 command:
awplus(config-if)#
ip address 10.10.11.50/24 secondary
Related Commands
show ip interface brief
Parameter
Description
<ip-address>
The IPv4 address and prefix length you are assigning to the interface. The
address is specified using dotted decimal notation using only the following
format:
A.B.C.D/P
The IPv4 address followed by a slash, then the prefix
length.
secondary
Adds the IP address as a new IP address to the interface. You must specify
this when adding or deleting a 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.