Unifix knowledge database - The original one

Dashboard - News - Search - List - About - Admin


How to connect a Linux system to a IPv6 gateway

Author:mike - Sun Jul 21 10:47:00 2002

First you have to make sure that the kernel is ipv6 kombatible, do an <b>ifconfig</b> and look for something like this <i>inet6 addr: fe80::202:44ff:fe27:23bd/10 Scope:Link</i> if you cant find it, try type <b>modprobe ipv6</b> and look again, if it dosnt help you have to make a new kernel.

When you have assured that IPv6 support is in play you can go on by adding an IPv6 adress to your ethernet interface:

This makes the interface eth0 respond to the address "3ffe:1234:1234::1234" and sets the scope(netmask) to /48
 
<b>ifconfig eth0 add 3ffe:1234:1234::1234/48</b>

Now you can test this by pinging local network nodes , for an instance the router which will most likeley be "3ffe:1234:1234::1" or "3ffe:1234:1234::"

<b>ping6 3ffe:1234:1234::1</b>


Now when we have assured that we can ping our local route we can go on add the default gateway, this is done with this command:

<b>route -A inet6 add 2000::/3 gw 3ffe:1234:1234::1</b>

This tells the IPv6 stack to send all trafik which does not belong to 3ffe:1234:1234::0/48 to the router 3ffe:1234:1234::1 


The ping6 and traceroute6 can be obtained from:
http://ftp.debian.org/debian/pool/main/i/iputils/iputils_20020124.orig.tar.gz
Copyright(c) Unifix.org 2002-2011


Dashboard - News - Search - List - About - Admin
 
Powered by Mikjaer Consulting Solutions - Hosted by Specialhosting.dk