summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2002-07-18 05:00:16 +0000
committerume <ume@FreeBSD.org>2002-07-18 05:00:16 +0000
commitc8703a911ad83b0f513197689a88ec949871f7ea (patch)
treec893d96e1d268f25c1dc17c878a78fcb80d38557 /etc
parent68bf681e90032f484bfc2eaa85094d80ee546457 (diff)
downloadFreeBSD-src-c8703a911ad83b0f513197689a88ec949871f7ea.zip
FreeBSD-src-c8703a911ad83b0f513197689a88ec949871f7ea.tar.gz
be able to configure to run an IPv6 routing daemon even on
an end node. Requested by: Masachika ISHIZUKA <ishizuka@ish.org> MFC after: 1 week
Diffstat (limited to 'etc')
-rw-r--r--etc/defaults/rc.conf2
-rw-r--r--etc/rc.d/network_ipv621
-rw-r--r--etc/rc.network621
3 files changed, 24 insertions, 20 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index cfb3de8..c517883 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -265,6 +265,8 @@ ipv6_router="/usr/sbin/route6d" # Name of IPv6 routing daemon.
ipv6_router_flags="" # Flags to IPv6 routing daemon.
#ipv6_router_flags="-l" # Example for route6d with only IPv6 site local
# addrs.
+#ipv6_router_flags="-q" # If you want to run a routing daemon on an end
+ # node, you should stop advertisement.
#ipv6_network_interfaces="ed0 ep0" # Examples for router
# or static configuration for end node.
# Choose correct prefix value.
diff --git a/etc/rc.d/network_ipv6 b/etc/rc.d/network_ipv6
index 406bde6..3e9a7c3 100644
--- a/etc/rc.d/network_ipv6
+++ b/etc/rc.d/network_ipv6
@@ -201,18 +201,19 @@ network6_pass1() {
# setup faith
network6_faith_setup
- case ${ipv6_gateway_enable} in
+ # ipv6_router
+ case ${ipv6_router_enable} in
[Yy][Ee][Ss])
- # ipv6_router
- case ${ipv6_router_enable} in
- [Yy][Ee][Ss])
- if [ -x ${ipv6_router} ]; then
- echo -n " ${ipv6_router}"
- ${ipv6_router} ${ipv6_router_flags}
- fi
- ;;
- esac
+ if [ -x ${ipv6_router} ]; then
+ echo -n " ${ipv6_router}"
+ ${ipv6_router} ${ipv6_router_flags}
+ fi
+ ;;
+ esac
+
+ case ${ipv6_gateway_enable} in
+ [Yy][Ee][Ss])
# rtadvd
# This should enabled with a great care.
# You may want to fine-tune /etc/rtadvd.conf.
diff --git a/etc/rc.network6 b/etc/rc.network6
index 406bde6..3e9a7c3 100644
--- a/etc/rc.network6
+++ b/etc/rc.network6
@@ -201,18 +201,19 @@ network6_pass1() {
# setup faith
network6_faith_setup
- case ${ipv6_gateway_enable} in
+ # ipv6_router
+ case ${ipv6_router_enable} in
[Yy][Ee][Ss])
- # ipv6_router
- case ${ipv6_router_enable} in
- [Yy][Ee][Ss])
- if [ -x ${ipv6_router} ]; then
- echo -n " ${ipv6_router}"
- ${ipv6_router} ${ipv6_router_flags}
- fi
- ;;
- esac
+ if [ -x ${ipv6_router} ]; then
+ echo -n " ${ipv6_router}"
+ ${ipv6_router} ${ipv6_router_flags}
+ fi
+ ;;
+ esac
+
+ case ${ipv6_gateway_enable} in
+ [Yy][Ee][Ss])
# rtadvd
# This should enabled with a great care.
# You may want to fine-tune /etc/rtadvd.conf.
OpenPOWER on IntegriCloud