C613-50170-01 Rev B
Command Reference for x510 Series
2436
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
D
YNAMIC
H
OST
C
ONFIGURATION
P
ROTOCOL
(DHCP) C
OMMANDS
DEFAULT
-
ROUTER
default-router
Overview
This command adds a default router to the DHCP address pool you are configuring.
You can use this command multiple times to create a list of default routers on the
client’s subnet. This sets the router details using the pre-defined option 3. Note
that if you add a user-defined option 3 using the
option
command, then you will
override any settings created with this command.
The
no
variant of this command removes either the specified default router, or all
default routers from the DHCP pool.
Syntax
default-router <
ip-address
>
no default-router [<
ip-address
>]
Mode
DHCP Configuration
Examples
To add a router with an IP address 192.168.1.2 to the DHCP pool named P2, use the
following commands:
awplus#
configure terminal
awplus(config)#
ip dhcp pool P2
awplus(dhcp-config)#
default-router 192.168.1.2
To remove a router with an IP address 192.168.1.2 to the DHCP pool named P2, use
the following commands:
awplus#
configure terminal
awplus(config)#
ip dhcp pool P2
awplus(dhcp-config)#
no default-router 192.168.1.2
To remove all routers from the DHCP pool named P2, use the following commands:
awplus#
configure terminal
awplus(config)#
ip dhcp pool P2
awplus(dhcp-config)#
no default-router
Parameter
Description
<
ip-address
>
IPv4 address of the default router, in dotted decimal notation.