Powered by Blogger.

Assign IPv6 address in Windows XP from command line

Monday, May 4, 2009

Command:
netsh interface ipv6 add address interface=<> address=<> type=<> validlifetime=<> preferredlifetime=<> store=<>

interface
: Interface name or index
address: IPv6 address to add
type: unicast or anycast
validlifetime: lifetime over which the address is valid (integer | infinite), Default is infinite
preferredlifetime: lifetime over which the address is preferred (integer | infinite), Default is infinite
store: (active: change only lasts until next boot | persistent: change is persistent(Default))

Example:
netsh interface ipv6 add address "LAN" 2001::4 type=unicast

here "LAN" is the name of interface, 2001::4 is the IPv6 address

Note:
- to get information about windows commands, try: command ?

IPv6 addressing examples

Friday, May 1, 2009

IPv6 address

Prefix length (bits)

Description

Notes

::

128

unspecified

cf. 0.0.0.0 in IPv4

::1

128

loopback address

cf. 127.0.0.1 in IPv4

::

96

embedded IPv4

These are IPv4 addresses rendered as 128-bit values (the top 96 bits are zero). Also called "IPv4 compatible IPv6 address".

::ffff:0000:0000

96

IPv4 mapped IPv6 address

The lower 32 bits are the IPv4 address. For hosts which do not support IPv6.

fe80::

10

link-local

Unroutable addresses used for local autoconfiguration.

fec0::

10

site-local

Addresses used only within one local network, unroutable outside it. Cf. RFC 1918 addresses such as used in NAT.

ff::

8

multicast

2000::

3

global unicast

All global unicast addresses are assigned from this pool (starting with hex digit 2 or 3).

Ubuntu IPv6 Config

Suppose we want to keep dhcp configuration for IPv4 and want to use a static IP for IPv6

1. Open '/etc/network/interfaces'

sudo gedit /etc/network/interfaces

2. Edit it

auto eth0
iface eth0 inet dhcp

iface eth0 inet6 static
address 2001::1
netmask 64

3. Restart networking

sudo /etc/init.d/networking restart