[6bone] Basic IPv6 on FreeBSD

Jean Théry jeanthery@olympus-zone.net
Tue, 13 May 2003 17:25:31 +0200


Jeroen Massar wrote:
> /* jsha */ wrote:
>
>> # IPv6 NETWORK CONFIGURATION
>> #
>> gif_interfaces="gif0"
>> gifconfig_gif0="213.187.181.70 192.16.124.2"
>> ipv6_enable="YES"
>> ipv6_gateway_enable="YES"
>> ipv6_defaultrouter="-interface gif0"
>> ipv6_network_interfaces="lnc0 ep0 gif0 lo0"
>> ipv6_ifconfig_lnc0="3ffe:4008:1b::1200 prefixlen 48"
>
> A subnet should be a /64 if you want Radvd to work.

This is the same for rtadvd.

>> ipv6_firewall_enable="YES"
>> ipv6_firewall_type="open"
>> rtadvd_enable="YES"
>> rtadvd_interfaces="ep0"
>> -
>>
>> lnc0 goes from server to ADSL modem, ep0 goes from server to
>> workstation. I also keep getting this error message:
>>
>> cannot forward src fe80:0002::0240:f4ff:fe3d:a742,
>>                        dst 2001:04f8:0:0002::000e,
>>                        nxt 6, rcvif ep0, outif gif0

with rtadvd you can use an empty config file, the conf is made by rc.conf in
this case
for manual way just add :
ifconfig [interface1] 3ffe:4008:1b:1:: prefixlen 64 anycast
ifconfig [interface2] 3ffe:4008:1b:2:: prefixlen 64 anycast
ex :
ifconfig xl0 3ffe:4008:1b:1:: prefixlen 64 anycast
ifconfig fxp0 3ffe:4008:1b:1:: prefixlen 64 anycast
etc
and start rtadvd with interface parameter ex :
rtadvd fxp0 xl0

PS: don't use rtadvd and radvd at the same time! (are you using 2 dhcp
daemon at the same time ?)
PS2: if you're using IPF and DENY by default in the kernel, ensure the
router advertisment pass the rules.

> Quite clearly you cannot forward link local IP's.
> Configure a /64 on lnc0 and ep0 and gif0, configure radvd
> to the correct prefix, restart radvd, and it should work(tm)
> Though unless you use unnumbered tunnels you will be needing
> some addresses over the tunnel. You should show more details
> of your configuration and your network design ;)
>
> Greets,
>  Jeroen
>
> _______________________________________________
> 6bone mailing list
> 6bone@mailman.isi.edu
> http://mailman.isi.edu/mailman/listinfo/6bone

Cordialy,

Jean Théry
Network, Systems & Hosting Administration
Olympus-Zone : www.olympus-zone.net