Hurricane Electric's IPv6 Tunnel Broker Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to Hurricane Electric's Tunnelbroker.net forums!

Author Topic: How to turn a Linux box into a v6 router?  (Read 1060 times)

icannmiddleboxes

  • Newbie
  • *
  • Posts: 2
    • View Profile
How to turn a Linux box into a v6 router?
« 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.
Logged

broquea

  • Sr. Network Engineer, HE.NET AS6939
  • Administrator
  • Hero Member
  • *****
  • Posts: 1667
    • View Profile
    • Another IPv6 Blog...
Re: How to turn a Linux box into a v6 router?
« Reply #1 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.
Logged

icannmiddleboxes

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: How to turn a Linux box into a v6 router?
« Reply #2 on: April 19, 2016, 03:17:46 PM »

Thanks for the quick relpy!  ;D

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.)

Logged

cholzhauer

  • Hero Member
  • *****
  • Posts: 2529
    • View Profile
Logged