Linux-Noob Forums
ipv6 problems... - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Linux Server Administration (https://www.linux-noob.com/forums/forum-8.html)
+--- Forum: DNS and DHCP (https://www.linux-noob.com/forums/forum-84.html)
+--- Thread: ipv6 problems... (/thread-3203.html)



ipv6 problems... - anyweb - 2004-08-11


ok..

 

 

z0ny helped me setup ipv6 but now the dumb thing is not working and i havnt changed anything

 

my ipv6 details are here (from my sixxs.sh script)

 



Code:
#!/bin/sh
                                                                               
                                                                               
### CONFIGURATION: SIXXS #####################
                                                                               
# Inteface to bind the tunnel to
IF="sit1"
                                                                               
# IPv4 address of the tunnelbroker
ISP4="213.204.193.2"
# IPv6 address of the tunnelbroker
ISP6="2001:960:2:29a::1"
                                                                               
# Local IPv4 address to bind the tunnel to
LOC4="81.225.169.198"
# Local IPv6 address
LOC6="2001:960:2:29a::2/64"
# Local IPv6 subnet
LSN="2001:960:6eb"
                                                                               
# Time to live
TTL="64"
# Maximum transfer unit
# Maximum transfer unit
MTU="1280"
                                                                               
##############################################
                                                                               
                                                                               
#########################################
### DO NOT EDIT ANYTHING BELOW UNLESS ###
####  YOU KNOW WHAT YOU ARE DOING!!  ####
#########################################
                                                                               
# System variables
FILENAME=`basename $0`
IP=`which ip`
IFCONFIG=`which ifconfig`
ROUTE=`which route`
                                                                               
# Start the IPv6 engine
start() {
       $IFCONFIG sit0 up
       $IFCONFIG sit0 tunnel ::$ISP4
       $IFCONFIG $IF up
       $IFCONFIG $IF add $LOC6
       $ROUTE -A inet6 add 2000::/3 gw $ISP6 dev $IF
       $IP link set mtu $MTU dev sit0
       $IP link set mtu $MTU dev $IF
       $IP tunnel change $IF ttl $TTL
                                                                               
       # Add additional addresses here
       $IP -6 addr add $LSN::1/128 dev $IF
       #$IP -6 addr add $LSN::1:1/128 dev $IF
}
                                                                               
# Stop the IPv6 engine
stop() {
       $IP -6 route flush dev $IF
       $IP link set dev $IF down
       $IP tunnel del $IF
       $IFCONFIG sit0 down
}
                                                                               
restart() {
       stop
       start
}

                                                                               
case "$1" in
start)
       start
       echo -e "Enabling IPv6:                                             [ \033[40;32m OK \033[0m ]"
      ;;
stop)
       stop
       echo -e "Disabling IPv6:                                            [ \033[40;32m OK \033[0m ]"
      ;;
restart)
       restart
      ;;
*)
       echo -e "\033[40;32m$FILENAME\033[0m {\033[40;32mstart\033[0m|\033[40;32mrestart\033[0m|\033[40;32mstop\033[0m}"
      ;;
esac
       




 

when i as root, type sixxs.sh start it starts fine, no error messages

 



Code:
[root@localhost root]# sixxs.sh start
SIOCSIFADDR: File exists
SIOCADDRT: File exists
RTNETLINK answers: File exists
Enabling IPv6:                                             [  OK  ]




 

yet if i try to ping the ipv4 of my tunnel broker it works, but if i try to ping6 my tunnel broker, it fails.

 

i have correctly used IPTABLES on the router (in my case smoothwall) to route protocol 41 and this has worked fine for some time, just stopped yesterday and wont come back

 

 

 

any advice from anyone ??

 

Quote:[root@smoothwall root]# iptables -t nat -I PREROUTING -p 41 -j DNAT --to-destination 192.168.0.117[root@smoothwall root]# iptables -I FORWARD -p 41 -j ACCEPT



ipv6 problems... - hijinks - 2004-08-13

not sure about all tunnel brokers.. but i think you might have to forward protocol 41 to make it work if you are behind a NAT



ipv6 problems... - anyweb - 2004-08-13


i've done that dude (its in the post) ;)

 

i believe its my tunnel because it started working again all by itself magically

 

cheers

 

anyweb