nxp-archive / openil

OpenIL is an open source project based on Buildroot and designed for embedded industrial solution.
Other
136 stars 55 forks source link

For LS1021ATSN, how to modify VLAN priority during fowarding #97

Open chenyingxiu opened 3 years ago

chenyingxiu commented 3 years ago

hello, I have connected two PCs to the LS1021ATSN switch(PC1 is connected to the swp2 port for sending Ethernet flows, PC2 is connected to the swp5 port for recieving flows by Wireshark).

probelm

Can I use my LS1021ATSN to modify a nomal Ethernet flow to a VLAN flow with priority I want ?

viroment

OpenIL v1.9

network

PC1(192.168.200.200)-->swp2(LS1021ATSN switch)swp5-->PC2(192.168.200.201)

current work

ip link set dev br0 type bridge vlan_filtering 1 bridge vlan add dev swp5 vid 1 pvid Below is my VLAN Config

port    vlan ids
swp5     1 PVID  
swp2     1 PVID Egress Untagged  
swp3     1 PVID Egress Untagged 
swp4     1 PVID Egress Untagged 
br0      1 PVID Egress Untagged 

current result

If I send nomal Ethernet flows such as tcp packets without VLAN from PC1, I can get flows with VLAN which PRI is 0, DEI is 0 and ID is 1.