ip source-interface

Syntax

ip source-interface {all | ubt} {interface|} [vrf] no ip source-interface {all | ubt} {interface|} [vrf]

Description

Sets a single source IP address for UBT. This ensures that all traffic sent by UBT has the same source IP address, regardless of how it egresses the switch.

This command provides two ways to set the source IP addresses: either by specifying a static IP address, or by using the address assigned to a switch interface. If you define both options, then the static IP address takes precedence.

Thenoform of this command deletes the single source IP address for UBT.

Command contexts

config

Parameters

all

When used no other parameters are required.

interface

Specifies the name of the interface from which UBT obtains its source IP address. The interface must have a valid IP address assigned to it. If the interface has both a primary and secondary IP address, the primary IP address is used.

指定用于UBT源IP地址。The IP address must be defined on the switch, and it must exist on the specified VRF, Default: default. Specify the address in IPv4 format (x.x.x.x), wherexis a decimal number from 0 to 255.

vrf

Specifies the name of the VRF from which UBT sets its source IP address.

Authority

Administrators or local user group members with execution rights for this command.

Examples

On the 6400 Switch Series, interface identification differs.

Setting interface1/1/7as the source address for UBT for VRFdefault:

switch(config)# ip source-interface ubt interface 1/1/7 vrf default

Deleting the configured source interface1/1/7as the source address for UBT for VRFdefault:

switch(config)# no ip source-interface ubt interface 1/1/7 vrf default

Specifying the static IP address1.1.1.1as the source address for UBT for VRFdefault:

switch(config)# ip source-interface ubt 1.1.1.1 vrf default

Deleting the configured ip address as the source address for UBT for VRFdefault:

switch(config)# no ip source-interface ubt 1.1.1.1 vrf default