OpenBSD+6BONE - HOWTO (V0.1)

Michael Kummer, <frost@packetst0rm.net>
2000-12-10
Check out http://www.packetst0rm.net for other services!

In this howto I wanna describe the process of connecting your OpenBSD router to 6bone. OpenBSD supports IPv6 out of the box, so you shouldn't need to download any other software.

You need the following information to proceed:
- Your IPv6 address
- IPv6 address of your tunnel broker
- Your subnet and prefix
- Your static IPv4
- IPv4 of your tunnel broker

I got the following information of my tunnel:
My IPv6: 3ffe:8060:100::29:2
Broker IPv6: 3ffe:8060:100::29:2
My IPv4: 213.229.11.120
Broker IPv4: 194.152.160.94
My Sub: 3ffe:8060:10:5::/64

To setup the tunnel I use the following shell script:
#!/bin/sh
# Tunnel to ATNET #
ipv6=3ffe:8060:100::28:2
v6gate=3ffe:8060:100::28:1
ifid=gif0
ip="213.229.11.120"
gate="194.152.160.94"
ifconfig $ifid giftunnel $ip $gate
ifconfig $ifid inet6 $ipv6 $v6gate prefixlen 126 alias
route add -inet6 default $ipv6
# End of Tunnel to ATNET #


The tunnel should be active and working now. You can try with pinging www.kame.net for example!
If you want to enable your whole LAN with officieal IPv6 addys you have to setup a v6 router.
I simply setup zebra to accomplish this task. Zebra is also in the OpenBSD ports collection!!!
For information about how to install zebra read the documentation on their website.

Here are my zebra/ripngd configuration files which may help you to setup zebra.
-- zebra.conf --

hostname gatekeeper
password [your pass]
enable password [your pass]

interface lo
interface rl0
interface ne1
interface ppp0
interface gif0

ip route 0.0.0.0/0 195.58.161.6
log file /etc/zebra/zebra.log

-- zebra.conf --

-- ripngd.conf --
hostname gatekeeper
password [your pass]
enable password [your pass]
router ripng
network gif0
network rl0

route 3ffe:8060:10:5::0/64
log file /etc/zebra/ripng.log
debug ripng events
debug ripng packet


-- ripngd.conf --

You can now asign IPv6 addys to your pc's on your local area network.
For example I assigned 3ffe:8060:10:5:8888:8888:8888:8888 to the lan interface of my router with this command
ifconfig rl0 inet6 3ffe:8060:10:5:8888:8888:8888:8888 alias

To configure a pc on your lan for IPv6 you have to enter the following commands:
ifconfig [local interface] inet6 [ipv6 addess] alias
e.g. ifconfig rl0 inet6 3ffe:8060:10:5:8888:8888:8888:7777 alias
Now we have to setup the default route:
route add -inet6 default [gw]
e.g. route add -inet6 default 3ffe:8060:10:5:8888:8888:8888:8888


Have a lot of fun!