[6bone] IPv6 and FreeBSD

Pim van Pelt pim@ipng.nl
Thu, 19 Sep 2002 08:42:08 +0200


On Tue, Sep 17, 2002 at 06:56:36PM +0800, Nick Kraal wrote:
| I hope that this is not OTT on this mailing-list.
It's not off topic at all.

 
| I am trying to implement a simple IPv6 gateway on FreeBSD. This box has
| three interfaces xl0,ep1 and gif0. xl0 is connected to a v4 network and runs
| fine. gif0 is a IPv4 tunneled interface to the existing IPv6 router. The ep1
| interface is to a switch where I am trying to construct a pure IPv6 network
| 2001:FFFF:B405:2::/64. IPv6 connectivity from the box seems to be working
| fine but I am a bit stuck on the RA portion running on interface ep1. Can
| this work or must I install Zebra. Any ideas/hints/pointers will be greatly
| appreciated.

For FreeBSD, you should look at your sysctl variable in
net.inet6.ip6.accept_rtadv and set it to 0. Then look at
net.inet6.ip6.forwarding and set that to 1.

Then man rtadvd and simply type 'rtadvd ep1'. The machine will read the
prefix info (apparently 2001:FFFF:B405:2::/64 which is a hijacked IPv6
inet6num by the way, which you should _not_ be doing), and start
periodically sending RA on this link. In addition, rtadvd listens for
incoming router sollicitations from the ep1 interface and will answer
these with an RA.

Good luck!

groet,
Pim
| 
| Thanks in advance.
| 
| -nick/
| 
| ...from the IPv6 router:
| ipv6 route 2001:FFFF:B405::/48 Tunnel 5
| 
| ...from /etc/rc.conf
| # ---IPv6 router config---
| ipv6_enable="YES"
| ipv6_static_routes="default"
| ipv6_route_default="default -interface gif0"
| ipv6_gateway_enable="YES"
| ipv6_network_interfaces="xl0 ep1"
| ipv6_prefix_xl0="2001:FFFF:B405:1 prefixlen 64"
| ipv6_prefix_ep1="2001:FFFF:B405:2 prefixlen 64"
| gif_interfaces="gif0"
| prefixcmd="YES"
| rtadvd_enable="YES"
| rtadvd_interfaces="ep1"
| gifconfig_gif0="200.100.200.110 200.100.220.12"
| ifconifg_xl0_alias0="2001:FFFF:B405:1::1 prefixlen 64"
| ifconifg_ep1_alias0="2001:FFFF:B405:2::1 prefixlen 64"
| 
| 
| _______________________________________________
| 6bone mailing list
| 6bone@mailman.isi.edu
| http://mailman.isi.edu/mailman/listinfo/6bone

-- 
---------- - -    - - -+- - -    - - ----------
Pim van Pelt                 Email: pim@ipng.nl
http://www.ipng.nl/             IPv6 Deployment
-----------------------------------------------