Hi Venkatesh, On Aug 21, 2014, at 7:49 AM, Venkatesh Vivekanandan <[email protected]<mailto:[email protected]>> wrote:
Hi Keith, Can you please let us know how do we set dest mac in Pktgen-dpdk?. For eg, if there are 2 interfaces eth0(a0:36:9f:13:89:08) and eth1(a0:36:9f:13:89:0a), pktgen comes up with eth0->eth1 as a0:36:9f:13:89:08 to a0:36:9f:13:89:0a and eth1->eth0 as a0:36:9f:13:89:0a to a0:36:9f:13:89:08 This is absolutely fine. But i have a setup where eth0<->eth2 and eth1<->eth3 connected physically back to back. eth2<->eth3 forwarding is running on, so the flow of packet is eth0(pktgen)->eth2->eth3->eth1(pktgen) and vice versa If you want to change the single packet mode destination MAC address you can use ‘set mac <portlist> ethernet-address’ command. set mac 0 00:11:22:33:44:55 will change the destination MAC address for port 0. Your email seems to suggest you may really want to change the port source MAC address is this true? Changing the source MAC is harder as Pktgen only takes the source MAC address from the hardware. I think using ethtool you can modify the NIC MAC address, but I have never tried to change the address. I want to set eth0->eth1 as a0:36:9f:13:89:08 to c0:c6:9f:13:89:08. Can this be done? Since we don't create the packet we dont have any choice other than setting dstmac to c0:c6:9f:13:89:08, otherwise packets will be dropped at eth2 interface. Other workaround is to enable promiscuous mode at eth2 which we don't want to do at this point of time. Thanks, Venkatesh. Let me know if that helps. ++Keith Keith Wiles, Principal Technologist with CTO office, Wind River mobile 972-213-5533
_______________________________________________ lng-odp mailing list [email protected] http://lists.linaro.org/mailman/listinfo/lng-odp
