User Manual

If an IP address has not been set, this will be "unassigned."
Physical layer status
Data link layer status
If an interface is specified, information for that interface is shown. If the interface is omitted, information is shown for all
interfaces for which an IP address can be specified.
[Note]
An error occurs if the specified interface is one to which an IP address cannot be assigned.
[Example]
Shows the IP address of every VLAN interface.
SWP1>show ip interface brief
Interface IP-Address Status Protocol
vlan0.1 192.168.1.100/24 up up
vlan0.2 unassigned up down
6.1.3 Automatically set IP address by DHCP client
[Syntax]
ip address dhcp [hostname hostname]
no ip address
[Keyword]
hostname : Set host name of DHCP server
[Parameter]
hostname : Host name or IP address (A.B.C.D)
[Initial value]
ip address dhcp *VLAN #1 only
[Input mode]
interface mode
[Description]
Using the DHCP client, assigns the address granted by the DHCP server to the VLAN interface.
If the DHCP server is specified, the HostName option (option code 12) can be added to the Discover/Request message.
If an IP address has been obtained, you can execute the no ip address dhcp command to send a release message for the
obtained IP address to the DHCP server.
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 canceled.
If this command is executed with the "no" syntax, the DHCP client setting is deleted.
[Note]
The lease time requested from the DHCP server is fixed at 72 hours. However, the actual lease time will depend on the setting
of the DHCP server.
The no ip address command can also be used to cancel the ip address dhcp command.
If an IP address cannot be obtained from the DHCP server when this command is specified, an IPv4 link local address is
generated by the Auto IP function.
If an IP address is obtained from the DHCP server after the IPv4 link local address was generated, the IPv4 link local address is
discarded, and the IP address obtained from the DHCP server is used.
If an IPv4 address cannot be obtained from the DHCP server even by using this command, then an IPv4 link local address
(169.254.xxx.xxx/16) is automatically assigned only to VLAN interfaces for which the Auto IP function is enabled.
[Example]
Use the DHCP client to assign an IP address to VLAN #100.
SWP1(config)#interface vlan0.100
SWP1(config-if)#ip address dhcp
Command Reference | IPv4 | 59