changing subnet ID
Question with regard to changing the subnet prefix in OpenSM.
We want to uniquely identify individual subnets via changing the subnet prefix in OpenSM:
/etc/ofa/opensm-ib0.conf:subnet_prefix 0xfe80000000000000
to something like
/etc/ofa/opensm-ib0.conf:subnet_prefix 0xfe80000000000100
Then an application can make some sense of what ib subnets it has access to, particularly on multi-homed or multi interfaced hosts that can be on any combination of ib subnets.
The RFC on ipv6 addressing (http://tools.ietf.org/html/rfc4291#section-2.5.6) says those bits should be 0. I'm unclear if FE80/10 or FE80:0:0:0/64 is link local.
Does anyone know if this will break things or a better way to do this, and keep the host address part private (not unique) between subnets? I suppose it could break routing ::))
host A - multi if on
ib0 - 0xfe80000000000000
ib1 - 0xfe80000000000001
host B - multi if on
ib0 - 0xfe80000000000001
ib1 - 0xfe80000000000000
host C - multi if on
ib0 - 0xfe80000000000100
ib1 - 0xfe80000000000001
host D - multi if on
ib0 - 0xfe80000000000100
ib1 - 0xfe80000000000001
host E - multi homed and multi if on
ib0 - 0xfe80000000000000
ib1 - 0xfe80000000000001
ib2 - 0xfe80000000000100
ib3 - 0xfe80000000000100
An application that spans all 5 hosts wants to know which hosts it can *expect* to connect to over what interfaces, without actually making the connection.
909
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 4 lines · Bob Ciotti
Question with regard to changing the subnet prefix in OpenSM.
We want to uniquely identify individual subnets via changing the subnet prefix in OpenSM:
I highly recommend assigning a uniqe GID prefix to all subnets. eg the ibtool program will use the GID prefix to identify the proper HCA port to use, which in of itself makes it worth doing..
You should not use FE80::/10 as a prefix.
In IB all prefixes are /64s. I recommend generating a ULA for your site and using that. See
http://en.wikipedia.org/wiki/Unique_local_address
This bit of python shows how to create the random address for your site:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
import os
"fd"+os.urandom(40//8).encode("hex")+"0000"
'fd0b96859d2b0000'
(aka fd0b:9685:9d2b:0000::/64)
The lower 16 bits of the ULA can be incremented and assigned to each of your site's subnets. Generate a new ULA if you run out.
This will work well with future IB routing specifications and allow a hierarchical routing scheme where all subnets in your site can be collapsed to a single /48 address for off-site access.
Quoted 3 lines
The RFC on ipv6 addressing
(http://tools.ietf.org/html/rfc4291#section-2.5.6) says those bits should be 0. I'm unclear if FE80/10 or FE80:0:0:0/64 is link local.
In IPv6 FE80::/10 is link local, technically in IB all prefixes are /64 so it is FE80::/64.
Signature · 6 lines
Jason Gunthorpe <jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org> (780)4406067x832 Chief Technology Officer, Obsidian Research Corp Edmonton, Canada -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html