C
HAPTER
10
| IP Commands
– 214 –
IPv6 Address : ::192.168.2.10
IPv6 Prefix : 96
IPv6 Router : ::
IPv6 VLAN ID : 1
SNTP Server :
IPv6 SNTP Server : ::
Active Configuration:
IP Address : 192.168.2.10
IP Mask : 255.255.255.0
IP Router : 0.0.0.0
DNS Server : 0.0.0.0
SNTP Server :
IP>
ip dhcp This command displays or sets the DHCP client mode.
SYNTAX
ip dhcp [enable | disable]
enable - Enables or renews the switches IP address through DHCP.
disable - Disables DHCP client mode.
DEFAULT SETTING
Enabled
COMMAND USAGE
N
OTE
:
An IPv4 address for this switch is obtained via DHCP by default. If
the switch does not receive a response from a DHCP server, it will default
to the IP address 192.168.2.10 and subnet mask 255.255.255.0.
◆ This switch supports both IP Version 4 and Version 6, and can be
managed simultaneously through either of these address types. You
can manually configure a specific IPv4 or IPv6 address or direct the
switch to obtain an IPv4 address from a DHCP server when it is
powered on.
◆ The IPv4 address for the switch is obtained via DHCP by default for
VLAN 1. To manually configure an address, you need to change the
switch's default settings to values that are compatible with your
network using the ip setup command (page 215). You may also need to
a establish a default gateway between the switch and management
stations that exist on another network segment using the ip setup
command.
◆ If DHCP is enabled, the system will immediately start broadcasting
service requests. Requests will be broadcast periodically by this device
in an effort to learn its IP address. (BOOTP and DHCP values can
include the IP address, default gateway, and subnet mask). If the
switch does not receive a response from a DHCP server, it will default to
the IP address 192.168.2.10 and subnet mask 255.255.255.0.