Traffic generation

Sending ARP requests to a remote host

ARP requests can be sent to a remote host using the following command:

router{}arping via IFACE [vrf N] A.B.C.D
via IFACE
Specify the interface through which ARP requests should be sent.
vrf N
Specify a VRF (VRF 0 is used by default), it must match the VRF of the selected interface
A.B.C.D
IP destination address to which the ARP requests should be sent.

Example

router{}arping via eth0_0 192.168.1.68
ARPING to 192.168.1.68 from 192.168.1.70 via vrf 0 interface eth0_0
Unicast reply from 192.168.1.68 [0:c:29:d7:8a:5] 0.775ms
Unicast reply from 192.168.1.68 [0:c:29:d7:8a:5] 0.120ms
Unicast reply from 192.168.1.68 [0:c:29:d7:8a:5] 0.123ms
Unicast reply from 192.168.1.68 [0:c:29:d7:8a:5] 0.128ms
Unicast reply from 192.168.1.68 [0:c:29:d7:8a:5] 0.124ms
Sent 5 probe(s) (1 broadcast(s))
Received 5 reply (0 request(s), 0 broadcast(s))
router{}

Sending an ICMP request to a remote host

ICMP requests can be sent to a remote host using the following command:

router{}ping A.B.C.D|X:X::X:X|HOSTNAME [count INT] [maxhop INT]
[from A.B.C.D|X:X::X:X] [vrf-id ID] [datasize INT]
A.B.C.D|X:X::X:X|HOSTNAME
IPv4, IPv6 address or host name to which the ICMP requests should be sent.
count INT
Specify the number of ICMP requests to be sent (default is 4).
maxhop INT
Specify the TTL for multicast packets (this only applies if the destination is a multicast address).
from A.B.C.D|X:X::X:X
Specify the IPv4 or IPv6 source address.
vrf-id ID
Specify a VRF (VRF 0 is used by default).
datasize INT
Specify the data size of the payload in the ICMP request in bytes (default is 56, hence providing a 84 bytes IP packet)

Example

router{}ping 192.168.1.68 from 192.168.1.70 datasize 128
PING 192.168.1.68 (192.168.1.68): 128 data bytes
136 bytes from 192.168.1.68: icmp_seq=0 ttl=64 time=0.2 ms
136 bytes from 192.168.1.68: icmp_seq=1 ttl=64 time=0.2 ms
136 bytes from 192.168.1.68: icmp_seq=2 ttl=64 time=0.1 ms
136 bytes from 192.168.1.68: icmp_seq=3 ttl=64 time=0.1 ms

--- 192.168.1.68 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.1/0.1/0.2 ms
router{}