Hi Hanoh,
Thanks much for your response.
I followed the below link
In Azure, I spinned up CentOS 7.9 VM (kernel version - 3.10.0-1160.6.1.e17.x86_64) with OFED 5.2-1.0.4.0.
Installation was successful and also ./trex-cfg could bind the ports
[root@trafficgencentos7 v2.89]# ./dpdk_setup_ports.py -t
+----+------+--------------+-------------------+-------------------------------------------------+-----------+----------+--------+
| ID | NUMA | PCI | MAC | Name | Driver | Linux IF | Active |
+====+======+==============+===================+=================================================+===========+==========+========+
| 0 | 0 | dded:00:02.0 | 00:0d:3a:b1:be:8f | MT27710 Family [ConnectX-4 Lx Virtual Function] | mlx5_core | eth2 | |
+----+------+--------------+-------------------+-------------------------------------------------+-----------+----------+--------+
[root@trafficgencentos7 v2.89]#
I could see eth0 and eth2 having same MAC
[root@trafficgencentos7 v2.89]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.11.29 netmask 255.255.255.240 broadcast 192.168.11.31
inet6 fe80::20d:3aff:feb1:be8f prefixlen 64 scopeid 0x20<link>
ether 00:0d:3a:b1:be:8f txqueuelen 1000 (Ethernet)
RX packets 394160 bytes 178414091 (170.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 432248 bytes 104356473 (99.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth2: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST> mtu 9238
ether 00:0d:3a:b1:be:8f txqueuelen 1000 (Ethernet)
RX packets 3524 bytes 3757291 (3.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 452531 bytes 105698311 (100.8 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
I have configured below in trex_cfg.yaml with my PCI address
#List of interfaces. Change to suit your setup. Use ./dpdk_setup_ports.py -s to see available options
interfaces : ["dummy","dded:00:02.0"]
low_end: true
port_info : # Port IPs. Change to suit your needs. In case of loopback, you can leave as is.
- ip : 1.1.1.1
default_gw : 2.2.2.2
- ip : 192.168.11.29
default_gw : 192.168.11.17
But when I start to ./t-rex-64 -i --astf --cfg /etc/trex_cfg.yaml
My dest (GW) MAC is NOT resolved but whereas if I change my trex_cfg.yaml to contain as below
interfaces : ["dummy","eth0"]
low_end: true
port_info : # Port IPs. Change to suit your needs. In case of loopback, you can leave as is.
- ip : 1.1.1.1
default_gw : 2.2.2.2
- ip : 192.168.11.29
default_gw : 192.168.11.17
Then the ./t-rex-64 is able to resolve GW MAC.
I have same GW and SRC IP in both cfg files but with DPDK port I couldn't resolve MAC.
Any further config mapping required here?
thx,
Vijayram