51 lines · 1.4 KB · Text
RawDownload
#!/bin/bash# SPDX-License-Identifier: GPL-2.0 ############################################################################### Topology description. p1 looped back to p2, p3 to p4 and so on.declare -A NETIFS NETIFS[p1]=veth0NETIFS[p2]=veth1NETIFS[p3]=veth2NETIFS[p4]=veth3NETIFS[p5]=veth4NETIFS[p6]=veth5NETIFS[p7]=veth6NETIFS[p8]=veth7NETIFS[p9]=veth8NETIFS[p10]=veth9 # Port that does not have a cable connected.NETIF_NO_CABLE=eth8 ############################################################################### Defines # IPv4 ping utility namePING=ping# IPv6 ping utility name. Some distributions use 'ping' for IPv6.PING6=ping6# Packet generator. Some distributions use 'mz'.MZ=mausezahn# Time to wait after interfaces participating in the test are all UPWAIT_TIME=5# Whether to pause on failure or not.PAUSE_ON_FAIL=no# Whether to pause on cleanup or not.PAUSE_ON_CLEANUP=no# Type of network interface to createNETIF_TYPE=veth# Whether to create virtual interfaces (veth) or notNETIF_CREATE=yes# Timeout (in seconds) before ping exits regardless of how many packets have# been sent or receivedPING_TIMEOUT=5# Minimum ageing_time (in centiseconds) supported by hardwareLOW_AGEING_TIME=1000# Flag for tc match, supposed to be skip_sw/skip_hw which means do not process# filter by software/hardwareTC_FLAG=skip_hw# IPv6 traceroute utility name.TROUTE6=traceroute6 

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t