Wednesday, October 19, 2011

How to configure IPv6




Once you have enabled IPV6 , it will show in ifconfig entry as inet6 :


To configure IPV6 on Linux VM :



In

/etc/sysconfig/network

Add line :

NETWORKING_IPV6=yes
IPV6_DEFAULTGW= : fe80::200:ff:fe00:0/64


In :

/etc/sysconfig/network-scripts/ifcfg-eth0


DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
HWADDR=00:16:3E:76:D6:7D
IPADDR=192.168.122.20
NETMASK=255.255.255.128
IPV6INIT=yes
IPV6ADDR=fe80::216:4eff:fe76:d67d/64      #Primary IPv6 address (Optional)



Add Ipv6
ip addr add fe80::216:4eff:fe76:d67d/64 dev eth0

Remove IPv6
ip addr del 2010:AAA:1::100/64 dev eth0

Add ipv6 gateway
ip route add 2010:BBC:1::1 dev eth0

remove ipv6 gateway
ip route del 2010:BBC:1::1 dev eth0


To display ipv6 route
ip -6 route show


To Ping IPv6 address
ping6 -I eth0  fe80::216:4eff:fe76:d67d

No comments:

Post a Comment