Use this command to set the source interface value for any given routing interface. If specified, the source interface value is used to get the relay agent IP address. The bootpdhcprelay source-interface command is used to specify an interface whose IP address is passed as a relay agent IP address. When the command is used in Global Config mode, the source interface is set globally. When the command is used in Interface Config mode, the source interface is set for the specified interface.
If the source interface is set in Interface Config mode, that value takes precedence over the globally set value.
| Default | source-interface is disabled globally and on all interfaces |
| Format | bootpdhcprelay source-interface interface { <u/s/p> | vlan <vlanId> | loopback <loopbackId>} |
| Mode |
|
Example: The following examples set the source interface globally.
1. (Routing)(Config)#bootpdhcprelay source-interface interface 0/30 2. (Routing)(Config)#bootpdhcprelay source-interface interface vlan 10 3. (Routing)(Config)#bootpdhcprelay source-interface interface loopback 2
Example: The following examples set the source interface for interface 0/26.
1. (Routing)(Interface 0/26)#bootpdhcprelay source-interface interface 0/30 2. (Routing)(Interface 0/26)#bootpdhcprelay source-interface interface vlan 10 3. (Routing)(Interface 0/26)#bootpdhcprelay source-interface interface loopback 2