Append following line in /etc/sysconfig/network :
NETWORKING_IPV6=yes
2.
Append following config directives for IPv6 in /etc/sysconfig/network-scripts/ifcfg-eth
IPV6INIT=yes
IPV6ADDR=
IPV6_DEFAULTGW=
example :
TYPE=Ethernet
IPV6INIT=yes
IPV6ADDR="2607:f0d0:1002:0011:0000:0000:0000:0003"
IPV6_DEFAULTGW=2607:f0d0:1002:0011:0000:0000:0000:0001
3.
Save and close the file. Restart networking:
# service network restart
check with ifconfig -a command :
[root@Shrini ~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:11:43:33:19:76
inet addr:10.209.153.28 Bcast:10.209.155.255 Mask:255.255.252.0
inet6 addr: fe80::211:43ff:fe33:1976/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:34880 errors:0 dropped:0 overruns:0 frame:0
TX packets:11736 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8403600 (8.0 MiB) TX bytes:1594063 (1.5 MiB)
Base address:0xdcc0 Memory:dfae0000-dfb00000
eth1 Link encap:Ethernet HWaddr 00:11:43:33:19:77
inet6 addr: fe80::211:43ff:fe33:1977/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5479 errors:0 dropped:0 overruns:0 frame:0
TX packets:3380 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:712023 (695.3 KiB) TX bytes:289272 (282.4 KiB)
Base address:0xccc0 Memory:df8e0000-df900000
4. Check with ping6
ping6 -I eth1
this IP should be IPv6
example :
ping6 2607:f0d0:1002:11::3
ping6 -I eth1 2607:f0d0:1002:11::3
5.
Make entry in /etc/hosts file like this :
2607:f0d0:1002:11::3 Shrini.future.com Shrini
root@Shrini ~]# ping6 Shrini
PING swx64s98-6(swx64s98-6.vxindia.veritas.com) 56 data bytes
64 bytes from swx64s98-6.vxindia.veritas.com: icmp_seq=0 ttl=64 time=1.68 ms
64 bytes from swx64s98-6.vxindia.veritas.com: icmp_seq=1 ttl=64 time=0.400 ms
64 bytes from swx64s98-6.vxindia.veritas.com: icmp_seq=2 ttl=64 time=0.534 ms
6. Few work around if IPv6 is not setting up :
a. modprobe ipv6
b. /sbin/ifup eth1
0 comments:
Post a Comment