• Welcome to Hurricane Electric's IPv6 Tunnel Broker Forums.

How to turn a Linux box into a v6 router?

Started by icannmiddleboxes, April 19, 2016, 02:54:53 PM

Previous topic - Next topic

icannmiddleboxes

Greetings. I am using the "linux-net-tools" ifconfig-style commands suggested on the tunnelbroker site on a modern Ubuntu server, and they work fine for giving the box v6 access to and from the network. However, I want this box to be a v6 router.

1) I assume that I need to add a few things to files in /etc to turn this into a router for the routed /64 and routed /48 that I have been given, but I don't see any instructions for that.

2) Once I have #1 done, I want to configure dhcpv6 as well. Or should I just use radvd? Or both?

Clues appreciated. I'm happy to turn answers into more documentation if appropriate.

broquea

Enable IPv6 packet forwarding in sysctl, boom yer a router.

Use either, but you'll need RA for DHCP to work, set with M and O flags.

icannmiddleboxes

Thanks for the quick relpy!  ;D

Quote from: broquea on April 19, 2016, 02:57:40 PM
Enable IPv6 packet forwarding in sysctl, boom yer a router.

Use either, but you'll need RA for DHCP to work, set with M and O flags.

#1: In /etc/sysctl.conf:
   net.ipv6.conf.all.forwarding=1
Got it.

#2: I could use a bit more clue here. The man page for radvd.conf is a tad daunting. If eth0 is my WAN interface, eth1 is my LAN interface, and the routed /64 that I was given is 2001:420:dead:beef::/64, what would my radvd.conf look like? (I can probably figure out the DHCP configuration from here.)