User Manual

Chapter 6
IPv4
6.1 IPv4 address management
6.1.1 Set IP address
[Syntax]
ip address ip_address/mask [label textline]
no ip address
[Keyword]
label : Set label as IP address
[Parameter]
ip_address : A.B.C.D
IP address
mask : <1-31>
Number of mask bits
textline : Label (maximum 64 characters)
[Initial value]
no ip address
[Input mode]
interface mode
[Description]
Specifies the IP address and net mask for the VLAN interface.
An IP address can be specified for only one VLAN interface.
If the ip address or ip address dhcp command has already been specified for a certain VLAN interface, and you then specify
the ip address or ip address dhcp command for a different VLAN interface, the old setting is automatically deleted.
If this command is executed with the "no" syntax, the specified IP address is deleted.
If a label is specified, it is shown in the "IPv4 address" field by the show interface command.
[Example]
Specify 192.168.1.100 as the IP address for VLAN #1.
SWP1(config)#interface vlan0.1
SWP1(config-if)#ip address 192.168.1.100/24
6.1.2 Show IP address
[Syntax]
show ip interface [interface] brief
[Parameter]
interface : VLAN interface name
Interface to show
[Input mode]
unprivileged EXEC mode, priviledged EXEC mode
[Description]
Shows the IP address of the interface.
IP address
If the IP address was set automatically by DHCP, "(DHCP)" is appended following the IP address.
58 | Command Reference | IPv4