109
EES4710BD 10 Slots L2/L3/L4 Chassis Switch
3.DHCP
Command Explanation
ip dhcp-client enable
no ip dhcp-client enable
Enables the switch to be a DHCP client and
obtain IP address and gateway address through
DHCP negotiation; the “no ip dhcp-client
enable” command disables the DHCP client
function.
5.3.2 Commands for Configuring Switch IP Addresses 5.3.2.1 ip address
Command: ip address <ip-address> <mask> [secondary]
no ip address [<ip-address> <mask>] [secondary]
Function: Sets the IP address and mask for the specified VLAN interface; the “no ip address <ip
address> <mask> [secondary]” command deletes the specified IP address setting.
Parameters: <ip-address> is the IP address in decimal format; <mask> is the subnet mask in
decimal format; [secondary] indicates the IP configured is a secondary IP address
Default: No IP address is configured upon switch shipment.
Command mode: VLAN Interface Mode
Usage Guide: A VLAN interface must be created first before the user can assign an IP address to
the switch.
Example: Set 10.1.128.1/24 as the IP address of VLAN1 interface.
Switch(Config)#interface vlan 1
Switch(Config-If-Vlan1)#ip address 10.1.128.1 255.255.255.0
Switch(Config-If-Vlan1)#exit
Switch(Config)#
Related command: ip bootp-client enable, ip dhcp-client enable
5.3.2.2 ip bootp-client enable
Command: ip bootp-client enable
no ip bootp-client enable
Function: Enable the switch to be a BootP client and obtain IP address and gateway address through
BootP negotiation; the “no ip bootp-client enable” command disables the BootP client function and
releases the IP address obtained in BootP .
Default: BootP client function is disabled by default.
Command mode: VLAN Interface Mode
Usage Guide: Obtaining IP address through BootP, Manual configuration and DHCP are mutually
exclusive, enabling any 2 methods for obtaining IP address is not allowed. Note: To obtain IP
address via DHCP, a DHCP server or a BootP server is required in the network.
Example: Get IP address through BootP.