From patchwork Thu Nov 23 13:45:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hangbin Liu X-Patchwork-Id: 13466269 X-Patchwork-Delegate: kuba@kernel.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gNuAS/y4" Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17DCBD42 for ; Thu, 23 Nov 2023 05:46:35 -0800 (PST) Received: by mail-pj1-x1036.google.com with SMTP id 98e67ed59e1d1-285196aaecaso791703a91.0 for ; Thu, 23 Nov 2023 05:46:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700747194; x=1701351994; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=m8oUo9C5xcva8KJDqQvql+tezZAPIpLAGnaZWqMceG4=; b=gNuAS/y4XC+na0ZFB3qxdRz7dItiF7DvI5ePNxOlvB6L/6Sm0nP/WLyu/IJbbfFW3a xyBjwZaislCQkA0+r6Bag1XZ+xp3R57tqIzbguNQ6QPg6Kvx2TLxSLVroTahm5MjcSoM 0keyf7g245SAk5tFyENJ+23mUZa5TDifjMjMm567jUA45wqVzcrMeoOFLjhWvxldNmWU McLUle6zN9wxzsZQEJfIq/FKNqLm+7cqRVwkKNW6rV0h2yQIrY1GDPWIpi2XalQDGQm9 KnscLCCirmgYV8uLOEuZ7caA241krQC1GBhzjtWByVB4/DQoB7wRUt5ULLVK2hFaO+dO P5Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700747194; x=1701351994; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=m8oUo9C5xcva8KJDqQvql+tezZAPIpLAGnaZWqMceG4=; b=GZegClyc5sa4xvtO5SVToZF8hAvEvzO5Ag2UjQ6zazfOi0sXgs4+jgiq0gd05eq2yh GIDy9MeAUkkj187xWD4SzyTbzWJ9OeHNFPBPt8/Sj0a+JrENlUQuVqNPKvY6sroRhXSu O0VggkTsRj+GGqb7aKrvIX39xWCD4MQqWSh49b0gjXqtGuRgmrZwUncIH7Yj+EkhUt87 /ZWhlcshNfUlVlR6IfTPmzK5QBJg2B18icHfgHmTzYdIU2i01RTlWsRIdQmOary3g3G5 2RIJtkuc2jkL7sjbmWFoUlzxppwHRGdzNg8pd6iUNUly6CyGulFaBy3fHfRFTD7jpOaF YdQQ== X-Gm-Message-State: AOJu0Yw6RIATrlD0BrTOs8hri7BQVP9tadjXd5nj1PRWSwUOuyW3mTyW F426S8rAqXZQxOjuP//jwhPpt1jpK0fZzscy X-Google-Smtp-Source: AGHT+IEJq5XWKbHo8kngvVlJ8lzWLbh5bOpr1TRYMiCURJJEvv4ijK+Yecb6Hve0+Yzf0UQO8gliRQ== X-Received: by 2002:a17:90a:c:b0:283:2612:714a with SMTP id 12-20020a17090a000c00b002832612714amr5205177pja.36.1700747193759; Thu, 23 Nov 2023 05:46:33 -0800 (PST) Received: from Laptop-X1.redhat.com ([43.228.180.230]) by smtp.gmail.com with ESMTPSA id 29-20020a17090a195d00b0028328057c67sm1414210pjh.45.2023.11.23.05.46.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 05:46:33 -0800 (PST) From: Hangbin Liu To: netdev@vger.kernel.org Cc: "David S . Miller" , David Ahern , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Ido Schimmel , Nikolay Aleksandrov , Roopa Prabhu , Stephen Hemminger , Florian Westphal , Andrew Lunn , Florian Fainelli , Vladimir Oltean , Jiri Pirko , Marc Muehlfeld , Hangbin Liu Subject: [PATCHv2 net-next 06/10] docs: bridge: add VLAN doc Date: Thu, 23 Nov 2023 21:45:49 +0800 Message-ID: <20231123134553.3394290-7-liuhangbin@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231123134553.3394290-1-liuhangbin@gmail.com> References: <20231123134553.3394290-1-liuhangbin@gmail.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org Add VLAN part for bridge document. Signed-off-by: Hangbin Liu Acked-by: Nikolay Aleksandrov --- Documentation/networking/bridge.rst | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Documentation/networking/bridge.rst b/Documentation/networking/bridge.rst index 1fd339e48129..f70f42ab7396 100644 --- a/Documentation/networking/bridge.rst +++ b/Documentation/networking/bridge.rst @@ -136,6 +136,35 @@ Proper configuration of STP parameters, such as the bridge priority, can influence which bridge becomes the Root Bridge. Careful configuration can optimize network performance and path selection. +VLAN +==== + +A LAN (Local Area Network) is a network that covers a small geographic area, +typically within a single building or a campus. LANs are used to connect +computers, servers, printers, and other networked devices within a localized +area. LANs can be wired (using Ethernet cables) or wireless (using Wi-Fi). + +A VLAN (Virtual Local Area Network) is a logical segmentation of a physical +network into multiple isolated broadcast domains. VLANs are used to divide +a single physical LAN into multiple virtual LANs, allowing different groups of +devices to communicate as if they were on separate physical networks. + +Typically there are two VLAN implementations, IEEE 802.1Q and IEEE 802.1ad +(also known as QinQ). IEEE 802.1Q is a standard for VLAN tagging in Ethernet +networks. It allows network administrators to create logical VLANs on a +physical network and tag Ethernet frames with VLAN information, which is +called *VLAN-tagged frames*. IEEE 802.1ad, commonly known as QinQ or Double +VLAN, is an extension of the IEEE 802.1Q standard. QinQ allows for the +stacking of multiple VLAN tags within a single Ethernet frame. The Linux +bridge supports both the IEEE 802.1Q and `802.1AD +`_ +protocol for VLAN tagging. + +`VLAN filtering `_ +on a bridge is disabled by default. After enabling VLAN filtering on a bridge, +it will start forwarding frames to appropriate destinations based on their +destination MAC address and VLAN tag (both must match). + FAQ ===