From cbed8db2a8ad2fb0abb82dfd7ad4e267456e9eb6 Mon Sep 17 00:00:00 2001 From: dougb Date: Sat, 17 Apr 2010 18:48:18 +0000 Subject: [PATCH] In case a user wants to configure only an IPv6 link-local address add an example that shows how to do it. --- etc/defaults/rc.conf | 1 + share/man/man5/rc.conf.5 | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf index a5da7c2417eb..48233bdb1cfb 100644 --- a/etc/defaults/rc.conf +++ b/etc/defaults/rc.conf @@ -211,6 +211,7 @@ ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration. #ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias entry. #ifconfig_ed0_ipx="ipx 0x00010010" # Sample IPX address family entry. #ifconfig_ed0_ipv6="RTADV" # Sample IPv6 entry for RA/rtsol(8) +#ifconfig_ed0_ipv6="inet6 auto_linklocal" # To configure only link-local #ifconfig_ed0_ipv6="inet6 2001:db8:1::1 prefixlen 64" # Sample IPv6 addr entry #ifconfig_ed0_alias0="inet6 2001:db8:2::1 prefixlen 64" # Sample IPv6 alias #ifconfig_fxp0_name="net0" # Change interface name from fxp0 to net0. diff --git a/share/man/man5/rc.conf.5 b/share/man/man5/rc.conf.5 index c0b358d4499d..e93205be5390 100644 --- a/share/man/man5/rc.conf.5 +++ b/share/man/man5/rc.conf.5 @@ -1303,6 +1303,13 @@ interface: ifconfig_ed0_ipv6="RTADV" .Ed .Pp +To configure only a link-local address on the +.Dq Li ed0 +interface: +.Bd -literal +ifconfig_ed0_ipv6="inet6 auto_linklocal" +.Ed +.Pp To disable RA the .Dq Li NORTADV option is available, although not required if manual