Users Guide

Table Of Contents
Loopback 0 is used as the relay source-interface for the default VRF clients. The server-override option is enabled on the
default VRF.
Configure the DHCP relay agent globally to insert the server ID override suboption (suboption-11) and link selection suboption
(suboption-5) into the relay agent information option of the DHCP packet.
The DHCP client sends a broadcast DHCP request on the network.
The DHCP relay agent inserts a server ID override suboption and link selection suboption to its relay agent information option
in the DHCP packet. The link selection suboption contains the incoming interface IP address, 1.1.1.1. In this case, as the
interface IP address is present, link selection uses the 1.1.1.x subnet. If the interface IP address is not present, the virtual
gateway address is used in VxLAN scenarios. The server-override option carries the virtual anycast gateway IP address. In case
the virtual gateway IP address is not configured, the server-override option does not carry any value.
Table 38. Source-interface values
Field/suboption Value
giaddr (source-interface) 3.1.1.1
link selection (suboption-5) 1.1.1.1
server-override (suboption-11) 1.1.1.254
As the source interface is explicitly configured on the Loopback 0 interface, the relay agent uses that address as the gateway IP
address (giaddr) for messages relayed to the DHCP server, 3.1.1.1.
DHCP Relay Agent
You must configure the following settings at the DHCP relay agent level:
Global configuration
ip dhcp-relay server-override
ip dhcp-relay link-selection
VRF configuration for source-interface
ip vrf default
ip dhcp-relay source-interface loopback 0
Interface configuration
!
interface loopback0
no shutdown
ip address 3.1.1.1/32
!
interface virtual-network 100
no shutdown
ip address 1.1.1.1/24
ip helper-address 20.1.1.2
ip virtual-router address 1.1.1.254
!
262
System management