Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| docs:guide-user:network:dsa:converting-to-dsa [2021/08/08 18:55] – Copy/paste from arinc9's original in :playground:richb:converting-to-dsa richb-hanover | docs:guide-user:network:dsa:converting-to-dsa [2023/05/17 02:11] – Adding a guided tutorial for DSA saudiqbal | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| Some OpenWrt 21.02 (and newer) devices use DSA for configuring network interfaces. | Some OpenWrt 21.02 (and newer) devices use DSA for configuring network interfaces. | ||
| - | If you are upgrading your router to a firmware version that uses DSA, you will need to do the following: | + | If you are upgrading your router to a firmware version that uses DSA, you should read this page. |
| - | (Note: There is a companion [[: | + | **Note:** There is a companion [[: |
| + | |||
| + | **Note:** Also check the [[https:// | ||
| + | |||
| + | **Note**: DSA support does not affect wireless configuration in ''/ | ||
| + | |||
| + | **Note:** An easy to use [[https:// | ||
| //This page is a Work In Process. If you can contribute your knowledge, we would be pleased for the help.// | //This page is a Work In Process. If you can contribute your knowledge, we would be pleased for the help.// | ||
| - | ==== Bridge all switch ports ==== | ||
| - | Remove | + | ===== Bridge |
| + | |||
| + | Gather | ||
| ===== VLAN Configuration ===== | ===== VLAN Configuration ===== | ||
| Line 19: | Line 26: | ||
| If you specify br0.2 as the " | If you specify br0.2 as the " | ||
| - | * This configuration on swconfig is the same as this on DSA | + | ==== swconfig |
| + | |||
| + | Here is a comparison of VLAN configuration | ||
| + | |||
| + | swconfig: | ||
| {{: | {{: | ||
| + | |||
| + | < | ||
| + | config switch | ||
| + | option name ' | ||
| + | option reset ' | ||
| + | option enable_vlan ' | ||
| + | |||
| + | config switch_vlan | ||
| + | option device ' | ||
| + | option vlan ' | ||
| + | option ports '0 1 2 3 5t' | ||
| + | option vid ' | ||
| + | |||
| + | config switch_vlan | ||
| + | option device ' | ||
| + | option vlan ' | ||
| + | option ports '4 6t' | ||
| + | option vid ' | ||
| + | </ | ||
| + | |||
| + | dsa: | ||
| {{: | {{: | ||
| - | ==== Local ==== | + | < |
| + | config device | ||
| + | option type ' | ||
| + | option name ' | ||
| + | list ports ' | ||
| + | list ports ' | ||
| + | list ports ' | ||
| + | list ports ' | ||
| + | list ports ' | ||
| - | Local option will automatically assign the specified VLAN ID on the bridge | + | config |
| + | option device ' | ||
| + | option vlan ' | ||
| + | list ports ' | ||
| + | list ports ' | ||
| + | list ports ' | ||
| + | list ports ' | ||
| - | If you don't want to tag the router for a VLAN on DSA, you can disable this option | + | config bridge-vlan |
| + | option device | ||
| + | option | ||
| + | list ports 'wan:u*' | ||
| + | </ | ||
| - | ==== Egress untagged and PVID (Port VLAN ID) ==== | + | ==== Local ==== |
| - | // | + | Local option will automatically assign the specified |
| + | |||
| + | If you don't want the router to be involved in that VLAN, you can disable this option and run '' | ||
| + | |||
| + | ==== Egress Untagged, Egress Tagged and PVID ==== | ||
| **Untagged Traffic**: Traffic between devices where there' | **Untagged Traffic**: Traffic between devices where there' | ||
| - | **Ingress**: | + | **Ingress**: |
| - | * **PVID**: | + | * **PVID**: |
| - | **Egress**: Traffic going out of the switch | + | **Egress**: Traffic going out of the bridge |
| - | * **Egress untagged**: | + | * **Egress untagged**: |
| + | * **Egress tagged**: Frames will leave the bridge | ||
| + | |||
| + | ==== Egress Untagged, Egress Tagged and PVID Examples ==== | ||
| + | |||
| + | Untagged ingress from the second interface is assigned to VLAN ID 600 in both cases. | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Untagged ingress from the second interface is assigned to VLAN ID 601. | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Untagged ingress from the third interface is discarded. | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Untagged ingress from the third interface is assigned to VLAN 600. | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Untagged ingress from the third interface is assigned to VLAN 601. | ||
| - | To be able to transmit and receive packets on the same VLAN (default way of swconfig), have the PVID and egress untagged on the same VLAN ID for a port. | + | {{: |
| ==== Wireless ==== | ==== Wireless ==== | ||