Ip Dhcp-Client Default-Route Distance - Allied Telesis x510-28GTX Command Reference Manual

Stackable gigabit edge switches x510 series
Table of Contents

Advertisement

D
H
C
YNAMIC
OST
ONFIGURATION
-
-
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#
awplus(config)#
awplus(config-if)#
awplus(config-if)#
C613-50170-01 Rev B
P
(DHCP) C
ROTOCOL
OMMANDS
Parameter
Description
<1-255>
Administrative Distance (AD) from the range 1 though 255.
configure terminal
interface vlan10
Command Reference for x510 Series
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
ip address dhcp
ip dhcp-client default-route distance 150
2447

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents