/ OpenBSD

OpenBSD 6.0 - Configure your static IPv6 network

If your internet provider gives you an IPv6 connectivity, you can add one or multiple addresses to your workstation/server.

In my case, Orange, my provider, gives me the following IPv6 (bloc/prefix) :

2a01:cb06:3e0:eb00::/56

Under OpenBSD, the static configuration is made with two files :

  • /etc.hostname.[device] where you can configure the addresses allocated to a specific network device.
  • /etc/mygate allowing you to enable default network routes.

Let's start by configuring our network interface (re0 in my case) :

# vi /etc/hostname.re0 

inet 192.168.1.3     
255.255.255.0 
inet6 2a01:cb06:3e0:eb00::cafe 56 
up

Finally, let's add the IPv6 default route in mygate :

# vi /etc/mygate 

192.168.1.1 
2a01:cb06:3e0:eb00::

Need help ?

CagedMonster

CagedMonster

« I know everyone I've been everywhere I know everything Because I'm everybody » Ether - Nothingface

Read More