Not able to ping DUT from Trex port with user defined ipv6 source address

181 views
Skip to first unread message

Preethi Reddy

unread,
May 27, 2021, 8:19:58 AM5/27/21
to TRex Traffic Generator
Hi Team,

Facing an issue with ipv6 ping scenario. Below are the details.

1. Trex Version: 2.89
2. Configured ipv6 address 2001::1/112 , Mac address 00:00:00:00:1e:00 on the DUT and link local address of DUT is fe80::200:ff:fe00:1e00/64. 
3. Source Mac on Trex  configued in cfg file: 00:11:22:33:44:55.

Trying to ping DUT from Trex:
---------------------------------------------------------
>>> results = c.scan6(ports = [1], timeout = 2, verbose = True)
>>> print(results)
{1: [{'type': 'Host', 'mac': '00:00:00:00:1e:00', 'ipv6': 'fe80::200:ff:fe00:1e00'}]}

>>> c.ping_ip(src_port = 1, dst_ip = '2001::1')
[{'formatted_string': 'Reply from 2001::1: bytes=64, time=1.03ms, hlim=64', 'src_ip': '2001::1', 'rtt': 1.0339671259771421, 'ttl': 64, 'status': 'success'}]

When the above API is called, ping is successful but Trex uses a link local source IP (Example --> fe80::211:22ff:fe33:4455)  based on src_mac address given in the config file of trex.. It can be seen in the pcap captured on the DUT.

Tried below two methods but failed to specify user defined ipv6 src address
1. using STLServiceIPv6ND API 
>>> from trex_stl_lib.services.trex_stl_service_IPv6ND import STLServiceIPv6ND
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'trex_stl_lib.services'

2. Tried configuring from Trex console

trex(service)>ipv6 -p 1 -s 2001::2

Configuring IPv6 on port 1 [FAILED]

ipv6 - Port 1 : *** Could not configure IPv6: IPv6 is not supported with current stack



Query: Is there any other way to configure trex port to have user defined ipv6 source address.


Thanks,
Preethi


Ipv6_Ping.pcap

hanoh haim

unread,
May 27, 2021, 9:19:21 AM5/27/21
to Preethi Reddy, TRex Traffic Generator
Reply all
Reply to author
Forward
0 new messages