Step 1. Setting up hosts for IPv6

Follow this procedure for setting up hosts for IPv6.

  1. With root authority, configure your IPv6 settings by entering the following command:
    # autoconf6
  2. Rerun the following command:
    # netstat -ni
    Your results must look similar to the following output:
    Name  Mtu   Network     Address            Ipkts Ierrs    Opkts Oerrs  Coll
    en0   1500  link#2      0.6.29.4.55.ec      279679     0     2658     0     0
    en0   1500  9.3.230.64  9.3.230.117         279679     0     2658     0     0
    en0   1500  fe80::206:29ff:fe04:55ec        279679     0     2658     0     0
    sit0  1480  link#3      9.3.230.117              0     0        0     0     0
    sit0  1480  ::9.3.230.117                        0     0        0     0     0
    lo0   16896 link#1                            2343     0     2350     0     0
    lo0   16896 127         127.0.0.1             2343     0     2350     0     0
    lo0   16896 ::1                               2343     0     2350     0     0
  3. Use the chdev command to add the IPv6 address to the host interface. For this example, the low-order 64 bits are taken from low-order 64 bits of Link-Local IP generated by autoconf6 on interface en0.
    # chdev –l en0 –a netaddr6=’2001:2:3:4:206:29ff:fe04:55ec’ –a prefixlen=64
  4. Delete any existing prefix link routes for the following prefix:
    # route delete –inet6 2001:2:3:4::/64
  5. Configure prefix static route on the host to add reachability to the router, where fe80::206:29ff:fe04:66e is the router or a gateway that has connectivity to the router.
    # route add –inet6 –net 2001:2:3:4::/64 fe80::206:29ff:fe04:66e –static
    Note: If a change is needed for the default route, make sure autoconf6 is run with the –R option that prevents it from adding or overwriting any default routes on the node. Then, repeat steps 3-5.