[Discuss] IPv6 question(s)
BCLUG
info at bclug.ca
Mon Oct 16 16:58:34 PDT 2023
Craig Miller wrote on 2023-10-16 16:48:
> Typically a /64 is assigned to a VPS, which will give you more IP
> addresses than you need.
I requested "a couple, or a /64, what ever is easiest for you guys", so
I guess I got what I asked for.
Having 5 * /112 should give me quite a few? Or just 5?
When I run `ip addr show` I get:
inet6 2607:5300:203:b716::1:2/112 scope global
valid_lft forever preferred_lft forever
inet6 2607:5300:203:b716::1:3/112 scope global
valid_lft forever preferred_lft forever
inet6 2607:5300:203:b716::1:4/112 scope global
valid_lft forever preferred_lft forever
inet6 2607:5300:203:b716::1:5/112 scope global
valid_lft forever preferred_lft forever
inet6 2607:5300:203:b716::1:6/112 scope global
valid_lft forever preferred_lft forever
Is that somehow equivalent to a /64, being contiguous?
Sorry, my brain isn't up to trying to calculate this myself at the moment...
> To answer your question, since there are 128 bits in an IPv6 address,
> 128-112=16 or 2^16 hosts in a /112 block.
That's... 65536 addresses * 5 = 327680 addresses. "!"
And, how would I extract, say, 1 single IPv6 from
2607:5300:203:b716::1:6/112 -- what would that even look like?
I can ping the bare 2607:5300:203:b716::1:6 from another host, which
leads me to think it's a single IP, but I'm unclear.
> I hope this helps,
Very informative, thanks!
rb
More information about the Discuss
mailing list