client_v4=OUR_REAL_IPv4_IPHere we have to put the real ip of our ADSL/CABLE internet connection.
We need to specify the logical interface name that will be used to establish the configured tunnel (IPv6 over IPv4).
Under any Linux platform including the USAGI stack:
if_tunnel=sit1
Add our userid and password to create the tunnel as authenticated user:
userid=USERID passwd=PASSWORD
To configure our system and our interface, TSP client will run a configuration script, depending on the OS. By default, when we install the TSP client it detect the system and select this parameter:
template=linux
If template is set to checktunnel (template=checktunnel) only displays the values passed to the template.
The next variables describes parameters to use in order to request /48 or /64 IPv6 prefixes to the server. Before requesting an IPv6 prefix, it is mandatory to have valid userid and password in the server.
If we want to use our computer as an IPv6 router, we have to informs the template to enable the ipv6_forwarding on your computer:
host_type=routerwith this command the tscp client will enable the ipv6_forwarding in our computer.
We can request a /48 or a /64 IPv6 prefixes to the server. The /48 is recommanded for large site with multiple subnets while the /64 is for network with only one subnet. We will select this with the following parameter:
prefixlen=64 or prefixlen=48
If we want all IPv6 nodes connected on the same subnet will be able to autoconfigure their IPv6 addresses by themselves, we have to enable automatically Router Advertisement on a network interface of the computer. With this option, one /64 of the prefix gotten will be advertised on a network interface. The syntax is:
if_prefix=eth0
NOTE: We have to have the radvd binary installe in our system. (Debian GNU/Linux users: apt-get install radvd)
And finally the dns_server parameter. This parameter is used to specify the DNS servers that should be used for reverse DNS delagation of the prefix allocated. Only if we have a dns server:
dns_server=NAME_NAMESERVER1:NAME_NAMESERVER2
NOTE: Never use an ip address as a DNS server name.
You can see more options in the tscp.conf man page.http://www.freenet6.net/tspc.conf.shtmltscp.conf(5)
I have to modify thing in the template used by the TSP client (in my case the file template/linux.sh):
Search te text "Default route" and Add the line: ExecNoCheck $route -A inet6 del 2000::/3 2>/dev/null # delete old 2000::/3 route after the line: ExecNoCheck $route -A inet6 del ::/0 2>/dev/null # delete old default route
If we don't delete the old 2000::/3 route, if we relaunch the TSP client, it will fail when it try to add this route again.
Other made changes are about Router Advertisement:
First, create a user to execute radvd.
Then update the line:
Exec $rtadvd -u radvd -C $rtadvdconfigfile
to
Exec $rtadvd -u radvd -p /var/run/radvd/radvd.pid -C $rtadvdconfigfile
We need to create the directory /var/run/radvd/ and chmod this to the user radvd.