

However, we also need to add MAC addresses of TRex's interfaces eth0 and eth1 into the TRex configuration file. We will add the R1's MAC addresses of Gi0/0 (0cbb.1385.5100) and Gi0/1 (0cbb.1385.5101) into the TRex configuration file later. Picture 3 - Checking MAC Addresses of Interfaces Gi0/0 and Gi0/1 on DUT (R1) R1# show interfaces gigabitEthernet 0/1 | include address R1# show interfaces gigabitEthernet 0/0 | include address We will also configure DUT to match the default MAC configured on TRex's interfaces.

TRex does not implement ARP so we need to configure DUT's MAC addresses of the directly connected interfaces ((Picture 3). It is connected via the interfaces Gi0/0 and Gi0/1 to TRex VM (Ubuntu Server). The router R1 is DUT and it is running Cisco vIOS-元. Clients generate traffic that is sent from DUT back to the servers. TRex implements the role of the both - clients and servers, running on the same VM. TRex Qemu VM is connected to DUT (Device Under Test) with the interfaces eth0 and eth1 (Picture 2). Below are GNS3 Qemu Guest settings for TRex Qemu VMs. We are going to deploy the TRex VM into GNS3 project.Ĭreate TRex QEMU instance inside GNS3. We have finished TRex installation on Ubuntu 18.04 Server Qemu VM. Picture 1 - Modules uio, igb_uio Loaded in Linux Kernel Build DPDK with the commands below.īuild DPDK kernel module igp_uio with the command below.Īdd modules uio, igb_uio to the list of modules loaded after reboot. When the script finishes, reboot the VM with the reboot command. After boot assign the IP address from DHCP QEMU server to the Ubuntu server.ĭPDK is the Data Plane Development Kit that consists of libraries to accelerate packet processing workloads running on a wide variety of CPU architectures. It also redirects VM machine output to serial port and configures old-style Ethernet interfaces naming.Īssign execute privileges to the script and run the it. The script installs packages required by TRex. Now you can connect to the Ubuntu Server issuing telnet from the host.Ĭopy my script trex-vm.sh from the host to Ubuntu Server Qemu VM. $ /usr/local/bin/qemu-system-x86_64 -m 4G -enable-kvm -serial telnet:localhost:2222,server,nowaitĪssign IP address from the internal Qemu DHCP server to the guest NIC of Ubuntu Server VM. I assume that you have installed Ubuntu Server 18.0.4 on Qemu disk. Preparing Qemu Ubuntu Server VM for TRex Installation The tutorial provides exact steps that you can follow to install TRex on Ubuntu Server 18.04. TRex implements the both client and server side. It can generate 元-7 traffic and scale up to 20Gbps. TRex is stateful and stateless traffic generator that is designed to benchmark platforms using realistic application traffic.
