How does IPv6 work compared to IPv4?

laklek

Reputable
Jun 13, 2014
18
0
4,510
I have some questions about IPv4.

1. What's the Link-local IPv6 address?
2. What's neighbour discovery and what has it to do with the link-local address?
3. Websites resolve my IP as the IP in ipconfig, which is in the LAN-Subnet that my router reports and it's also the same as the WAN ipv6 prefix. But there is also something called an WAN IP-address (IPv6) which isn't in the LAN-Subnet nor has the same prefix the router reports. Any explanation? (img: http://prntscr.uom/c9k6sv )
[strike]4.[/strike] Does every computer in one network have a different IPv6 address and a different temporary IPv6 address? (SOLVED: Yes, every computer has it's own (or multiple per interface public IPv6, temporary IPv6's are optional but are just there for security.)
[strike]5.[/strike] What's IPv6 equivalent of a local IPv4 address? (SOLVED: https://en.wikipedia.org/wiki/Unique_local_address you can have local IP's but if you enable them noone would be able to reach you nor can you reach anyone.)
[strike]6.[/strike] How can I make a program listen to the IPv6 address? (so what's IPv6 equivalent of 0.0.0.0?) (SOLVED: testing confirms :: is the equivalent)

Thanks in advance.

EDIT: I would much more prefer one real answer to any of the above questions way more than just facts of networking.
 
Solution


IPv6 will probably never become a standard inside of an organization. The reason it was developed is because we are running out of public IPv4 addresses. However there is no company that I can think of that would be running out of private IP addresses...

laklek

Reputable
Jun 13, 2014
18
0
4,510


It's vacation for me at the moment; no school.
I would like to know this so I have an 'earlier than other people/organization' start when IPv6 becomes the new standard.
I'm a developer so knowing the very basics of how things works helps a lot.
 

USAFRet

Titan
Moderator


From a developer standpoint, no difference.
Your application talks to the hardware. The hardware figures it out.

But all that you asked is easily discoverable.
 

laklek

Reputable
Jun 13, 2014
18
0
4,510


I doubt I can let my application listen to only an IPv6 address instead of an IPv4 address (see quesiton 6)
 


Pretty much everything you are asking is on google/Wikipedia.

And your LAN-Subnet is not reported to any website, the website only knows your WAN IP
 

USAFRet

Titan
Moderator


Sure you can.
http://httpd.apache.org/docs/current/bind.html
---------------------
IPv6 addresses must be enclosed in square brackets, as in the following example:

Listen [2001 : db8::a00:20ff:fea7:ccea]:80
(remove spaces to get rid of the weird smiley)
----------------------
As said...easily discoverable.
 

laklek

Reputable
Jun 13, 2014
18
0
4,510


I meant without changing my app cause you said there was no difference.
I want IPv6's equivalent of 0.0.0.0 (or 0/0) to listen to ports.
I've searched it on google but I'm unable to verify if :: is a valid IP to listen on or not cause some results say it is and some say it isn't.
 

laklek

Reputable
Jun 13, 2014
18
0
4,510


I'm sorry for the confusing but like I said I thought you said I didn't need to change anything in my application. Just forget my latest posts about this developing things cause I just completed testing with ports and listening so 0.0.0.0 equivalent is ::
I've done research before this posts but couldn't find clear enough information.
I'm still doing research while this thread is up.
 


IPv6 will probably never become a standard inside of an organization. The reason it was developed is because we are running out of public IPv4 addresses. However there is no company that I can think of that would be running out of private IP addresses and will continue on IPv4 for the sake of simplicity.
 
Solution


I agree with this, at least I think it will be a long time before most organizations change over. Until then the ISP or an organization will need to translate IPV6 to IPV4 (with something like NAT64) so new websites coming online can be accessed.
 


That would still be easier than having to now learn 4 sets of 4 hex numbers. I mean remembering a lot of IPs we have at work is hard enough.

I think most decent firewalls already do NAT64 and translate IPv6 to IPv4.
 


How did you calculate how many grains of sand there are in the galaxy???? ;)