Loopback address and network interface handling, general commands
U
SER
G
UIDE
160
traceroute
–
s <ip-source> <ip-destination>
It is also possible to send ICMP packets instead of UDP packets through the option:
traceroute
–
I <ip-destination>
T
CPDUMP COMMAND
The
tcpdump
command displays all the transmitted and received packets on a specified network
interface:
tcpdump
–
i <ifname>
Enter <CTRL>-C in order to interrupt the execution of the programme.
Filters
can be applied to received packets. To filter:
only direct packets or packets received from the 151.1.1.1 host:
tcpdump
–
i atm0 host 151.1.1.1
all the packets excepting direct packets and those received from the 151.1.1.1 host:
tcpdump
–
i eth0 host not 151.1.1.1
only packets received with source address 85.34.166.18:
tcpdump -i atm0 src host 85.34.166.18
only HTTP protocol packets:
tcpdump
–
i atm0 port 80
all the packets excepting those towards the Ethernet port:
tcpdump
–
i atm0 port not telnet
only ICMP packets:
tcpdump
–
i atm0 icmp
only ICMP packets addressed to
82.1.1.1
host:
tcpdump
–
i atm0 icmp and dst host 82.1.1.1
all UDP packets:
tcpdump
–
i atm0 udp
only ICMP packets and packets addressed to
82.1.1.1
host:
tcpdump
–
i atm0 icmp or host 82.1.1.1
only HTTP and SSH packets:
tcpdump
–
i atm0 port 23 or port 22
all the packets excepting VRRP packets:
tcpdump
–
i eth1 not vrrp
only GRE packets:
tcpdump
–
i atm0 proto 47