ping to newly added node on port 1 is failing

122 views
Skip to first unread message

chris...@gmail.com

unread,
Oct 30, 2024, 9:19:07 PM10/30/24
to TRex Traffic Generator
trex stateless - v2.90
portattr --prom on
portattr --mult on



- port_limit: 2
  version   : 2
  #c         : 3
  interfaces: ['test', 'test1']
  stack     : linux_based
  low_end   : true
  low_end_core: 14

Before ns add :

l3 -p 0 --src 2.2.2.109 --dst 2.2.2.110 --vlan 622
l3 -p 1 --src 2.2.2.110 --dst 2.2.2.109 --vlan 622

ping works fine on both directions

trex(service)>portattr
Port Status

     port       |          0           |          1
----------------+----------------------+---------------------
driver          |    net_af_packet     |    net_af_packet
description     |       Unknown        |       Unknown
link status     |          UP          |          UP
link speed      |       10 Gb/s        |       10 Gb/s
port status     |         IDLE         |         IDLE
promiscuous     |          on          |          on
multicast       |         off          |         off
flow ctrl       |         N/A          |         N/A
vxlan fs        |          -           |          -
--              |                      |
layer mode      |         IPv4         |         IPv4
src IPv4        |      2.2.2.109       |      2.2.2.110
IPv6            |         off          |         off
src MAC         |  66:8a:9a:cd:c1:6f   |  8e:bd:c2:7e:bc:13
---             |                      |
Destination     |      2.2.2.110       |      2.2.2.109
ARP Resolution  |  8e:bd:c2:7e:bc:13   |  66:8a:9a:cd:c1:6f
----            |                      |
VLAN            |         622          |         622
-----           |                      |
PCI Address     |         N/A          |         N/A
NUMA Node       |          -1          |          -1
RX Filter Mode  |      fetch all       |      fetch all
RX Queueing     |         off          |         off
Grat ARP        |         off          |         off
------          |                      |

After Add ns:
ns add -p 1 --mac 00:00:00:01:02:03 --src 2.2.2.111 --dst 2.2.2.109 --vlan 622
l3 -p 0 --src 2.2.2.109 --dst 2.2.2.111 --vlan 622

trex(service)>portattr
Port Status

     port       |          0           |          1
----------------+----------------------+---------------------
driver          |    net_af_packet     |    net_af_packet
description     |       Unknown        |       Unknown
link status     |          UP          |          UP
link speed      |       10 Gb/s        |       10 Gb/s
port status     |         IDLE         |         IDLE
promiscuous     |          on          |          on
multicast       |         off          |         off
flow ctrl       |         N/A          |         N/A
vxlan fs        |          -           |          -
--              |                      |
layer mode      |         IPv4         |         IPv4
src IPv4        |      2.2.2.109       |      2.2.2.110
IPv6            |         off          |         off
src MAC         |  66:8a:9a:cd:c1:6f   |  8e:bd:c2:7e:bc:13
---             |                      |
Destination     |      2.2.2.111       |      2.2.2.109
ARP Resolution  |      unresolved      |  66:8a:9a:cd:c1:6f
----            |                      |
VLAN            |         622          |         622
-----           |                      |
PCI Address     |         N/A          |         N/A
NUMA Node       |          -1          |          -1
RX Filter Mode  |      fetch all       |      fetch all
RX Queueing     |         off          |         off
Grat ARP        |         off          |         off
------          |                      |

trex(service)>ns show-node -p 1 --mac 00:00:00:01:02:03

Setting port 1 in with namespace configuration               [SUCCESS]


wait_for_async_results                                       [SUCCESS]

{'nodes': [{'bpf': '',
            'ether': {'src': '00:00:00:01:02:03'},
            'ipv4': {'dst': '2.2.2.109', 'src': '2.2.2.111'},
            'ipv6': {'enabled': False},
            'is-shared-ns': False,
            'is_bird': False,
            'linux-ns': 'trex-a-1-1',
            'linux-veth-external': 'trex-a-1-1-T',
            'linux-veth-internal': 'trex-a-1-1-L',
            'vlan': {'tags': [622], 'tpids': []},
            'vlan_filter': 'no_tcp_udp'}]}
trex(service)>

trex(service)>ping -d 2.2.2.109 -p 0

Pinging 2.2.2.109 from port 0 over VLAN '622' with 64 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Request timed out.
trex(service)>

Ping to 2.2.2.109 the newly added ns is failing . 
Can someone please help me understand as to what am i missing here ? 

chris...@gmail.com

unread,
Oct 30, 2024, 9:27:38 PM10/30/24
to TRex Traffic Generator
Also , portattr always shows mul as off though enabled
trex(service)>portattr --mul on

Applying attributes on port(s) [0, 1]:                       [SUCCESS]

trex(service)>
What could be the reason for this ?

chris...@gmail.com

unread,
Nov 4, 2024, 6:54:48 AM11/4/24
to TRex Traffic Generator
Can someone please help here ? This is blocking my testing .

chris...@gmail.com

unread,
Nov 11, 2024, 8:40:32 AM11/11/24
to TRex Traffic Generator
Hi All , 
Any hints on this namespace ping failure ?

Thanks,
Chris

Reply all
Reply to author
Forward
0 new messages