I am trex v2.90 stateless.
I am creating linux namespaces with vlan but on linux when i see i dont see the vlans,
Can someone help understand how the namespaces work with vlans?
Server start command : t-rex -i --software
trex_cfg:
- port_limit : 2
version: 2
#c : 3
interfaces: ['test', 'dummy']
stack : linux_based
low_end : true
low_end_core : 11
In trex:
========
trex(service)>ns show-node -p 0 --mac 00:00:00:02:03:04
Setting port 0 in with namespace configuration [SUCCESS]
wait_for_async_results [SUCCESS]
{'nodes': [{'bpf': '',
'ether': {'src': '00:00:00:02:03:04'},
'ipv4': {'dst': '2.2.2.11', 'src': '2.2.2.100'},
'ipv6': {'enabled': False},
'is-shared-ns': False,
'is_bird': False,
'linux-ns': 'trex-a-0-1',
'linux-veth-external': 'trex-a-0-1-T',
'linux-veth-internal': 'trex-a-0-1-L',
'vlan': {'tags': [622], 'tpids': []},
'vlan_filter': 'no_tcp_udp'}]}
trex(service)>
In Linux:
========
ip netns exec trex-a-0-1 ip -d link show trex-a-0-1-L
14: trex-a-0-1-L@if15: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9280 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether 00:00:00:02:03:04 brd ff:ff:ff:ff:ff:ff link-netnsid 0 promiscuity 0 minmtu 68 maxmtu 65535
veth addrgenmode eui64 numtxqueues 64 numrxqueues 64 gso_max_size 65536 gso_max_segs 65535 tso_max_size 524280 tso_max_segs 65535 gro_max_size 65536
No vlan seen here .
Capture in Trex:
==============
I see arp packets coming out with vlan
Capture in ip netns exec trex-a-0-1 tcpdump -i trex-a-0-1-L
================================================
Vlan header not seen in arp packets .
I see the arp resolution failing in DUT , so I am doubting if its because the arp response from linux namespace is missing vlan .
Can someone help clarify ? Am i missing something ?