C613-50170-01 Rev B
Command Reference for x510 Series
2447
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
D
YNAMIC
H
OST
C
ONFIGURATION
P
ROTOCOL
(DHCP) C
OMMANDS
IP
DHCP
-
CLIENT
DEFAULT
-
ROUTE
DISTANCE
ip dhcp-client default-route distance
Overview
Use this command to specify an alternative Administrative Distance (AD) for the
current default route (from DHCP) for an interface.
Use the
no
variant of this command to set the AD back to the default of 1.
Syntax
ip dhcp-client default-route distance [<
1-255
>]
no ip dhcp-client default-route distance
Default
1
Mode
Interface Configuration
Usage
DHCP client interfaces can automatically add a default route with an AD of 1 into
the IP Routing Information Base (RIB).
Any pre-existing default route(s) via alternative interfaces (configured with a
higher AD) will no longer be selected as the preferred forwarding path for traffic
when the DHCP based default route is added to the IP routing table.
This can be problematic if the DHCP client is operating via an interface that is only
intended to be used for back-up interface redundancy purposes, such as a VLAN
containing a single switchport, or a 4G cellular interface on an AR-Series Firewall.
Use this command to set the AD of the default route (via a specific DHCP client
interface) to a non-default (higher cost) value, ensuring any pre-existing default
route(s) via any other interface(s) continue to be selected as the preferred
forwarding path for network traffic.
When the command is used, the static default route is deleted from the RIB, the
distance value of the route is modified to the configured distance value, then it is
reinstalled into the RIB.
Examples
To configure vlan10 as a DHCP client and to set the AD for the default route added
by DHCP to 150, use the commands:
awplus#
configure terminal
awplus(config)#
interface vlan10
awplus(config-if)#
ip address dhcp
awplus(config-if)#
ip dhcp-client default-route distance 150
Parameter
Description
<1-255>
Administrative Distance (AD) from the range 1 though 255.