Debian IPv6 Networking Configuration

You have a question or problem? Or you just want to discuss something related to GNU/Linux or programming (c/c++, java, bash, perl, php and other scripting languages) or other computer stuff

Debian IPv6 Networking Configuration

Postby kazuya » October 31st, 2013, 8:50 am

How do I configure static IPv6 networking under Debian Linux?

You need to add networking configuration to /etc/network/interfaces file as follows:
a) Ipv6 Address

b) Ipv6 Gateway

c) Netmask
Out Sample Debian Linux Ipv6 Configuration

Ipv6 Address IP: 2607:f0d0:2001:000a:0000:0000:0000:0002/64
Ipv6 Gateway IP: 2607:f0d0:2001:000a:0000:0000:0000:0001
Interface name: eth0
IPv6 Type: Static

Open /etc/network/interfaces file, enter:
# vi /etc/network/interfaces
Append configuration as follows:

#IPV6 static configuration
iface eth0 inet6 static
pre-up modprobe ipv6
address 2607:f0d0:2001:000a:0000:0000:0000:0002
netmask 64
gateway 2607:f0d0:2001:000a:0000:0000:0000:0001
# END IPV6 configuratio

Save and close the file. Restart the networking:
# /etc/init.d/networking restart
Verify IPv6 networking

Print your current routing:
# ip -6 route show
Ping Ipv6 enabled website:
# ping6 www.cyberciti.biz
# ping6 ipv6.google.com
Sample output:

PING www.cyberciti.biz(www.cyberciti.biz) 56 data bytes
64 bytes from www.cyberciti.biz: icmp_seq=1 ttl=60 time=65.2 ms
64 bytes from www.cyberciti.biz: icmp_seq=2 ttl=60 time=64.0 ms
64 bytes from www.cyberciti.biz: icmp_seq=3 ttl=60 time=64.0 ms
64 bytes from www.cyberciti.biz: icmp_seq=4 ttl=60 time=64.0 ms
64 bytes from www.cyberciti.biz: icmp_seq=5 ttl=60 time=63.9 ms
User avatar
kazuya
Member
 
Posts: 13
Joined: December 7th, 2012, 8:33 am
Location: Indonesia

Return to Computer Science

Who is online

Users browsing this forum: Bing [Bot] and 1 guest