From nobody Wed Jan 12 04:10:30 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E18841939F2E for ; Wed, 12 Jan 2022 04:10:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JYYxy4KFXz4rX3 for ; Wed, 12 Jan 2022 04:10:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 74C4525FAC for ; Wed, 12 Jan 2022 04:10:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 20C4AUMA092093 for ; Wed, 12 Jan 2022 04:10:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 20C4AUg0092092 for bugs@FreeBSD.org; Wed, 12 Jan 2022 04:10:30 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 261136] ifconfig vlan option parsing is overly fussy Date: Wed, 12 Jan 2022 04:10:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: darius@dons.net.au X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641960630; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LDTouWDHLtVmaxktpj+zNIcCnlJhGr4a9O0ogY0NFXs=; b=Npb40i0pSHiMq5e9npaTNCqYDh54OHgWZHvw0ZHe39Tey3S6qPsvJWAVNTXPaV6zdBae/d N5QPKY17pwTMvq9tAFlr69TLs6qSvajURvgmJLl9t1xy4MGmrWvtf3FV5ih2uhvjZ+Cn6i yG7+rzAISFIISQ4sKP8VkgNPrT01LrUJc0PqElHSFuBtzU2s/lwEXr5TauaYwPwZZ4LXXy n4l6SMHn4JAWX/dKl0tyc3oklZbSSjabRRSzPCTaaC8bPFlGjEGVgV3HLpPAFscFyZ5ohL FKf3iEgMdoLIJbWswNLsXGQ8ZS3qtr05I7AMJxsYUWZ14CmPgf2NMxqH8RgM+g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641960630; a=rsa-sha256; cv=none; b=et9BwssEBWg6UfQfYM3kpwuuvSRQeO+oL5XmxAik7FcXY9yUj3QjqIXo8dJcTDNzswvkhk sA1n5G39y0MRv5kxy+8kjNVgLvWtMBEg7bjtx8LQLLOfzGOfxXVqjbJqdD1Nci2Wbmsk46 18GriB/ShMeQ3uBikZ0vX7JGoUapsaeIOHMKc0wc6nl6RjfDn0RTDNspcQa5gPj+MbCWiI 9I6imx3vOJAxoylDZCLq1LO/+iX6IT36vgC7nJAqRYy/CIpjcd9q6UDZ3mEn02mnf/FB3B msQNbTxb/1KO5fQHev8BRGi7vxBJB+Y9UtwRYoptCjzdQgoqkzKC8fLeMaL/fg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261136 Bug ID: 261136 Summary: ifconfig vlan option parsing is overly fussy Product: Base System Version: 13.0-STABLE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: darius@dons.net.au The VLAN chapter of the handbook (https://docs.freebsd.org/en/books/handbook/advanced-networking/#network-vl= an) lists several examples which do not work in FreeBSD 13. eg [test13 14:34] ~ >sudo ifconfig video.5 create vlan 5 vlandev video name cameras inet 192.168.20.20/24 ifconfig: ambiguous vlan specification [test13 14:34] ~ >sudo ifconfig em0.5 create vlan 5 vlandev em0 inet 192.168.20.20/24 ifconfig: ambiguous vlan specification I attempted to be clever with this: [test13 14:31] ~ >sudo ifconfig vlan create name em0.5 vlandev em0 vlan 5 192.168.200.0/24 em0.5 However ifconfig shows that it did not assign the vlandev or vlan: [test13 14:31] ~ >ifconfig em0: flags=3D8863 metric 0 mtu 1500 =20=20=20=20=20=20=20 options=3D481009b ether 00:0c:29:6c:45:cd inet6 fe80::20c:29ff:fe6c:45cd%em0 prefixlen 64 scopeid 0x1 inet6 2001:44b8:1d2:8900:20c:29ff:fe6c:45cd prefixlen 64 autoconf inet 203.31.81.137 netmask 0xffffff00 broadcast 203.31.81.255 media: Ethernet autoselect (1000baseT ) status: active nd6 options=3D23 em0.5: flags=3D8003 metric 0 mtu 1500 ether 00:00:00:00:00:00 inet 192.168.200.0 netmask 0xffffff00 broadcast 192.168.200.255 inet6 fe80::20c:29ff:fe6c:45cd%em0.5 prefixlen 64 tentative scopeid= 0x3 groups: vlan vlan: 0 vlanproto: 0x0000 vlanpcp: 0 parent interface: nd6 options=3D21 The only working way I have found is as follows: ifconfig vlan0 create ifconfig vlan0 name em0.5 ifconfig em0.5 vlan 5 vlandev em0 Looks like this was broken by c7cffd65c5d858425e90b847d2e8e583e3b13bf7 --=20 You are receiving this mail because: You are the assignee for the bug.=