I am trying to use TRex v2.08 to generate the stateless traffic, and here is the piece of code to generate the traffic:
pkt_base = Ether(src=src_mac, dst=dst_mac) / IP() / UDP()
payload = 'x' * (max(64, int(l2frame_size)) - 46)
pkt = STLPktBuilder(pkt=pkt_base / payload)
s = [STLStream(name='test', packet=pkt, mode=STLTXCont())]
From what I see from the switch connected to my TRex, packets are being TX/RX with no problem. However, from the TRex console, I can only see packets are going out (TX), but not a single packet getting received (RX). If I change the code to something like:
pkt_base = Ether() / IP() / UDP()
to use the MAC defined in /etc/trex_cfg.yaml, TRex will work perfectly.
So is there a known bug which will cause problems when doing "MAC Override"?
Thanks very much!
Regards,
Yichen
I'm seeing a similar issue on TRex v2.08. I configure my MAC addresses to a certain value, but when I look at the packet capture while sending traffic from TRex, it picks up the MAC address configured in trex_cfg.yaml. I also set the ports to promiscuous mode, although here it is just outgoing and not incoming traffic, so that should not affect it. Can you point me to what could be wrong here?
Thanks and Regards,
Aparna
Regards,
Aparna