Chapter 14 DHCP Commands
Ethernet Switch CLI Reference Guide
72
Table 43 dhcp relay Command Summary
COMMAND DESCRIPTION M P
show dhcp relay <vlan-id> Displays DHCP relay settings for the specified VLAN. E 3
dhcp relay <vlan-id> helper-
address <remote-dhcp-server1>
[<remote-dhcp-server2>]
[<remote-dhcp-server3>]
[option] [information]
Enables DHCP relay on the specified VLAN and sets the IP
address of up to 3 DHCP servers. Optionally, sets the Switch
to add relay agent information and system name.
Note: You have to configure the VLAN before you
configure a DHCP relay for the VLAN. You
have to disable dhcp smart-relay
before you can enable dhcp relay.
C13
no dhcp relay <vlan-id> Disables DHCP relay. C 13
no dhcp relay <vlan-id>
information
System name is not appended to option 82 information field. C 13
no dhcp relay <vlan-id> option Disables the relay agent information option 82. C 13
Table 44 dhcp relay-broadcast Command Summary
COMMAND DESCRIPTION M P
dhcp relay-broadcast The broadcast behavior of DHCP packets will not be
terminated by the Switch.
C13
no dhcp relay-broadcast The Switch terminates the broadcast behavior of DHCP
packets.
C13
Table 45 dhcp server Command Summary
COMMAND DESCRIPTION M P
dhcp server <vlan-id> starting-
address <ip-addr> <subnet-mask>
size-of-client-ip-pool <1-253>
Enables DHCP server for the specified VLAN and specifies
the TCP/IP configuration details to send to DHCP clients.
C13
dhcp server <vlan-id> starting-
address <ip-addr> <subnet-mask>
size-of-client-ip-pool <1-253>
[default-gateway <ip-addr>]
[primary-dns <ip-addr>]
[secondary-dns <ip-addr>]
Enables DHCP server for the specified VLAN and specifies
the TCP/IP configuration details to send to DHCP clients.
Including default gateway IP address and DNS server
information.
C13
no dhcp server <vlan-id> Disables DHCP server for the specified VLAN. C 13
no dhcp server <vlan-id>
default-gateway
Disables DHCP server default gateway settings. C 13
no dhcp server <vlan-id>
primary-dns
Disables DHCP primary DNS server settings. C 13
no dhcp server <vlan-id>
secondary-dns
Disables DHCP server secondary DNS settings. C 13
show dhcp server Displays DHCP server settings. E 13
show dhcp server <vlan-id> Displays DHCP server settings in a specified VLAN. E 13