Difference between revisions of "IPv6"
m |
m (→Tutorials) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | IPv6 under Linux |
|
− | + | ==Links== |
|
* [http://www.pps.jussieu.fr/~jch/software/ipv6-connectivity.html Getting IPv6 connectivity under Linux] |
* [http://www.pps.jussieu.fr/~jch/software/ipv6-connectivity.html Getting IPv6 connectivity under Linux] |
||
* [http://people.debian.org/~csmall/ipv6/ the Debian IPv6 project page] |
* [http://people.debian.org/~csmall/ipv6/ the Debian IPv6 project page] |
||
* [http://www.bieringer.de/linux/IPv6/ the work by Peter Bieringer] |
* [http://www.bieringer.de/linux/IPv6/ the work by Peter Bieringer] |
||
* [http://madduck.net/blog/2008.04.02:adding-proper-ipv6-to-my-home-network/ a call by Madduck] |
* [http://madduck.net/blog/2008.04.02:adding-proper-ipv6-to-my-home-network/ a call by Madduck] |
||
+ | ==Brokers== |
||
− | ====Gateway6 Client==== |
||
+ | ===Gogo6 / Freenet6=== |
||
− | Download it at [http://go6.net/4105/download.asp go6.net] |
||
+ | * http://gogonet.gogo6.com |
||
− | tar xzf gw6c-5_1-RELEASE-src.tar.gz |
||
+ | apt-get install gogoc |
||
− | cd tspc-advanced |
||
⚫ | |||
− | make target=linux |
||
+ | Edit /etc/gogoc/gogoc.conf and verify you've: |
||
− | sudo make target=linux installdir=/usr/local/gw6c install |
||
⚫ | |||
⚫ | |||
+ | ====Registered==== |
||
+ | You need a freenet6 account: http://gogonet.gogo6.com/page/freenet6-account |
||
+ | <br>Your Freenet6 account will also be your domain name, for example me.broker.freenet6.net |
||
+ | Edit /etc/gogoc/gogoc.conf and set: |
||
⚫ | |||
⚫ | |||
⚫ | |||
+ | auth_method=any |
||
+ | But... if you want to be certain that you get a static address then your choise is montreal.freenet6.net , amsterdam.freenet6.net, sydney.freenet6.net or taipei.freenet6.net. (from [http://gogonet.gogo6.com/forum/topics/what-server-should-i-use-to here] |
||
+ | From README.Debian: If you use the authentication methods to login to the broker, you will need to get the server key. The program will check for the correct key and not start without it. To obtain the key, run /usr/sbin/gogoc on the command line and agree to add the key |
||
− | cd /usr/local/gw6c/bin |
||
+ | sudo gogoc -n |
||
− | vi gw6c.conf |
||
+ | ==Commands== |
||
⚫ | |||
+ | * traceroute6 -n www.kame.net |
||
− | ./gw6c |
||
+ | * ping6 |
||
+ | * netcat6 - TCP/IP swiss army knife with IPv6 support |
||
+ | * mrd6 - IPv6 Multicast Routing Daemon |
||
+ | * ndisc6 - IPv6 diagnostic tools<br>ndisc6 gathers a few diagnostic tools for IPv6 networks including: |
||
+ | ** - ndisc6, which performs ICMPv6 Neighbor Discovery in userland, |
||
+ | ** - rdisc6, which performs ICMPv6 Router Discovery in userland, |
||
+ | ** - rltraceroute6, a UDP/ICMP IPv6 implementation of traceroute, |
||
+ | ** - tcptraceroute6, a TCP/IPv6-based traceroute implementation, |
||
+ | ** - tcpspray6, a TCP/IP Discard/Echo bandwidth meter, |
||
+ | ** - addrinfo, easy script interface for hostname and address resolution, |
||
+ | ** - dnssort, DNS sorting script. |
||
+ | * ipv6calc - small utility for manipulating IPv6 addresses |
||
+ | * subnetcalc - IPv4/IPv6 Subnet Calculator |
||
+ | ==Tutorials== |
||
− | For being registered and propagating a IPv6 prefix on the LAN: |
||
+ | ===GLMF #136=== |
||
− | vi gw6c.conf |
||
+ | * http://formation-libre.fr/articles/ in French, complementary to articles published in GLMF |
||
⚫ | |||
+ | Relies on Netkit, so I chose to run the livecd iso (from [http://wiki.netkit.org/index.php/Download_Official here]) in Virtualbox |
||
⚫ | |||
+ | * Netkit base commands: vstart, vlist, vconfig, vhalt, vcrash, vclean |
||
⚫ | |||
+ | * Netkit advanced commands: lstart, lhalt, lcrash |
||
⚫ | |||
+ | Once the iso booted in Virtualbox, open a user shell and type |
||
− | host_type=router |
||
+ | wget http://formation-libre.fr/foad/static/labs/art1-lab-commande-ip6.tar.bz2 |
||
− | prefixlen=64 |
||
+ | tar xjf art1-lab-commande-ip6.tar.bz2 |
||
− | if_prefix=eth0 |
||
+ | cd lab-commande-ip6 |
||
− | dns_server=.... |
||
+ | lstart |
||
⚫ | |||
+ | Commands illustrated in the tutorial: |
||
+ | ifconfig |
||
+ | = ip addr show |
||
+ | ifconfig ethx inet6 add 2001:.../64 |
||
+ | = ip addr add 2001:.../64 dev eth0 |
||
+ | ifconfig ethx inet6 del 2001:.../64 |
||
+ | = ip addr del 2001:.../64 dev eth0 |
||
+ | |||
+ | route -n -A inet6 |
||
+ | = ip -6 route show |
||
+ | route -A inet6 add 2001:.../64 gw 2001:... |
||
+ | = ip route add 2001:.../64 via 2001:... |
||
+ | route -A inet6 del 2001:.../64 gw 2001:... |
||
+ | = ip route del 2001:.../64 via 2001:... |
||
+ | route -A inet6 add default gw 2001:... |
||
+ | = ip route add default via 2001:... |
||
+ | route -A inet6 del default gw 2001:... |
||
+ | = ip route del default via 2001:... |
||
+ | |||
+ | ping6 on local link: need to specify device |
||
+ | ping6 -I ethx fe80:... |
||
+ | = ping6 fe80:...%ethx |
||
+ | |||
+ | Basic router: static routes + |
||
+ | echo 1 > /proc/sys/net/ipv6/conf/all/forwarding |
||
+ | |||
+ | Neighbors discovery: |
||
+ | ping6 -I ethx ip6-allnodes |
||
+ | = ping6 -I ethx ff02::1 |
||
+ | |||
+ | Neighbors cache: |
||
+ | ip neigh show |
||
+ | |||
+ | ==Misc== |
||
* http://kame.net |
* http://kame.net |
||
* http://ripe.net |
* http://ripe.net |
Latest revision as of 23:24, 6 March 2011
IPv6 under Linux
Links
- Getting IPv6 connectivity under Linux
- the Debian IPv6 project page
- the work by Peter Bieringer
- a call by Madduck
Brokers
Gogo6 / Freenet6
apt-get install gogoc
Anonymous
Edit /etc/gogoc/gogoc.conf and verify you've:
server=anonymous.freenet6.net auth_method=anonymous
Registered
You need a freenet6 account: http://gogonet.gogo6.com/page/freenet6-account
Your Freenet6 account will also be your domain name, for example me.broker.freenet6.net
Edit /etc/gogoc/gogoc.conf and set:
userid=xxx passwd=xxx server=authenticated.freenet6.net auth_method=any
But... if you want to be certain that you get a static address then your choise is montreal.freenet6.net , amsterdam.freenet6.net, sydney.freenet6.net or taipei.freenet6.net. (from here
From README.Debian: If you use the authentication methods to login to the broker, you will need to get the server key. The program will check for the correct key and not start without it. To obtain the key, run /usr/sbin/gogoc on the command line and agree to add the key
sudo gogoc -n
Commands
- traceroute6 -n www.kame.net
- ping6
- netcat6 - TCP/IP swiss army knife with IPv6 support
- mrd6 - IPv6 Multicast Routing Daemon
- ndisc6 - IPv6 diagnostic tools
ndisc6 gathers a few diagnostic tools for IPv6 networks including:- - ndisc6, which performs ICMPv6 Neighbor Discovery in userland,
- - rdisc6, which performs ICMPv6 Router Discovery in userland,
- - rltraceroute6, a UDP/ICMP IPv6 implementation of traceroute,
- - tcptraceroute6, a TCP/IPv6-based traceroute implementation,
- - tcpspray6, a TCP/IP Discard/Echo bandwidth meter,
- - addrinfo, easy script interface for hostname and address resolution,
- - dnssort, DNS sorting script.
- ipv6calc - small utility for manipulating IPv6 addresses
- subnetcalc - IPv4/IPv6 Subnet Calculator
Tutorials
GLMF #136
- http://formation-libre.fr/articles/ in French, complementary to articles published in GLMF
Relies on Netkit, so I chose to run the livecd iso (from here) in Virtualbox
- Netkit base commands: vstart, vlist, vconfig, vhalt, vcrash, vclean
- Netkit advanced commands: lstart, lhalt, lcrash
Once the iso booted in Virtualbox, open a user shell and type
wget http://formation-libre.fr/foad/static/labs/art1-lab-commande-ip6.tar.bz2 tar xjf art1-lab-commande-ip6.tar.bz2 cd lab-commande-ip6 lstart
Commands illustrated in the tutorial:
ifconfig = ip addr show ifconfig ethx inet6 add 2001:.../64 = ip addr add 2001:.../64 dev eth0 ifconfig ethx inet6 del 2001:.../64 = ip addr del 2001:.../64 dev eth0
route -n -A inet6 = ip -6 route show route -A inet6 add 2001:.../64 gw 2001:... = ip route add 2001:.../64 via 2001:... route -A inet6 del 2001:.../64 gw 2001:... = ip route del 2001:.../64 via 2001:... route -A inet6 add default gw 2001:... = ip route add default via 2001:... route -A inet6 del default gw 2001:... = ip route del default via 2001:...
ping6 on local link: need to specify device
ping6 -I ethx fe80:... = ping6 fe80:...%ethx
Basic router: static routes +
echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
Neighbors discovery:
ping6 -I ethx ip6-allnodes = ping6 -I ethx ff02::1
Neighbors cache:
ip neigh show