IPv6 /etc/trex_cfg.yaml

1,118 views
Skip to first unread message

Kfear Oshri

unread,
May 10, 2021, 12:24:01 PM5/10/21
to TRex Traffic Generator
Can anyone please share his/her
'/etc/trex_cfg.yaml' file

I need to run ASTF in IPv6

10x

Kfear Oshri

unread,
May 10, 2021, 1:21:20 PM5/10/21
to TRex Traffic Generator

I've configure trex_cfg.yaml as so

test@trex02:~/trex-core/scripts$ cat /etc/trex_cfg.yaml
- port_limit      : 2
  version         : 2
#List of interfaces. Change to suit your setup. Use ./dpdk_setup_ports.py -s to see available options
  interfaces    : ["0b:00.0","0b:00.1"]
  stack: linux_based

In trex-console I ran commands

vlan -p 0 --vlan 11
vlan -p 1 --vlan 12
ipv6 -p 0 -s 2001:DB8:11:2222::2
ipv6 -p 1 -s 2001:DB8:12:2222::2
scan6

trex>scan6

Scanning network for IPv6 nodes on port(s) [0, 1]:           [SUCCESS]

Port 0 - IPv6 search result:
 Device   |         MAC         |     IPv6 address
----------+---------------------+----------------------
 Router   |  e8:c5:7a:03:75:47  | 2001:db8:11:2222::1

Port 1 - IPv6 search result:
 Device   |         MAC         |     IPv6 address
----------+---------------------+----------------------
 Router   |  e8:c5:7a:03:75:47  | 2001:db8:12:2222::1

6.23 [sec]

yet when trex sending a ping it sends it with wrong destination MAC address

trex>ping -p 0 -d 2001:DB8:11:2222::1 --vlan 11 -n 10

Pinging 2001:DB8:11:2222::1 from port 0 over VLAN '11' with 64 bytes of data:
Request timed out.

Screenshot 2021-05-10 202013.jpg

Besart Dollma

unread,
May 14, 2021, 3:08:11 AM5/14/21
to TRex Traffic Generator
Please output your portattr
Thanks

Kfear Oshri

unread,
May 14, 2021, 4:29:02 AM5/14/21
to TRex Traffic Generator
thank you for replying.

it is confusing cause in IPv4 it's not how things work
trex is a great project!

by asking me to post  portattr  I understand that even thought I used 'scan6' command, trex doesn't "auto learning" the destination MAC address

as you can see here

trex>scan6

Scanning network for IPv6 nodes on port(s) [0, 1]:           [SUCCESS]

Port 0 - IPv6 search result:
 Device   |         MAC         |     IPv6 address
----------+---------------------+----------------------
 Router   |  e8:c5:7a:03:75:47  | 2001:db8:11:2222::1

Port 1 - IPv6 search result:
 Device   |         MAC         |     IPv6 address
----------+---------------------+----------------------
 Router   |  e8:c5:7a:03:75:47  | 2001:db8:12:2222::1

6.23 [sec]

trex>portattr
Port Status

     port       |          0           |          1
----------------+----------------------+---------------------
driver          |       net_mlx5       |       net_mlx5
description     |  MT27800 Family [Co  |  MT27800 Family [Co
link status     |          UP          |          UP
link speed      |       100 Gb/s       |       100 Gb/s
port status     |         IDLE         |         IDLE
promiscuous     |         off          |         off
multicast       |          on          |          on
flow ctrl       |         none         |         none
vxlan fs        |          -           |          -
--              |                      |
layer mode      |       Ethernet       |       Ethernet
src IPv4        |          -           |          -
IPv6            | 2001:db8:11:2222::2  | 2001:db8:12:2222::2
src MAC         |  04:3f:72:d8:1f:d0   |  04:3f:72:d8:1f:d1
---             |                      |
Destination     |     unconfigured     |     unconfigured
ARP Resolution  |          -           |          -
----            |                      |
VLAN            |          11          |          12
-----           |                      |
PCI Address     |     0000:0b:00.0     |     0000:0b:00.1
NUMA Node       |          0           |          0
RX Filter Mode  |    hardware match    |    hardware match
RX Queueing     |         off          |         off
Grat ARP        |         off          |         off
------          |                      |


So I understand I need to configure the destination MAC address manually?

I did so and it looks good,
but is there a way to configure all needed addresses on trex_cfg.yaml? just like in IPv4
my original question was, can someone please share his/her file?

10x again
have a gr8 weekend

Besart Dollma

unread,
May 14, 2021, 5:45:41 AM5/14/21
to TRex Traffic Generator
Our files are different, it very much differs from setup to setup. I unfortunately don't have an IPv6 setup.

Message has been deleted

Kfear Oshri

unread,
May 14, 2021, 6:43:50 AM5/14/21
to TRex Traffic Generator
yes I did looked at trex manual
ipv6 trex_cfg.yaml file example for reference
correct me if I'm wrong

Kfear Oshri

unread,
May 25, 2021, 10:14:51 AM5/25/21
to TRex Traffic Generator
any update?

I found a procedure that worked for me

### trex console commands:

vlan -p 0 --vlan 11
vlan -p 1 --vlan 12
service
l2 -p 0 --dst e8:c5:7a:03:75:47
l2 -p 1 --dst e8:c5:7a:03:75:47
service --off
ipv6 -p 0 -s 2001:DB8:11:2222::2
ipv6 -p 1 -s 2001:DB8:12:2222::2

###

Been wondering if there is a better way to do it?

10x
Reply all
Reply to author
Forward
0 new messages