Hi All ,
This is in continuation to my previous post titled "trex_stack_linux_based.cpp- Need help in understanding on how arp and ping works when linux_based namespaces are configured ?"
I could not post there hence creating a new one.
When I have namespaces, I see that linux is not forwarding packets as the mac address of namespace doesn't match the linux interface's mac address. So , I would like to understand how trex associates linux namespaces with linux interface bound to trex .
Here , the linux interface test is bound to trex.
- port_limit: 2
version : 2
#c : 3
interfaces: ['test', 'dummy']
stack : linux_based
low_end : true
low_end_core: 15
How are namespaces further associated to test ? Please clarify , so that i can use it to debug my packet forwarding failure
From code we only see these commands executed where there is no association to test.
stack going to run: ip netns add trex-a-0-0
stack going to run: ip link add trex-a-0-0-T type veth peer name trex-a-0-0-L
stack going to run: sysctl net.ipv6.conf.trex-a-0-0-T.disable_ipv6=1
stack going to run: ip link set trex-a-0-0-T mtu 9280 up
stack going to run: ip link set trex-a-0-0-L netns trex-a-0-0
stack going to run: ip netns exec trex-a-0-0 sysctl net.ipv6.conf.trex-a-0-0-L.disable_ipv6=1
stack going to run: ip netns exec trex-a-0-0 ip link set trex-a-0-0-L mtu 9280 up
stack going to run: ip netns exec trex-a-0-0 ip link set dev trex-a-0-0-L address 06:10:ab:e3:cf:ae