Date: Mon, 02 Oct 2000 18:30:14 +0900 From: Masaru Yokoi <masaru@turbolinux.co.jp> To: FreeBSD-gnats-submit@FreeBSD.org Subject: conf/21694: Multi network interface will not be work well in /etc/rc.network6. Message-ID: <20001002183014F.masaru@turbolinux.co.jp>
next in thread | raw e-mail | index | archive | help
>Number: 21694
>Category: conf
>Synopsis: Multi network interface will not be work well in /etc/rc.network6.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Oct 02 02:40:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Masaru Yokoi
>Release: FreeBSD 4.1.1-RELEASE i386
>Organization:
TurboLinux Japan, K.K.
>Environment:
* FreeBSD 4.1.1-RELEASE i386
* /etc/rc.network6 CVS Revision is 1.5.2.6
>Description:
In network6_pass1() in rc.network6 of shell script, it should do "ifconfig"
and "rtsol" for each network interfaces.
But now, it is using a variable (ipv6_network_interfaces) of whole of
IPv6 network interface. It should use valiable of each network interface
using with "for i in ${ipv6_network_interfaces}".
>How-To-Repeat:
* Prepare 2 or more NIC.
* Configure in /etc/rc.conf
---
ipv6_gateway_enable="NO"
ipv6_network_interfaces="AUTO"
---
>Fix:
Please apply this patch.
--- ./rc.network6 Wed Sep 27 21:19:30 2000
+++ /etc/rc.network6 Wed Sep 27 21:13:39 2000
@@ -190,14 +190,16 @@
sysctl -w net.inet6.ip6.forwarding=0
sysctl -w net.inet6.ip6.accept_rtadv=1
- case ${ipv6_network_interfaces} in
- lo0|gif*|stf*|faith*)
- ;;
- *)
- ifconfig ${ipv6_network_interfaces} up
- rtsol ${ipv6_network_interfaces}
- ;;
- esac
+ for i in ${ipv6_network_interfaces} ; do
+ case ${i} in
+ lo0|gif*|stf*|faith*)
+ ;;
+ *)
+ ifconfig ${i} up
+ rtsol ${i}
+ ;;
+ esac
+ done
# wait for DAD's completion (for global addrs)
sleep `sysctl -n net.inet6.ip6.dad_count`
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001002183014F.masaru>
