Specifying the source IP address

Only one source IP address can be specified for each software application.

Do one of the following:

  • Use the following command to specify the source IP address for the specified software application.

    ip source-interface
    < radius | sflow | sntp | syslog | tacacs | telnet | tftp >
    < loopback <id> | vlan <vlan-id> | address <ip-address> >
  • Use the following command to specify the source IP address for all software applications.

    ip source-interface all
    < loopback <id> | vlan <vlan-id> | address <ip-address> >
  • loopback <id> :

    Specifies that the IP address of the loopback interface is used as the source IP address in outgoing packets. If the loopback interface has no IP address, then the application reverts to the default behavior. If more than one IP address is configured, then the lowest IP address is used.

  • vlan <vlan-id> :

    Specifies that the IP address of the indicated VLAN interface is used as the source IP address of outgoing packets. If the specified VLAN interface has no IP address configured, or is down, then the application reverts to the default behavior. If more than one IP address is configured, then the lowest IP address is used.

  • address <ip-address> :

    Specifies the IP address that should be used as the source IP address of outgoing packets. The IP address must be a valid IP address configured on one of the switch’s VLAN or loopback interfaces. If the interface is down, then the application reverts to the default behavior.