One or more IB partition data links can be created on the top of the IB physical links with the same P_Key. The partition data links are used for data transfers.
# dladm create-part -l link -P key partition
Name of the physical data link.
Value of the partition key (P_key).
Name of the partition link and using the format P_key.link
The command assumes that the port is up, the P_Key is present on the port, and IPoIB is successfully initialized. If these three conditions do not exist, the command fails.
# dladm create-part -f -l link -P key name
In this case, the link state transitions to up when the partition key is added to the port and the port is activated.
# dladm show-part
# ipadm create-ip name # ipadm create-addr -a address [address-object]
Name of the partition link.
A valid IP address. By default, this address is assumed to be a static address.
A name that identifies the IP address in association with the IP interface. If address-object is not specified, the OS automatically assigns a name using the format ip-name/protocol
For more information about the ipadm command, see the ipadm(1M) man page.
This example show how to perform the following task:
Create partition links over the physical links ibp0 and ibp2
Configure an IPoIB interface is over ibp2.
The values of P_key are 0x8001 for ibp0 and 0x9000 for ibp2.
# dladm create-part -l ibp0 -P 0x8001 p8001.ibp0 # dladm create-part -l ibp0 -P 0x9000 p9000.ibp2 # dladm show-part LINK P_Key OVER STATE FLAGS p8000.ibp0 8001 ibp0 unknown ---- p9000.ibp2 9000 ibp2 unknown ---- # ipadm create-ip p9000.ibp2 # ipadm create-addr -a 1.1.1.1 p9000.ibp2/ipv4 # ipadm show-addr ADDROJB TYPE STATE ADDR p9000.ibp2/ipv4 static ok 1.1.1.1/24 # dladm show-part LINK P_Key OVER STATE FLAGS p8000.ibp0 8001 ibp0 unknown ---- p9000.ibp2 9000 ibp2 up ----