Managing Devices in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

How to Create IB Partition Links

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.

  1. Become an administrator.
  2. Create new IB partition links.
    # dladm create-part -l link -P key partition
    link

    Name of the physical data link.

    key

    Value of the partition key (P_key).

    partition

    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.


    Note -  Even if the conditions do not exist, you can still create a partition link by using the –f option. Suppose that the partition key is not configured on the port or the port is marked as down. To create the partition link, type the following:
    # 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.


  3. Display the IB partition link information.
    # dladm show-part
  4. Plumb and assign an IP address to an IB partition link.
    # ipadm create-ip name
    # ipadm create-addr -a address [address-object]
    
    name

    Name of the partition link.

    address

    A valid IP address. By default, this address is assumed to be a static address.

    address-object

    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.

Example 3-13  Configuring a Partition Link

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     ----