default-router (dhcpv4-pool-config)

Configures a default router or gateway IP address for the network pool

After a DHCP client has booted, the client begins sending packets to its default router. Set the IP address of one or a group of routers the controller uses to map host names into IP addresses available to DHCP supported clients. Up to 8 default router IP addresses are supported.

Supported on the following devices:

Syntax

default-router [<IP>|<HOST-ALIAS-NAME>] {<IP1>|<HOST-ALIAS-NAME1>}

Parameters

default-router [<IP>|<HOST-ALIAS-NAME>] {<IP1>|<HOST-ALIAS-NAME1>}

[<IP>|<HOST-ALIAS- NAME>]

Configures the primary default router, using one of the following options:

  • <IP> – Specifies the primary default router‘s IP address

  • <HOST-ALIAS-NAME> – Specifies a host alias, mapped to the primary default router‘s IP address. The host alias should be existing and configured.

{<IP1>|<HOST-ALIAS- NAME1>}

Optional. Configures the secondary default router, using one of the following options:

  • <IP1> – Specifies the secondary default router‘s IP address

  • <HOST-ALIAS-NAME1> – Specifies a host alias, mapped to the secondary default router‘s IP address. If the primary default router is unavailable, the secondary router is used.

Note: A network host alias maps a name to a single network host. For example, ‘alias host $HOST 1.1.1.100‘. In this example the host alias is ‘$HOST‘ and it maps to a single host ‘1.1.1.100‘. For more information, see alias.
Note: A maximum of 8 default routers can be configured..

Usage Guidelines

The IP address of the router should be on the same subnet as the client subnet.

Examples

nx9500-6C8809(config-dhcp-policy-test-pool-testPool)#default-router 192.168.13.8 192.168.13.9
nx9500-6C8809(config-dhcp-policy-test-pool-testPool)#show context
 dhcp-pool testPool
  address 192.168.13.4 class dhcpclass1
  ddns server 192.168.13.9
  ddns domainname WID
  ddns multiple-user-class
  bootfile test.txt
  default-router 192.168.13.8 192.168.13.9
nx9500-6C8809(config-dhcp-policy-test-pool-testPool)#

Related Commands

no

Removes the default router settings