misc/100799: rc.conf scripts don't create vlan interfaces
Tomas Podermanski
tpoder at cis.vutbr.cz
Tue Jul 25 06:50:11 UTC 2006
>Number: 100799
>Category: misc
>Synopsis: rc.conf scripts don't create vlan interfaces
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Jul 25 06:50:10 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Tomas Podermanski
>Release: 6.1
>Organization:
Brno university of technology
>Environment:
FreeBSD dev61.cis.vutbr.cz 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Thu Jun 1 15:14:04 CEST 2006 root at dev61.cis.vutbr.cz:/usr/src/sys/i386/compile/SERVER i386
>Description:
When I have vlan interfaces configured in rc.conf scripts them vlan interfaces are not create during system startup.
>How-To-Repeat:
Create line
ifconfig_vlan0="147.229.241.1/24 vlan 589 vlandev bge0"
in /etc/rc.conf
>Fix:
script /etc/rc.d/mkvlan with follow content:
#!/bin/sh
#
# PROVIDE: mkvlan
# BEFORE: netif
# KEYWORD: nojail
. /etc/rc.subr
. /etc/network.subr
name="mkvlan"
rcvar=`set_rcvar`
start_cmd="mkvlan_start"
stop_cmd="mkvlan_stop"
mkvlan_start()
{
echo -n "creating vlan interfaces... "
set | grep "ifconfig_vlan[0-9]*=" | while read ln ; do
ifn=`expr "${ln}" : "ifconfig_\(vlan[0-9]*\)=.*"`
echo -n "${ifn} "
ifconfig $ifn create
done
echo
}
mkvlan_stop()
{
}
load_rc_config $name
run_rc_command "$1"
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list