ipv6 routing on FreeBSD: rtadvd problem
Shadow Hawkins on Sunday, 29 June 2008 13:28:04
Hi,
I'm new to ipv6 and try to setup a FreeBSD machine as a router, but wasn't successful. I hope, I can get some help here.
This is, what I've done so far:
My ipv6 tunnel via sixxs.net is up and running (via aiccu).
My local IP is set:
SchlesisServer# ifconfig sis0 inet6
sis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
inet6 2a01:198:200:11e::3 prefixlen 64
My tunnel:
SchlesisServer# ifconfig tun0
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1280
inet6 fe80::98:200:11e:2%tun0 prefixlen 64 scopeid 0x4
inet6 2a01:198:200:11e::2 --> 2a01:198:200:11e::1 prefixlen 128
I haven't enabled firewall setings for now. A ping6 from this machine into the Internet works flawlessly.
My problem is to use this machine as a router for my other PCs. I wanted to use rtadvd, but it doesn't like my rtadvd.conf.
This is my /etc/rtadvd.conf:
sis0:\
:addrs#1:addr="2a01:198:200:11e::":prefixlen#64:tc=ether:
When I start the rtadvd, I get this error message:
SchlesisServer# rtadvd -dDf -c /etc/rtadvd.conf sis0
rtadvd[5362]: <getconfig> sis0 isn't defined in the configuration file or the configuration file doesn't exist. Treat it as default
The syntax of the conf file seems to be correct, according to some examples on the 'net.
I've also tried to configure the clients in my LAN (FreeBSD & Linux) manually. I've given them IPv6 adresses (2a01:198:200:11e::4 und 2a01:198:200:11e::5) and can happily ping6 across my LAN. I've added a route entry:
route add -inet6 ::/0 2a01:198:200:11e::3
but can't ping out of my LAN.
This are my sysctl settings for ipv6:
SchlesisServer# sysctl net.inet6
net.inet6.ip6.forwarding: 1
net.inet6.ip6.redirect: 1
net.inet6.ip6.hlim: 64
net.inet6.ip6.maxfragpackets: 6400
net.inet6.ip6.accept_rtadv: 0
net.inet6.ip6.keepfaith: 0
net.inet6.ip6.log_interval: 5
net.inet6.ip6.hdrnestlimit: 15
net.inet6.ip6.dad_count: 1
net.inet6.ip6.auto_flowlabel: 1
net.inet6.ip6.defmcasthlim: 1
net.inet6.ip6.gifhlim: 30
net.inet6.ip6.kame_version: FreeBSD
net.inet6.ip6.use_deprecated: 1
net.inet6.ip6.rr_prune: 5
net.inet6.ip6.v6only: 1
net.inet6.ip6.rtexpire: 3600
net.inet6.ip6.rtminexpire: 10
net.inet6.ip6.rtmaxcache: 128
net.inet6.ip6.use_tempaddr: 0
net.inet6.ip6.temppltime: 86400
net.inet6.ip6.tempvltime: 604800
net.inet6.ip6.auto_linklocal: 0
net.inet6.ip6.prefer_tempaddr: 0
net.inet6.ip6.use_defaultzone: 0
net.inet6.ip6.maxfrags: 6400
net.inet6.ip6.mcast_pmtu: 0
net.inet6.icmp6.rediraccept: 1
net.inet6.icmp6.redirtimeout: 600
net.inet6.icmp6.nd6_prune: 1
net.inet6.icmp6.nd6_delay: 5
net.inet6.icmp6.nd6_umaxtries: 3
net.inet6.icmp6.nd6_mmaxtries: 3
net.inet6.icmp6.nd6_useloopback: 1
net.inet6.icmp6.nodeinfo: 3
net.inet6.icmp6.errppslimit: 100
net.inet6.icmp6.nd6_maxnudhint: 0
net.inet6.icmp6.nd6_debug: 0
net.inet6.icmp6.nd6_maxqueuelen: 1
Can somebody give me some help please?
Thanks,
Thomas
ipv6 routing on FreeBSD: rtadvd problem
Shadow Hawkins on Monday, 30 June 2008 00:48:28
Hm, are you sure your rtadvd.conf syntax is correct? I have:
em0:\
:addr="2001:6f8:102d::2":prefixlen#64:
and it works fine.
I found a rtadvd manpage from May 17, 1998 which uses:
:addrs#1:addr=
the manpage from 6.2 states:
ef0:\
:addr="3ffe:501:ffff:1000::":prefixlen#64:tc=default:
regards
Stefan
ipv6 routing on FreeBSD: rtadvd problem
Shadow Hawkins on Monday, 30 June 2008 16:52:21
Hi!
Have you read the FAQ entry How do I give connectivity to other hosts on my subnet?
Did you request and receive a subnet.
ipv6 routing on FreeBSD: rtadvd problem
Shadow Hawkins on Monday, 30 June 2008 16:52:54
(the last sentence should end with a question mark)
ipv6 routing on FreeBSD: rtadvd problem
Shadow Hawkins on Monday, 30 June 2008 17:58:23
Yes, I don't have a subnet yet. I've followed a how-to in the web, which didn't clearly state, I need a real subnet assigned, not only an ipv6 tunnel.
Well, I'm an ipv6 beginner an I'll learn ;-)
Thanks,
Thomas
ipv6 routing on FreeBSD: rtadvd problem
Shadow Hawkins on Tuesday, 01 July 2008 00:43:15
If you don't have a subnet yet, why are you trying to advertise a route?
It seems you are trying to advertise the tunnel subnet back into the tunnel.
The tunnel subnet is for the transit link only.
You don't need any RA at this point.
When you do get your own subnet, advertise towards your local lan.
ipv6 routing on FreeBSD: rtadvd problem
Shadow Hawkins on Tuesday, 01 July 2008 00:46:50
On re-reading, it seems sis0 might be your ethernet interface. In that case you just need your own subnet.
ipv6 routing on FreeBSD: rtadvd problem
Shadow Hawkins on Tuesday, 01 July 2008 22:24:06
Hi all,
thanks for your hints. I've got my subnet approved today and now everything works fine.
Thomas
ipv6 routing on FreeBSD: rtadvd problem
Carmen Sandiego on Monday, 18 August 2008 15:59:50
I got the same problem, But i do have a subnet already! got an ipv6 ip on my xp machine. but i cant ping with it :(
ipv6 routing on FreeBSD: rtadvd problem
Shadow Hawkins on Monday, 18 August 2008 16:06:19
Check your firewall, it may be the cause.
ipv6 routing on FreeBSD: rtadvd problem
Carmen Sandiego on Monday, 18 August 2008 16:50:14
What shall i have in my firewall to make it work?
ipv6 routing on FreeBSD: rtadvd problem
Shadow Hawkins on Monday, 18 August 2008 21:24:21
I don't know the settings you would need for your machine, though to verify that it is a firweall issue try temporarily turning it off.
Posting is only allowed when you are logged in. |