How can I assign static IPV6 address for AM1808 EVM running EZDSK v5.01? I see how to do this for IPv4 IP address, but not IPv6. Can someone help out here?
Thanks.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
If you are ok doing the ip configuration once you are up and running Linux, than you should be able to do it with the /etc/network/interfaces file as described at http://www.ghacks.net/2009/07/08/assign-ipv6-addresses-in-linux/. I am not sure there is a way to use a static IPv6 address from the bootargs value from U-Boot, the ip setting there seems to fall under NFS (the ip= value mentioned at http://www.kernel.org/doc/Documentation/kernel-parameters.txt points to http://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt) which has no mention of IPV6 support in the kernel doc. On the other hand if you enable IPv6 in the kernel you should be able to configure a static IP from within Linux as mentioned above, I am just not sure how to do it with NFS off hand.
Doctoring of the interfaces file does not seem to do the trick for me...and since this thread was never updated to "solved", I am curious as to what was the resolution? Ideally I would like to set a user defined parameter in u-boot with the IPv6 address and have a kernel module (somewhere) force the desired IP Address. Anyone able to shed more light on this? When I hook up my custom board to an IPv6 capabale switch that has DHCP turned off...I still get an IPv6 address assigned. (not sure how). If I manually run the command: ipconfig eth0 add <IPv6Address>/64 I can see a new Global scope IPv6 address...but how do I do this programmatically? I also do not want to have to have the end user modify the RamDisk everytime they want to change the IP Address (if possible).
OK - apparently I must have misconfigured the interfaces during my first several attempts as after trying it again...it now seems to work. So at least I have "a" method for statically assigning an IPv6 address (although not the preferred method). I would much rather not have to modify and re-flash the RamDisk everytime the customer wants to change the IP address. So my question now stands as - "Has anyone performed an IPv6 static assignment whereby reflashing the RamDisk is not necessary?"
Working example excerpt from interfaces file:
auto eth0
iface eth0 inet6 static
address 2002:a00:162:0:20c:29ff:fe57:d464
netmask 64
gateway 2002:a00:162:0:0:0:0:1