Pages

Wednesday, January 12, 2011

How to configure IPv6 address in Solaris

Ipv4 use 32 bits, whereas IPv6 uses 128 bits. Ipv6 have autoconfiguration capability,so it is no more difficult to administer IPv6 addressing than it is with IPv4. You can use below procedure to configure IPv6 address. In this example you configure one network interface (e1000g) to use Ipv6.


  1. Create /etc/hostname6.<interface> file and reboot. This will make interface to configure with Ipv6.
   root@solaris-sunray # touch /etc/hostname6.e1000g0
  1. Configure Ipv6 address.
    root@solaris-sunray # ifconfig e1000g0 inet6 plumb up

  2. View your Ipv6 address.
    root@solaris-sunray # ifconfig -a
    lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
    inet 127.0.0.1 netmask ff000000
    e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
    inet 172.16.31.242 netmask fffffc00 broadcast 172.16.31.255
    ether 8:0:27:7e:12:82
    e1000g0: flags=2000841<UP,RUNNING,MULTICAST,IPv6> mtu 1500 index 2
    inet6 fe80::a00:27ff:fe7e:1282/10
    ether 8:0:27:7e:12:82

  3. Edit your /etc/inet/ipnodes to contain your Ipv6 address. And test your new ipaddress.
    root@solaris-sunray # vi /etc/inet/ipnodes
    ...
    fe80::a00:27ff:fe7e:1282 solaris-sunray6
    root@solaris-sunray # ping solaris-sunray6
    solaris-sunray6 is alive

No comments:

Post a Comment