Lines Matching +full:add +full:- +full:on
1 .. SPDX-License-Identifier: GPL-2.0
17 DSA driver; see ``Documentation/networking/dsa/dsa.rst`` for details on the
20 The switch is, if possible, configured to enable a Broadcom specific 4-bytes
26 The configuration of the device depends on whether or not tagging is
30 configuration described in the :ref:`dsa-config-showcases`.
33 ----------------------------------
38 See :ref:`dsa-tagged-configuration`.
41 -------------------------------------
48 The configuration slightly differ from the :ref:`dsa-vlan-configuration`.
54 In difference to the configuration described in :ref:`dsa-vlan-configuration`
56 single port and gateway configuration, while there is no need to add an extra
64 .. code-block:: sh
66 # tag traffic on CPU port
67 ip link add link eth0 name eth0.1 type vlan id 1
68 ip link add link eth0 name eth0.2 type vlan id 2
69 ip link add link eth0 name eth0.3 type vlan id 3
83 ip link add name br0 type bridge
88 # add ports to bridges
93 # tag traffic on ports
94 bridge vlan add dev lan1 vid 2 pvid untagged
96 bridge vlan add dev lan2 vid 3 pvid untagged
100 ip addr add 192.0.2.1/30 dev eth0.1
101 ip addr add 192.0.2.5/30 dev eth0.2
102 ip addr add 192.0.2.9/30 dev eth0.3
111 .. code-block:: sh
113 # tag traffic on CPU port
114 ip link add link eth0 name eth0.1 type vlan id 1
126 ip link add name br0 type bridge
131 # add ports to bridge
138 ip addr add 192.0.2.129/25 dev br0
146 .. code-block:: sh
148 # tag traffic on CPU port
149 ip link add link eth0 name eth0.1 type vlan id 1
150 ip link add link eth0 name eth0.2 type vlan id 2
163 ip link add name br0 type bridge
168 # add ports to bridges
174 # tag traffic on ports
175 bridge vlan add dev wan vid 2 pvid untagged
179 ip addr add 192.0.2.1/30 dev eth0.2
180 ip addr add 192.0.2.129/25 dev br0