Interface breaks down after TRex is started

306 views
Skip to first unread message

thof...@gmail.com

unread,
Aug 27, 2018, 8:59:00 PM8/27/18
to TRex Traffic Generator
Hi,

I am new to TRex and I want to setup an environment for performance testing.

I have an Ubuntu machine running TRex with two interfaces:
* p2p1: 11.1.1.2
* p2p2: 12.1.1.2

Also I have a NFVIS machine running a router (ISRv) with the ip addresses:
* G2: 11.1.1.1
* G3: 12.1.1.1

I have connected the two interfaces of Ubuntu with NFVIS with a cable and I'm able to ping the one machine from the other.

My configuration file for TRex looks as follows:
- port_limit: 2
version: 2
interfaces: ['04:00.0', '04:00.1']
port_info:
- default-gw: 11.1.1.1
ip: 11.1.1.2
- default-gw: 12.1.1.1
ip: 12.1.1.2
platform:
master_thread_id: 0
latency_thread_id: 15
dual_if:
- socket: 0
threads: [1,2,3,4,5,6,7,8,9,10,11,12,13,14]


wheras 04.00.0 is p2p1 and 04.00.1 is p2p2.

Now when I try to run the command:
sudo ./t-rex-64 -f cap2/dns.yaml -c 4 -m 1 -d 10

It always fails with: Failed resolving dest MAC for default gateway:0.0.0.0 on port 0
... and my two interfaces p2p1 and p2p2 are down and I can only bring them up again by rebooting.

Now, I'm wondering why my interfaces are always brought down as soon as I start TRex. I would be grateful for any help or ideas.

Thanks!
Tobias

Yaroslav Brustinov

unread,
Aug 28, 2018, 1:30:14 AM8/28/18
to thof...@gmail.com, TRex Traffic Generator
Hi,

  1. default_gw

  2. TRex uses it's own driver for higher speeds.
    To avoid such behavior, use 'p2p1' and 'p2p2' in interfaces list of config file.

  3. You can return them to usual driver with command:
    sudo ./dpdk_setup_ports.py -L

Thanks,
Yaroslav.


--
You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+unsubscribe@googlegroups.com.
To post to this group, send email to trex...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/9066c804-894e-45a0-916a-60227f19b43c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

thof...@gmail.com

unread,
Aug 28, 2018, 2:02:32 PM8/28/18
to TRex Traffic Generator
> To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+u...@googlegroups.com.
>
> To post to this group, send email to trex...@googlegroups.com.
>
> To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/9066c804-894e-45a0-916a-60227f19b43c%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

Yes thank you, now it works. :)
Reply all
Reply to author
Forward
0 new messages