dhcp-gateway-list

Configures a gateway list when DHCP Assist is enabled on a Layer 2 switch.
Syntax
dhcp-gateway-list num ip-address
Parameters
num
Specifies the number of the gateway list.
ip-address
Specifies the gateway IP address.
Modes

Global configuration mode

Interface configuration mode

Usage Guidelines

Up to eight addresses can be defined for each gateway list in support of ports that are multi-homed. When multiple IP addresses are configured for a gateway list, the Layer 2 switch inserts the addresses into the discovery packet in a round-robin fashion. Up to 32 gateway lists can be defined for each Layer 2 switch.

Examples

The following commands configure a gateway list.

device(config)# dhcp-gateway-list 1 10.95.5.1
device(config)# dhcp-gateway-list 2 10.95.6.1
device(config)# dhcp-gateway-list 3 10.95.1.1 10.95.5.1
device(config)# interface ethernet 2
device(config-if-e1000-2)# dhcp-gateway-list 1
device(config-if-e1000-2)# interface ethernet 8
device(config-if-e1000-8)# dhcp-gateway-list 3
device(config-if-e1000-8)# interface ethernet 14
device(config-if-e1000-14)# dhcp-gateway-list 2