Configuring Partition Keys (PKEYs)
Configure partition keys on the Skyway appliance.
#### pkey_id = [
1, 7ffe] (hex)Configuring partition keys on the subnet manager.
ib
switch(config) # ib partition <partition name> pkey 0x<pkey_id> ibswitch(config) # ib partition <partition name> ipoib ibswitch(config) # ib partition <partition name> member ALL type fullExample:
ib
switch(config) # ib partition pkey_0x1 pkey0x1ibswitch(config) # ib partition pkey_0x1 ipoib ibswitch(config) # ib partition pkey_0x1 member ALL type fullConfigure PKEY on the InfiniBand host.
#### pkey_full = pkey_id (hex) +
8000(hex) echo"0x<pkey_full>"> /sys/class/net/ib<interface_number>/create_child ifconfig ib<interface_number>.< pkey_full> up ifconfig ib<interface_number>.< pkey_full> <Ib host pkey port ip> netmask <netmask> ip route add <eth subnet> via <Gw pkey port virtual ip> ip route add <gw eth subnet> via <Gw pkey port virtual ip>Example:
echo
"0x8001"> /sys/class/net/ib1/create_child ifconfig ib1.8001up ifconfig ib1.8001111.222.62.11netmask255.255.255.0ip route add2.2.2.0/24via111.222.62.1ip route add192.168.1.0/24via111.222.62.1WarningNote that this example shows how to configure PKEY that has an ID of 0x1 (0x8001 in hex === 8000+pkeyID). When configuring other PKEYs on the InfiniBand host, make sure to add 8000 to the PKEY ID.
Configure the Skyway appliance.
gateway (config) #
interfaceib port-channel1pkey 0x<pkey_id> gateway (configinterfaceib port-channel1pkey 0x<pkey_id>) # exit gateway (config) #interfaceib port-channel1pkey 0x<pkey_id> ip address <Gw pkey port ip> <netmask> gateway (config) #interfaceib port-channel1pkey 0x<pkey_id> virtual ip address <Gw pkey port virtual ip> <netmask> gateway (config) # configuration writeExample:
gateway (config) #
interfaceib port-channel1pkey0x1gateway (configinterfaceib port-channel1pkey0x1) # exit gateway (config) #interfaceib port-channel1pkey0x1ip address111.222.62.2255.255.255.0gateway (config) #interfaceib port-channel1pkey0x1virtual ip address111.222.62.1255.255.255.0gateway (config) # configuration writeAdd routes on the Ethernet host.
ip route add <pkey subnet>/<netmask> via <eth router port ip>
Example:
ip route add
111.222.62.0/24via <eth router port ip>Add routes on the Ethernet router.
ip route <pkey subnet>/<netmask> <gw eth pc ip>
Example:
ip route
111.222.62.0/24<gw eth pc>