User Manual

Table Of Contents
Chapter 7
Layer 3 functions
7.1 IPv4 address management
7.1.1 Set IPv4 address
[Syntax]
ip address ip_address/mask [secondary] [label textline]
ip address ip_address netmask [secondary] [label textline]
no ip address ip_address/mask [secondary]
no ip address ip_address netmask [secondary]
no ip address
[Keyword]
label : Set label as IPv4 address
secondary : Set as the secondary address
[Parameter]
ip_address : A.B.C.D
IPv4 address
mask : <1-31>
Number of mask bits
netmask : A.B.C.D
Netmask in IPv4 address format
textline : Label (maximum 64 characters)
[Initial value]
None
[Input mode]
interface mode
[Description]
Specifies the IPv4 address and net mask for the VLAN interface.
For IPv4 addresses, one primary address and four secondary addresses can be set in one VLAN interface.
Up to 8 IPv4 addresses can be configured for the system overall.
A primary address must be set before configuring a secondary address.
If this command is executed with the "no" syntax, the specified IPv4 address is deleted. If no IPv4 address is specified, all IPv4
addresses are deleted.
You cannot delete a primary address while a secondary address is set.
If a label is specified, it is shown in the "IPv4 address" field by the show interface command.
[Note]
It is not possible to assign an IPv4 address of the same subnet to multiple interfaces.
[Example]
Specify 192.168.1.100 as the IP address for VLAN #1.
SWR2311P(config)#interface vlan1
SWR2311P(config-if)#ip address 192.168.1.100/24
7.1.2 Show IPv4 address
[Syntax]
show ip interface [interface] brief
Command Reference | Layer 3 functions | 213