default-router

Syntax

default-router <IPV4-ADDR-LIST>

no default-router <IPV4-ADDR-LIST>

Description

Defines up to four default routers for the current DHCPv4 server pool.

The no form of this command removes the specified default routers from the pool.

Command context

config-dhcp-server-pool

Parameters

<IPV4-ADDR-LIST>

Specifies the IP addresses of the default routers in IPv4 format (x.x.x.x), where x is a decimal number from 0 to 255. You can remove leading zeros. For example, the address 192.169.005.100 becomes 192.168.5.100. Separate addresses with a space. A maximum of four IP addresses can be defined.

Authority

Administrators

Example

Defines two default routers, 10.0.0.1 and 10.0.0.10, for the server pool primary-pool on VRF primary.

switch(config)# dhcp-server vrf primary
switch(config-dhcp-server)# pool primary-pool
switch(config-dhcp-server-pool)# default-router ip 10.0.0.1 10.0.0.10

Deletes the default router 10.0.0.1 from the server pool primary-pool on VRF primary.

switch(config)# dhcp-server vrf primary
switch(config-dhcp-server)# pool primary-pool
switch(config-dhcp-server-pool)# no default-router ip 10.0.0.1