Sign inSign up

eisai/cisco-trex

By eisai

Updated over 1 year ago

TRex Traffic Generator, Containerized.

Image
Networking
0

1.1K

eisai/cisco-trex repository overview

Usage

Prepare your test configuration, test.yaml or test.py basic_usage

docker run --name trex -v <your_test_conf>:/test.yaml --rm -it --privileged --cap-add=ALL eisai/cisco-trex -f /test.yaml <arguments>

Example

Run test stateless
docker run --name trex -v ./test.yaml:/test.yaml --rm -it --privileged --cap-add=ALL eisai/cisco-trex -f /test.yaml -m 1000 -l 10
Run test ASTF stateful
docker run --name trex -v ./test.py:/test.py --rm -it --privileged --cap-add=ALL eisai/cisco-trex --astf -f /test.py -m 10 -d 100
Run test with host NIC
  1. Prepare TRex configuration trex_cfg.yaml First time Running
  2. Set up IP address on NIC for testing

By default, ports 4500,4501,4507 are used.

docker run --name trex -v ./trex_cfg.yaml:/etc/trex_cfg.yaml -v ./test.py:/test.py --rm -it --privileged --cap-add=ALL --network host eisai/cisco-trex --astf -f /test.py -m 10 -d 100

Run without any arguments will enter auto-config interface dpdk_setup_ports.py -i

docker-compose.yaml
services:
    trex:
        container_name: trex
        image: eisai/cisco-trex
        restart: "no"
        network_mode: "host"
        cap_add:
            - ALL
        privileged: true
        tty: true
        stdin_open: true
        command: ["--astf", "-f", "/test.py", "-d", "100", "-m", "10"]
        volumes:
            - './test.py:/test.py'
            - './trex_cfg.yaml:/etc/trex_cfg.yaml'

Interactive mode

TRex Console
docker run --name trex --rm -it --privileged --cap-add=ALL eisai/cisco-trex -i --astf
TRex Daemon Server (For stateless GUI)

https://github.com/cisco-system-traffic-generator/trex-stateless-gui

docker run --name trex --rm -it --privileged --cap-add=ALL --network host eisai/cisco-trex:v2.87

Default port for daemon server: 8090

DPDK mode

https://github.com/Eisaichen/cisco-trex-docker/tree/main/dpdk

Documents

TRex Documentation

https://trex-tgn.cisco.com/trex/doc/

This Image

https://github.com/Eisaichen/cisco-trex-docker

Tag summary

Content type

Image

Digest

sha256:a51a9b0c3

Size

357.7 MB

Last updated

over 1 year ago

docker pull eisai/cisco-trex