Modify stl/imix.py to add vlans depending on physical port?
113 views
Skip to first unread message
Sorken
unread,
Apr 1, 2021, 9:11:50 AM4/1/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to TRex Traffic Generator
Hi
I have a four port gbe card where I would like to run a modified stl/imix.py script where let say port 0 would add vlan tag=30 and port 2 should add vlan tag=40. Port 1 and 3 should use the vlan added from the trex-console (30 and 40). I have tried "Ether()/Dot1Q(vlan=30)/IP()/UDP()" but of course all packets from all port will than have vlan tag=30 on them which is not what I intended.
Hope someone can help
All the best Assar W.
Besart Dollma
unread,
Apr 5, 2021, 7:29:26 AM4/5/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to TRex Traffic Generator
Hi Assar,
You can attach different streams to different ports.
There are plenty of examples in the documentation that address this.