Unifix knowledge database - The original one

Dashboard - News - Search - List - About - Admin


Linux IPv6 opsætning

Author:black - Fri Jul 11 04:48:09 2003

Noterne er baseret på følgende netværks konfiguration:
Public IPv4 IP: 80.199.18.5
Router IPv6 IP: 3ffe:80ee:603::1/128
Klient IPv6 IP: 3ffe:80ee:603::2
IPv4 IP på tunnel endpoint i .dk: 62.61.157.209

Klient opsætning:
På klienterne skal følgende indskrives i et af startscriptene:

modprobe ipv6
ifconfig eth0 add 3ffe:80ee:603::2/48
route -A inet6 add 2000::/3 gw 3ffe:80ee:603::1

Hvor IPv6 IP for klienten er ::2.

Server opsætning:
Scriptet rc.ipv6:

# Connection to XS26.net
MYIPv4="80.199.18.5" 		# My IPv4 address
XSIPv4="62.61.157.209"  	# PoP's IPv4 address
MYIPv6="3ffe:80ee:603::1/128"	# Choose any IPv6 address from the range
				# you've got from XS26
TUNLIF="xs26-0"			# interface used for the tunnel - default should be ok

iptunnel add $TUNLIF mode sit local $MYIPv4 remote $XSIPv4 ttl 64
ifconfig $TUNLIF up
route -A inet6 add 2000::/3 dev $TUNLIF
ifconfig $TUNLIF add $MYIPv6

#connection to localnet
ifconfig eth0 add 3ffe:80ee:603::1/48
#activating forward
echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
Copyright(c) Unifix.org 2002-2011


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