barnold Posted July 1, 2009 Share Posted July 1, 2009 Hi,Is there a way to hard-code an IPv6 address from the command line on a server 2K3 or XP system? In Server 2k8 and Vista you can do it via the GUI but in 2K3 and XP the properties button for TCP IPv6 is grayed out, so I think I have to do it from the command line.I'm working in an enterprise network.Both the IPv4 and IPv6 addresses are set to DHCPHere are the IPv6 addresses on my system: IP Address. . . . . . . . . . . . : 2002:c023:9c17:51a:bc51:a6:a34b:a8df IP Address. . . . . . . . . . . . : 2002:c023:9c17:51a:609e:1621:65cc:d20d IP Address. . . . . . . . . . . . : 2002:c023:9c17:51a:216:35ff:feaf:16b0 IP Address. . . . . . . . . . . . : fe80::216:35ff:feaf:16b0%7I ran the command:netsh interface ipv6 set address "Local Area Connection" 2002:c023:9c17:51a:bc51:a6:a34b:a8df and the message, "OK" is returned which leads me to believe that something worked, but did this command set that IP static? How can I confirm that?When I run that same command on the other two IP addresses (ending in d202 and 16b0) I get the message: "A device attached to the system is not functioning"Side question: Why do I have so many IPv6 addresses? I know the fe80 one is the link local address, but why the three 2002.. addresses?Thanks!brian Link to comment Share on other sites More sharing options...
beats Posted July 1, 2009 Share Posted July 1, 2009 (edited) Correct, there is no graphical configuration of IPv6 settings, the command to add an address is indeed:“add address [interface=]<string> [address=]<IPv6 Adress>”For example: add address interface="Local Area Connection" 2002:c023:9c17:51a:bc51:a6:a34b:a8df::1This should "hardcode" it. Edit: More information can be found on the Technet ipv6 pages. Edited July 1, 2009 by beats Link to comment Share on other sites More sharing options...
barnold Posted July 1, 2009 Author Share Posted July 1, 2009 Thanks for the prompt response.In your example you added "::1" to the end of the IP address (2002:c023:9c17:51a:bc51:a6:a34b:a8df::1)Do I need to add the "::1" as well?Is there any way to confirm that the address is set statically now?Thanks again!Correct, there is no graphical configuration of IPv6 settings, the command to add an address is indeed:“add address [interface=]<string> [address=]<IPv6 Adress>”For example: add address interface="Local Area Connection" 2002:c023:9c17:51a:bc51:a6:a34b:a8df::1This should "hardcode" it. Edit: More information can be found on the Technet ipv6 pages. Link to comment Share on other sites More sharing options...
eyeball Posted July 1, 2009 Share Posted July 1, 2009 (edited) the ::1 means that any leading digits were 0'sfor example the link local address Fe80::1 is the same as FE80:0:0:0:0:0:0:0:0:0:0:0:0:0:0:1 !! (I know which one i would rather type ) Edited July 1, 2009 by eyeball Link to comment Share on other sites More sharing options...
barnold Posted July 1, 2009 Author Share Posted July 1, 2009 Great - thanks for the explanattion.I'll take your word(s) that the IP is now set statically but is there any command I can run to verify that it is indeed hard-coded? Also, do you know what these additional IP addresses are?IP Address. . . . . . . . . . . . : 2002:c023:9c17:51a:609e:1621:65cc:d20dIP Address. . . . . . . . . . . . : 2002:c023:9c17:51a:216:35ff:feaf:16b0If I run "netsh interface ipv6 set address "Local Area Connection" 2002:c023:9c17:51a:609e:1621:65cc:d20d "I get the error: A device attached to the system is not functioning.What are these addresses for? I can ping them. But the host only has one nic. thanks!brian Link to comment Share on other sites More sharing options...
eyeball Posted July 3, 2009 Share Posted July 3, 2009 run an ipconfig /all that will tell you if you are being assigned that address by DHCP or not.The additional 2002:x addresses are global unicast addresses if im not mistaken, how do you have them? does your ISP provide IPv6 connectivity?Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now