default-router

Syntax

default-router没有default-router

描述

定义了四默认路由器for the current DHCPv4 server pool.

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

Command context

config-dhcp-server-pool

Parameters

Specifies the IP addresses of the default routers in IPv4 format (x.x.x.x), wherexis a decimal number from 0 to 255. You can remove leading zeros. For example, the address192.169.005.100becomes192.168.5.100. Separate addresses with a space. A maximum of four IP addresses can be defined.

Authority

Administrators or local user group members with execution rights for this command.

Example

Defines two default routers,10.0.0.1and10.0.0.10, for the server poolprimary-poolon VRFprimary.

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

Deletes the default router10.0.0.1from the server poolprimary-poolon VRFprimary.

switch(config)#dhcp-server vrf primaryswitch(config-dhcp-server)#pool primary-poolswitch(config-dhcp-server-pool)#没有default-router ip 10.0.0.1