[Bug 256767] ifconfig(8) NOAUTO and rc.conf(5): untimely configuration (up) of a network interface when it should be down

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 22 Jun 2021 08:48:59 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256767

            Bug ID: 256767
           Summary: ifconfig(8) NOAUTO and rc.conf(5): untimely
                    configuration (up) of a network interface when it
                    should be down
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs_at_FreeBSD.org
          Reporter: grahamperrin_at_gmail.com

Created attachment 225988
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=225988&action=edit
Screen recording: wlan0 properly down, then brought up; gif0 unexpectedly up,
then taken down

man 5 rc.conf

> …
> If the ifconfig_⟨interface⟩ contains the keyword “NOAUTO”
> then the interface will not be configured at boot or by
> /etc/pccard_ether when network_interfaces is set to “AUTO”.
> …

With ifconfig_gif0_ipv6 set to include NOAUTO before a restart of the operating
system, the interface was unexpectedly up following a restart. 

Relevant lines from the attached screen recording: 

% grep ifconfig_wlan0 /etc/rc.conf
ifconfig_wlan0="WPA SYNCDHCP NOAUTO"
% grep ifconfig_gif /etc/rc.conf | grep -v \# | cut -c 1-26,66-100
ifconfig_gif0_ipv6="inet6  prefixlen 128 NOAUTO"
% 

Showing the ups and downs: gkrellm
<https://www.freshports.org/sysutils/gkrellm2>

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Tue Jun 22 2021 - 08:48:59 UTC

Original text of this message