Use this command to specify the source interface to be used in the Relay Agent packets sent to the DHCP server or other relay agent.
interface | Specifies the interface to be used as the source address in Relay Agent packets sent to the DHCP server. The interface can be a VLAN or loopback interface. |
If a source interface is not specified with this command, the default is the primary IP address of the VLAN interface that the DHCP client is connected to.
Configuration command, Global configuration.
Configuration command, Interface configuration.
This command allows you to specify the source IP address to be used in the Relay Agent packets sent to the DHCP server or other relay agent. This feature should be used in conjunction with the ip dhcp relay information option server-override or ip dhcp relay information option vpn commands, which cause the server identifier override (11) sub-option to be added to the Relay Agent DHCP packets sent to the DHCP server.
The following example:
System(su)->router Alpha-Group System(su-*ha-Group)->configure System(su-*ha-Group-config)->ip forward-protocol udp System(su-*ha-Group-config)->interface vlan.0.10 System(su-*ha-Group-config-intf-vlan.0.10)->ip helper-address 134.141.95.105 vrf Internet-Access System(su-*ha-Group-config-intf-vlan.0.10)->ip dhcp relay information option vpn System(su-*ha-Group-config-intf-vlan.0.10)->ip dhcp relay source-interface vlan.0.20 System(su-*ha-Group-config-intf-vlan.0.10)->exit