Hetzner ipv6: Difference between revisions
From TykWiki
Jump to navigationJump to search
(Created page with "This is for rc.conf: <pre> ### v6 extra config due to weird v6 setup at hetzner ipv6_static_routes="gw" ipv6_route_gw="2a01:4f8:141:52a0::1 -iface re0" static_ndp_pairs="gw" s...") |
No edit summary |
||
Line 9: | Line 9: | ||
</pre> | </pre> | ||
Replace my values with your ipv6 default gateway and mac address. | Replace my values with your ipv6 default gateway's IP and mac address. | ||
You also need two rc.d scripts: <code>/etc/rc.d/static_ndp</code> (included in base from FreeBSD 9, if you need it find it [[http://svn.freebsd.org/base/head/etc/rc.d/static_ndp here]]). The other script, <code>/usr/local/etc/rc.d/v6_network_extra</code> is not included in FreeBSD (yet), it looks like this: | You also need two rc.d scripts: <code>/etc/rc.d/static_ndp</code> (included in base from FreeBSD 9, if you need it find it [[http://svn.freebsd.org/base/head/etc/rc.d/static_ndp here]]). The other script, <code>/usr/local/etc/rc.d/v6_network_extra</code> is not included in FreeBSD (yet), it looks like this: |
Revision as of 20:54, 29 February 2012
This is for rc.conf:
### v6 extra config due to weird v6 setup at hetzner ipv6_static_routes="gw" ipv6_route_gw="2a01:4f8:141:52a0::1 -iface re0" static_ndp_pairs="gw" static_ndp_gw="2a01:4f8:141:52a0::1 0:26:88:75:e7:95" v6_network_extra_enable="YES"
Replace my values with your ipv6 default gateway's IP and mac address.
You also need two rc.d scripts: /etc/rc.d/static_ndp
(included in base from FreeBSD 9, if you need it find it [here]). The other script, /usr/local/etc/rc.d/v6_network_extra
is not included in FreeBSD (yet), it looks like this:
#!/bin/sh # # ipv6 tunnels and default router # # PROVIDE: v6_network_extra # REQUIRE: NETWORKING static_ndp # KEYWORD: nojail . /etc/rc.subr name="v6_network_extra" start_cmd="v6_network_extra_start" v6_network_extra_start() { /sbin/route -n add -inet6 default 2a01:4f8:141:52a0::1 /etc/rc.d/static_ndp restart } load_rc_config $name run_rc_command "$1"
Remember to change your default gateway in this script as well.