Hurricane Electric's IPv6 Tunnel Broker Forums

General IPv6 Topics => IPv6 on Linux & BSD & Mac => Topic started by: icannmiddleboxes on April 19, 2016, 02:54:53 PM

Title: How to turn a Linux box into a v6 router?
Post by: icannmiddleboxes on April 19, 2016, 02:54:53 PM
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.
Title: Re: How to turn a Linux box into a v6 router?
Post by: 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.
Title: Re: How to turn a Linux box into a v6 router?
Post by: icannmiddleboxes on April 19, 2016, 03:17:46 PM
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.)

Title: Re: How to turn a Linux box into a v6 router?
Post by: cholzhauer on April 19, 2016, 06:45:49 PM
Maybe this will help

http://www.tldp.org/HOWTO/Linux+IPv6-HOWTO/hints-daemons-radvd.html