DaemonForums  

Go Back   DaemonForums > Miscellaneous > Guides

Guides All Guides and HOWTO's.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 11th March 2013
sysfu sysfu is offline
Port Guard
 
Join Date: Jun 2008
Posts: 36
Default Howto: Automatically configure OpenBSD as DHCPv6 IPv6 client at boot

1. Setup LAN router as DHCPv6 server. For example: http://doc.pfsense.org/index.php/Using_IPv6_on_2.0

2. Install wide-dhcpv6 package;
Code:
sudo pkg_add -iv wide-dhcpv6
3. Copy the dhcp6c.conf file to /etc
Code:
sudo cp /usr/local/share/examples/wide-dhcpv6/dhcp6c.conf.sample /etc/dhcp6c.conf
4. Edit dhcp6c.conf like so, editing out the other examples and substituting the correct network interface name for this section
Code:
# The following is a sample configuration for a client on a LAN
# where IPv6 addresses are assigned via DHCPv6 ("stateful address
# assignment"). Use this if you want the client to query the
# DHCPv6 server for an IPv6 address and for DNS servers, as in
# traditional IPv4 DHCP.

interface <your interface name here> {
        send ia-na 0;
        send rapid-commit;
        send domain-name-servers;
};

id-assoc na {
};
5. edit the appropriate /etc/hostname.if file for your network adapter and add the line "rtsol"

6. add a line to /etc/rc.local like this:
Code:
/usr/local/sbin/dhcp6c -c /etc/dhcp6c.conf <your interface goes here>
Here's a one-liner you can copy-paste after substituting your interface
Code:
echo """ echo "/usr/local/sbin/dhcp6c -c /etc/dhcp6c.conf <your interface goes here>" >> /etc/rc.local """|sudo sh
7. add these two lines to /etc/sysctl.conf

Code:
net.inet6.icmp6.rediraccept=1
net.inet6.ip6.accept_rtadv=1
8. Reboot and check to see if the adapter pulled an IPv6 address. You should see two, the first autoconfigured one starting with fe80:: and the second one being your IPv6 address pulled from the DHCPv6 server.
Code:
ifconfig <your interface name goes here> | grep inet6
9. Test connectivity by pinging an IPv6 host
Code:
ping6 ipv6.google.com
Reply With Quote
Reply

Tags
howto, ipv6, network, wide-dhcpv6

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenBSD Configure OpenBSD Sendmail with SASL J65nko News 3 18th March 2013 01:53 AM
How to configure OpenBSD (5.1) to make use of Comcast's native dual stack IPv6 SlyM OpenBSD General 7 11th March 2013 10:27 PM
With World IPv6 Launch, IPv6 on by default will be the new normal J65nko News 0 29th March 2012 07:59 PM
OBSD client hangs mounting NFS; Linux client doesn't amorphousone OpenBSD General 7 26th August 2010 05:21 AM
HOWTO: Install and configure NVIDIA drivers on FreeBSD tangram Guides 2 29th March 2009 08:23 PM


All times are GMT. The time now is 02:12 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick