From nobody Sat May 14 19:15:29 2022 X-Original-To: freebsd-net@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 F17601AD3C26 for ; Sat, 14 May 2022 19:15:38 +0000 (UTC) (envelope-from shuriku@shurik.kiev.ua) Received: from mail.flex-it.com.ua (mail.flex-it.com.ua [193.239.74.7]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4L0wG225pkz3s8N for ; Sat, 14 May 2022 19:15:38 +0000 (UTC) (envelope-from shuriku@shurik.kiev.ua) Received: from [93.183.208.50] (helo=[192.168.200.125]) by mail.flex-it.com.ua with esmtpsa (TLS1.3) tls TLS_AES_128_GCM_SHA256 (Exim 4.95 (FreeBSD)) (envelope-from ) id 1npxEf-000MwP-U7 for freebsd-net@freebsd.org; Sat, 14 May 2022 22:15:29 +0300 Message-ID: <24558996-2b83-87e8-8d76-e3517246aea9@shurik.kiev.ua> Date: Sat, 14 May 2022 22:15:29 +0300 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: Which EtherTypes are recognized for 802.1AD / QinQ ? Content-Language: en-US To: freebsd-net@freebsd.org References: From: Oleksandr Kryvulia In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4L0wG225pkz3s8N X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of shuriku@shurik.kiev.ua designates 193.239.74.7 as permitted sender) smtp.mailfrom=shuriku@shurik.kiev.ua X-Spamd-Result: default: False [-2.24 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[shurik.kiev.ua]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.94)[-0.935]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-net]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:35297, ipnet:193.239.72.0/22, country:UA]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N 13.05.22 12:14, I.C.H пише: > > Hi all, > > i allready asked the question in the FreeBSD Forums, but i was told to > better aks this question in the mailing list to be sure. > > You can find my question and all the answers given in this topic here: > https://forums.freebsd.org/threads/which-ethertypes-are-recognized-for-802-1ad-qinq.85152/ > > I will also quote the initial question at the end of this email. > > Thanks for clarify my question. > > Kind regards > I.C.H > > > Hi all, > > 802.1AD defines the EtherType / TPID as 0x88A8. > FreeBSD supports 802.1AD (QinQ tagging), see > https://www.freebsd.org/cgi/man.cgi?ifconfig(8) > -> vlanproto > > Before IEEE passed 802.1AD , there were proprietary standards for VLAN > stacking, often called 802.1QinQ or similar. Sometimes, vendors used > 0x9100, 0x9200 or 0x9300 as EtherType for the "outer" tag, but some > switches can also insert 0x8100 into another 0x8100. > > Today, its still possible to buy switches with QinQ-capability with > proprietary QinQ implementation which uses some non-802.1AD-compliant > EtherTypes. Not all offer the ability to change the EtherType to > 0x88A8 or define it by your own, so you have to deal with it. > > I am wondering, which EtherTypes are assigned internally in FreeBSD to > be handled as QinQ ? > > I googled a bit and found this, but i am not sure if it will answer my > question: https://reviews.freebsd.org/D21846 > > > Thanks for helping to clarify this topic. > > Kind regards > > Brifely reading sources I can tell that non-802.1ad tags supported only by ng_vlan(4).