All pastes #663516 Raw Edit

Someone

public text v1 · immutable
#663516 ·published 2007-08-19 17:41 UTC
rendered paste body
im trying to setup a IPv6 router after a ppp0 connection currently i use pppoe-start to initialize it and my /etc/conf.d/net both have eth1 and eth0 as null

firewall iptables is emtpy

im trying to get my clients to have full blown INTERNAL IPv6 assidress and internet (for example fxxx each)

i followed this guide but couldnt get it to fully work http://www.gentoo.org/doc/en/ipv6.xml
this is my third post on this (and this is also an copy of pm i sent to a gentoo developer incase he could find the problem)

i decided to post it maybe if we can all go through it and find what my errors were in concept to not allowing it to work (then ill clean it up and post it on gentoo-wiki as how to setup IPv6 router)

lets see what we come up with

###########my /etc/conf.d/net###########################
dns_domain_lo="router"
config_eth1=( "null" )


###############Freenet6 /etc/freenet6/gw6c.conf###################### then ran /etc/init.d/gw6c start

userid=xxxxx
passwd=xxxxx
server=broker.freenet6.net
auth_method=any
host_type=router
prefixlen=64
dns_server=
tunnel_mode=v6anyv4
if_tunnel_v6v4=sit1
if_tunnel_v6udpv4=tun
if_tunnel_v4v6=sit0
client_v4=auto
client_v6=auto
proxy_client=no

in logs i obtain this

Aug 15 19:52:47 alswitch gw6c: Your IPv6 address is 2001:xxxx:xxxx:xxxx:0000:0000:0000:xxxx.
Aug 15 19:52:47 alswitch gw6c: Your IPv6 prefix is 2001:xxxx:xxxx:0000:0000:0000:0000:0000/48.

####################/etc/bind/named.conf########################## then ran /etc/init.d/named start

i added

listen-on-v6 { any; };

zone "ipv6-rules.com" IN {
type master;
file "pri/ipv6-rules.com";
};

zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.x.x.x.x.x.x.x.x.1.0.0.2.arpa" {
type master;
file "pri/rev-ipv6-rules.com.arpa";
};

#######################ipv6-rules.com############################

$TTL 2h
@ IN SOA ipv6-rules.com. webmaster.ipv6-rules.com. (
2003052501 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
NS ns1.ipv6-rules.com

IN AAAA 2001:xxxx:xxxx:0000:0000:0000:0000:0000::1 ; address for ipv6-rules.com
host1 IN AAAA 2001:xxxx:xxxx:0000:0000:0000:0000:0000::2 ; address for host1.ipv6-rules.com
host2 IN AAAA 2001:xxxx:xxxx:0000:0000:0000:0000:0000::3:3 ; address for host2.ipv6-rules.com

#####################rev-ipv6-rules.com.arpa##################

$TTL 3d ; Default TTL (bind 8 needs this, bind 9 ignores it)
@ IN SOA ipv6-rules.com. webmaster.ipv6-rules.com. (
2003052501 ; Serial number (YYYYMMdd)
24h ; Refresh time
30m ; Retry time
2d ; Expire time
3d ) ; Default TTL
IN NS ns1.ipv6-rules.com.

; IPv6 PTR entries
$ORIGIN 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.x.x.x.x.x.x.x.x.1.0.0.2.arpa.

1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 IN PTR ipv6-rules.com.
2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 IN PTR host1.ipv6-rules.com.
3.0.0.0.3.0.0.0.0.0.0.0.0.0.0.0 IN PTR host2.ipv6-rules.com.


############### i ran tinydns-setup ##################3
picked my ppp0 ip addres
############### /var/tinydns/root/data then ran make in the dir - ok #######################
.ipv6-rules.com:192.168.0.1:a:259200
.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.x.x.x.x.x.x.x.x.1.0.0.2.arpa:192.168.0.1:a
6host1.ipv6-rules.com:2001xxxxxxxx000000000000000000000000000000000001:86400
6host2.ipv6-rules.com:2001xxxxxxxx000000000000000000000000000000000002:86400
3www.ipv6-rules.com:2001xxxxxxxx000000000000000000000000000000000002:86400
################# then run it ./run & in tinydns dir under root ############################
####### made sure that echo 1 > /proc/sys/net/ipv6/conf/all/forwarding #####################

#################### /etc/radvd.conf then ran it #################################
interface eth1
{
AdvSendAdvert on;
MinRtrAdvInterval 3;
MaxRtrAdvInterval 10;

prefix fxxx::/64 ######i used my tap0 ::fxxx:xxxx:xxxx:xxxx
{
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr off;
};


prefix 2001:xxxx:xxxx:xxxx::/64 ########this is my shortened prefix (i cut out the last 16)
{
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr on;
};

};
##############i bring it up on the client it gets ipv6#####################

################# /etc/totd.conf then /etc/init.d/totd start #############
forwarder 192.168.0.2 port 53
prefix 3ffe:abcd:1234:9876::
port 5005
pidfile /var/run/totd.pid
stf

#################################/etc/ptrtd.conf then /etc/init.d/ptrtd start #################
IPV6_PREFIX="3ffe:abcd:1234:9876::"

########### i manually add this to my /etc/resolv.conf on the router ##################
nameserver 2001:xxxx:xxxx:xxxx::1 #### my shortened prefix

#############now if i do the default route nothing happens(i do this on my router) #####################
ip route add 3ffe:abcd:1234:9876::/64 via 2001:xxxx:xxxx:xxxx::1 dev eth0
it rejects it with

RTNETLINK answers: No route to host
#############################################################################3