Lines Matching +full:set +full:- +full:up

1 .. SPDX-License-Identifier: GPL-2.0
10 .. _dsa-config-showcases:
13 -----------------------
37 The user interfaces depend on the conduit interface being up in order for them
42 - when a DSA user interface is brought up, the conduit interface is
43 automatically brought up.
44 - when the conduit interface is brought down, all DSA user interfaces are
71 * lan1: 192.0.2.1/30 (192.0.2.0 - 192.0.2.3)
72 * lan2: 192.0.2.5/30 (192.0.2.4 - 192.0.2.7)
73 * lan3: 192.0.2.9/30 (192.0.2.8 - 192.0.2.11)
76 * br0: 192.0.2.129/25 (192.0.2.128 - 192.0.2.255)
79 * br0: 192.0.2.129/25 (192.0.2.128 - 192.0.2.255)
80 * wan: 192.0.2.1/30 (192.0.2.0 - 192.0.2.3)
82 .. _dsa-tagged-configuration:
85 ----------------------------------
92 .. code-block:: sh
100 # brought up manually before the user ports.
101 ip link set eth0 up
103 # bring up the user interfaces
104 ip link set lan1 up
105 ip link set lan2 up
106 ip link set lan3 up
109 .. code-block:: sh
112 # brought up manually before the user ports.
113 ip link set eth0 up
115 # bring up the user interfaces
116 ip link set lan1 up
117 ip link set lan2 up
118 ip link set lan3 up
124 ip link set dev lan1 master br0
125 ip link set dev lan2 master br0
126 ip link set dev lan3 master br0
131 # bring up the bridge
132 ip link set dev br0 up
135 .. code-block:: sh
138 # brought up manually before the user ports.
139 ip link set eth0 up
141 # bring up the user interfaces
142 ip link set wan up
143 ip link set lan1 up
144 ip link set lan2 up
153 ip link set dev lan1 master br0
154 ip link set dev lan2 master br0
159 # bring up the bridge
160 ip link set dev br0 up
162 .. _dsa-vlan-configuration:
165 -------------------------------------
172 The configuration can only be set up via VLAN tagging and bridge setup.
174 .. code-block:: sh
182 # brought up manually before the user ports.
183 ip link set eth0 up
184 ip link set eth0.1 up
185 ip link set eth0.2 up
186 ip link set eth0.3 up
188 # bring up the user interfaces
189 ip link set lan1 up
190 ip link set lan2 up
191 ip link set lan3 up
197 ip link set dev br0 type bridge vlan_filtering 1
200 ip link set dev lan1 master br0
201 ip link set dev lan2 master br0
202 ip link set dev lan3 master br0
214 # bring up the bridge devices
215 ip link set br0 up
219 .. code-block:: sh
225 # brought up manually before the user ports.
226 ip link set eth0 up
227 ip link set eth0.1 up
229 # bring up the user interfaces
230 ip link set lan1 up
231 ip link set lan2 up
232 ip link set lan3 up
238 ip link set dev br0 type bridge vlan_filtering 1
241 ip link set dev lan1 master br0
242 ip link set dev lan2 master br0
243 ip link set dev lan3 master br0
244 ip link set eth0.1 master br0
254 # bring up the bridge
255 ip link set dev br0 up
258 .. code-block:: sh
265 # brought up manually before the user ports.
266 ip link set eth0 up
267 ip link set eth0.1 up
268 ip link set eth0.2 up
270 # bring up the user interfaces
271 ip link set wan up
272 ip link set lan1 up
273 ip link set lan2 up
279 ip link set dev br0 type bridge vlan_filtering 1
282 ip link set dev wan master br0
283 ip link set eth0.1 master br0
284 ip link set dev lan1 master br0
285 ip link set dev lan2 master br0
296 # bring up the bridge devices
297 ip link set br0 up
300 ------------------------------------
308 Up until kernel v4.14, DSA only supported user space management of bridge FDB
313 .. code-block:: sh
325 .. code-block:: sh
345 .. code-block:: sh
353 .. code-block:: sh
364 Script writers are therefore encouraged to use the ``master static`` set of
368 -----------------------------------
391 and DSA conduit will be used - the numerically first port from the firmware
392 description which has an ``ethernet`` property. It is up to the user to
404 .. code-block:: sh
407 ip -d link show dev swp0
412 ip link set swp0 type dsa master eth1
413 ip link set swp1 type dsa master eth0
414 ip link set swp2 type dsa master eth1
415 ip link set swp3 type dsa master eth0
418 ip link add bond0 type bond mode balance-xor && ip link set bond0 up
419 ip link set eth1 down && ip link set eth1 master bond0
420 ip link set swp0 type dsa master bond0
421 ip link set swp1 type dsa master bond0
422 ip link set swp2 type dsa master bond0
423 ip link set swp3 type dsa master bond0
424 ip link set eth0 down && ip link set eth0 master bond0
425 ip -d link show dev swp0
430 ip link add bond0 type bond mode balance-xor && ip link set bond0 up
431 ip link set eth0 down && ip link set eth0 master bond0
432 ip link set eth1 down && ip link set eth1 master bond0
433 ip -d link show dev swp0
449 upper interfaces (this includes LAG devices - the conduit must always be the LAG