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

1 .. SPDX-License-Identifier: GPL-2.0
10 .. _dsa-config-showcases:
13 -----------------------
61 * lan1: 192.0.2.1/30 (192.0.2.0 - 192.0.2.3)
62 * lan2: 192.0.2.5/30 (192.0.2.4 - 192.0.2.7)
63 * lan3: 192.0.2.9/30 (192.0.2.8 - 192.0.2.11)
66 * br0: 192.0.2.129/25 (192.0.2.128 - 192.0.2.255)
69 * br0: 192.0.2.129/25 (192.0.2.128 - 192.0.2.255)
70 * wan: 192.0.2.1/30 (192.0.2.0 - 192.0.2.3)
72 .. _dsa-tagged-configuration:
75 ----------------------------------
84 .. code-block:: sh
87 ip addr add 192.0.2.1/30 dev lan1
88 ip addr add 192.0.2.5/30 dev lan2
89 ip addr add 192.0.2.9/30 dev lan3
92 ip link set eth0 up
95 ip link set lan1 up
96 ip link set lan2 up
97 ip link set lan3 up
102 .. code-block:: sh
105 ip link set eth0 up
108 ip link set lan1 up
109 ip link set lan2 up
110 ip link set lan3 up
113 ip link add name br0 type bridge
116 ip link set dev lan1 master br0
117 ip link set dev lan2 master br0
118 ip link set dev lan3 master br0
121 ip addr add 192.0.2.129/25 dev br0
124 ip link set dev br0 up
129 .. code-block:: sh
132 ip link set eth0 up
135 ip link set wan up
136 ip link set lan1 up
137 ip link set lan2 up
140 ip addr add 192.0.2.1/30 dev wan
143 ip link add name br0 type bridge
146 ip link set dev lan1 master br0
147 ip link set dev lan2 master br0
150 ip addr add 192.0.2.129/25 dev br0
153 ip link set dev br0 up
155 .. _dsa-vlan-configuration:
158 -------------------------------------
168 .. code-block:: sh
171 ip link add link eth0 name eth0.1 type vlan id 1
172 ip link add link eth0 name eth0.2 type vlan id 2
173 ip link add link eth0 name eth0.3 type vlan id 3
176 ip link set eth0 up
177 ip link set eth0.1 up
178 ip link set eth0.2 up
179 ip link set eth0.3 up
182 ip link set lan1 up
183 ip link set lan2 up
184 ip link set lan3 up
187 ip link add name br0 type bridge
190 ip link set dev br0 type bridge vlan_filtering 1
193 ip link set dev lan1 master br0
194 ip link set dev lan2 master br0
195 ip link set dev lan3 master br0
203 ip addr add 192.0.2.1/30 dev eth0.1
204 ip addr add 192.0.2.5/30 dev eth0.2
205 ip addr add 192.0.2.9/30 dev eth0.3
208 ip link set br0 up
214 .. code-block:: sh
217 ip link add link eth0 name eth0.1 type vlan id 1
220 ip link set eth0 up
221 ip link set eth0.1 up
224 ip link set lan1 up
225 ip link set lan2 up
226 ip link set lan3 up
229 ip link add name br0 type bridge
232 ip link set dev br0 type bridge vlan_filtering 1
235 ip link set dev lan1 master br0
236 ip link set dev lan2 master br0
237 ip link set dev lan3 master br0
238 ip link set eth0.1 master br0
246 ip addr add 192.0.2.129/25 dev br0
249 ip link set dev br0 up
254 .. code-block:: sh
257 ip link add link eth0 name eth0.1 type vlan id 1
258 ip link add link eth0 name eth0.2 type vlan id 2
261 ip link set eth0 up
262 ip link set eth0.1 up
263 ip link set eth0.2 up
266 ip link set wan up
267 ip link set lan1 up
268 ip link set lan2 up
271 ip link add name br0 type bridge
274 ip link set dev br0 type bridge vlan_filtering 1
277 ip link set dev wan master br0
278 ip link set eth0.1 master br0
279 ip link set dev lan1 master br0
280 ip link set dev lan2 master br0
288 ip addr add 192.0.2.1/30 dev eth0.2
289 ip addr add 192.0.2.129/25 dev br0
292 ip link set br0 up