Chapter
7
Layer 3 functions
7.1 IPv4 address management
7.1.1 Set IPv4 address
[Syntax]
ip
address
ip_address
/
mask
[
label
textline
]
ip
address
ip_address
netmask
[
label
textline
]
no
ip
address
[Keyword]
label
:
Set label as IPv4 address
[Parameter]
ip_address
:
A.B.C.D
IPv4 address
mask
:
<1-31>
Number of mask bits
netmask
:
A.B.C.D
Netmask in address format
textline
:
Label (maximum 64 characters)
[Initial value]
ip address 192.168.100.240/24 * VLAN #1 only
[Input mode]
interface mode
[Description]
Specifies the IPv4 address and net mask for the VLAN interface.
IPv4 addresses can be assigned to a maximum of 8 VLAN interfaces.
An IPv4 address can be specified for only one VLAN interface.
If this command is executed with the "no" syntax, the specified IPv4 address is deleted.
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
[Parameter]
interface
:
VLAN interface name
[Input mode]
unprivileged EXEC mode, priviledged EXEC mode
Command Reference | Layer 3 functions | 191