From owner-freebsd-bugs Mon Oct 2 2:40:14 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CAABE37B66D for ; Mon, 2 Oct 2000 02:40:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id CAA70384; Mon, 2 Oct 2000 02:40:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from mail.turbolinux.co.jp (mail.turbolinux.co.jp [210.171.55.67]) by hub.freebsd.org (Postfix) with ESMTP id E698137B502 for ; Mon, 2 Oct 2000 02:32:13 -0700 (PDT) Received: from localhost (tlgw1.turbolinux.co.jp [210.171.55.80]) by mail.turbolinux.co.jp (8.9.3+3.2W/3.7Wpl2) with ESMTP id SAA31073 for ; Mon, 2 Oct 2000 18:32:10 +0900 Message-Id: <20001002183014F.masaru@turbolinux.co.jp> Date: Mon, 02 Oct 2000 18:30:14 +0900 From: Masaru Yokoi To: FreeBSD-gnats-submit@FreeBSD.org Subject: conf/21694: Multi network interface will not be work well in /etc/rc.network6. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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