1 person found this helpful
The way to force one particular IP address to be the source for outgoing connections (and UDP packets) is to mark the other addresses as deprecated.
With something like:
ipadm set-addrprop -p deprecated=on net0/connection2
Assuming net0/connection2 is the address object name, as shown in the ADDROBJ column of "ipadm show-addr" command. This is persistent across reboots - just set it once and it's done.
Per the ipadm man page:
The address should no longer used as a source address in new communications, but packets addressed to this address are processed as expected. Possible values are on or off. Default is off. This property is not supported on an address object of type dhcp.
The deprecated addresses will not be chosen for outgoing connections, but will operate normally otherwise - incoming traffic can target those addresses without a problem.
This worked perfectly. I knew there had to be a way to accomplish this.
Thanks a bunch! From both me and our SAP guy who can now do his install!