Lines Matching +full:ip +full:- +full:block

1 .. SPDX-License-Identifier: GPL-2.0
10 .. _dsa-config-showcases:
13 -----------------------
42 - when a DSA user interface is brought up, the conduit interface is
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
95 ip addr add 192.0.2.1/30 dev lan1
96 ip addr add 192.0.2.5/30 dev lan2
97 ip addr add 192.0.2.9/30 dev lan3
101 ip link set eth0 up
104 ip link set lan1 up
105 ip link set lan2 up
106 ip link set lan3 up
109 .. code-block:: sh
113 ip link set eth0 up
116 ip link set lan1 up
117 ip link set lan2 up
118 ip link set lan3 up
121 ip link add name br0 type bridge
124 ip link set dev lan1 master br0
125 ip link set dev lan2 master br0
126 ip link set dev lan3 master br0
129 ip addr add 192.0.2.129/25 dev br0
132 ip link set dev br0 up
135 .. code-block:: sh
139 ip link set eth0 up
142 ip link set wan up
143 ip link set lan1 up
144 ip link set lan2 up
147 ip addr add 192.0.2.1/30 dev wan
150 ip link add name br0 type bridge
153 ip link set dev lan1 master br0
154 ip link set dev lan2 master br0
157 ip addr add 192.0.2.129/25 dev br0
160 ip link set dev br0 up
162 .. _dsa-vlan-configuration:
165 -------------------------------------
174 .. code-block:: sh
177 ip link add link eth0 name eth0.1 type vlan id 1
178 ip link add link eth0 name eth0.2 type vlan id 2
179 ip link add link eth0 name eth0.3 type vlan id 3
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
189 ip link set lan1 up
190 ip link set lan2 up
191 ip link set lan3 up
194 ip link add name br0 type bridge
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
210 ip addr add 192.0.2.1/30 dev eth0.1
211 ip addr add 192.0.2.5/30 dev eth0.2
212 ip addr add 192.0.2.9/30 dev eth0.3
215 ip link set br0 up
219 .. code-block:: sh
222 ip link add link eth0 name eth0.1 type vlan id 1
226 ip link set eth0 up
227 ip link set eth0.1 up
230 ip link set lan1 up
231 ip link set lan2 up
232 ip link set lan3 up
235 ip link add name br0 type bridge
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
252 ip addr add 192.0.2.129/25 dev br0
255 ip link set dev br0 up
258 .. code-block:: sh
261 ip link add link eth0 name eth0.1 type vlan id 1
262 ip link add link eth0 name eth0.2 type vlan id 2
266 ip link set eth0 up
267 ip link set eth0.1 up
268 ip link set eth0.2 up
271 ip link set wan up
272 ip link set lan1 up
273 ip link set lan2 up
276 ip link add name br0 type bridge
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
293 ip addr add 192.0.2.1/30 dev eth0.2
294 ip addr add 192.0.2.129/25 dev br0
297 ip link set br0 up
300 ------------------------------------
313 .. code-block:: sh
325 .. code-block:: sh
345 .. code-block:: sh
353 .. code-block:: sh
368 -----------------------------------
391 and DSA conduit will be used - the numerically first port from the firmware
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