Having a hard time wrapping my head around IPv6 here. A lot of the lingo seems targeted at enterprise-level IPv6 deployments, discussing link-local, site-local, global unicast, scopes, etc. Not a lot of solid information on really small networks, like home networks. I want to check my thinking and make sure I am getting the correct translations from IPv4-speak to IPv6-speak.
The first question is, what's the equivalent of RFC1918 for IPv6? Initial searches suggested there was no equivalent. Then I stumbled upon Unique Local Addresses (RFC4193), and that states that all ULA's should be assigned the prefix fc00
, followed by a 40-bit random number in the routing prefix. This random number is to "prevent collisions when two IPv6 networks are interconnected" -- again, another reference to an enterprise-level function.
If I have a small local LAN at home, numbered using 192.168.4.0/24
, what's my equivalent in IPv6's ULA scope? Assuming I will never, ever, tie that IPv6 address into the real internet (a router will NAT & firewall it), can I ignore the RFC to an extent and go with fc00::4:0/120
?
It also seems that any address in fc00::/7
are to be globally routable. Does this mean I'll need extra protections so my router would not automatically start advertising these private IPv6 addresses to the world?
Second question, what's this link-local thing? Reading suggests a default-assigned address in the fe80::/10
range that has the last 64bits of the address comprised of the interface's MAC address. Seems to be required, too, but I'm annoyed by the constant discussion of it in relation to enterprise networks.
Third question, what is scope id for? Seems to be yet another term tossed around in relation to enterprise networks, especially when interconnecting them, but almost no explanation on the smaller home network level.
Can I see a scope ID AND CIDR notation used together? I.e., fc00::4:0/120%6
, or are scope IDs only supposed to be applied to a single /128 IPv6 address?
The "Unique Local Address" is exactly what you're looking for.
fc00::/7
gives you enough bits that if you generate a random number instead of just picking one the chances of collision are small.The RFC that covers these ULAs (RFC4193) specifically states that these numbers should not be routed on the internet, though two peers may mutually agree to pass certain prefixes. Unless Comcast decides to unilaterally route these (unlikely in the extreme) you should have no worries about route advertisement.
Don't assume that. For instance, Comcast is currently doing IPv6 trials and they're passing out /64's to end-users (slide 5); not just the single address they're doing with IPv4. This means that their now-running IPv6 testers have the option of running with globally routeable addresses, but firewalled by their router, or do some kind of NAT with either link-local or unique-global-addresses.
However, running without any kind of address translation is not as insane as it sounds. Keep in mind a few points.
Running without a firewall is still just as insane as it sounds, though. Happily, you can do firewalling without having to NAT.
Think of it as able to reach anything in the current broadcast domain, and can not be routed. Like NetBEUI-of-old. In fact, if your home network is completely flat you can use these addresses instead of Unique Local Addresses.
It's used for two different things, which makes it annoying to describe:
Thing 1: Multicast. It defines how far the multicast packet is intended to reach.
Thing 2: (What I think you're referring to) This is used on a URI as a way of defining which interface to use. It's used primarily with link-local addresses. It should never be used in conjunction with CIDR notation, so the two syntaxes should never be combined.
You should not be using an address starting with fc00:
As explained in RFC 4193 it is a 7 bit prefix. Everything after those first 7 bits should be filled in as explained in the RFC. The method currently defined will always produce an address that starts wit fd. The 00 should be replaced with random numbers, and the next two groups of 16 bits should also be random making up a total of 40 bits.
There are lots of pages on the internet that can generate one for you. I just want to one of those sites to get an example of what such a prefix could look like fdae:a212:e94d::/48
As you pointed out, those addresses are global unicast, but they are not supposed to be globally routable. If your router does route them externally by default, it would be a good idea to configure filters to prevent that. Your upstream should be filtering as well, so they will only be routed outside your network if both of you have misconfigured routers.
all addresses starting with fe80: something are link-local. You can think of a "link" being all the computers connected to a switched network with no routers. So those ipv6 addresses can be used only for communication on that net.
The hardest part for us humans is probably that the machines now configure themselves. There is a protocol called Neighbour Discovery Protocol (NDP) that takes care of saying "hello" to all the other machines on the net.
If you don't want the machines to access internet then... just don't install a router.
You CAN set up ipv6 by hand or with a DHCP server, but you don't need to. That's one of the good news with ipv6.