Cisco TRex on Ubuntu Server 18.04
TRex is stateful and stateless traffic generator that is designed to benchmark platforms using realistic application traffic. It can generate L3-7 traffic and scale up to 20Gbps. TRex implements the both client and server side. The tutorial provides exact steps that you can follow to install TRex on Ubuntu Server 18.04. Hope you find it useful.
1. Preparing Qemu Ubuntu Server VM for TRex Installation
I assume that you have installed Ubuntu Server 18.0.4 on Qemu disk. Start Qemu Ubuntu Server VM.
$ /usr/local/bin/qemu-system-x86_64 -m 4G -enable-kvm Ubuntu18.04-server-TRex2.vmdk -serial telnet:localhost:2222,server,nowait
Assign IP address from the internal Qemu DHCP server to the guest NIC of Ubuntu Server VM.
$ sudo dhclient
IP address is 10.0.2.15/25 and the default gateway is 10.0.2.2. Now you can connect to the Ubuntu Server issuing telnet from the host.
$ telnet localhost 2222
Copy my script trex-vm.sh from the host to Ubuntu Server Qemu VM. The script installs packages required by TRex. It also redirects VM machine output to serial port and configures old-style Ethernet interfaces naming.
$ scp -rv [email protected]:/home/brezular/trx-vm.sh .
Assign execute privileges to the script and run the Continue reading



