The basic layer 3 filters are:
- ip or ip6: To capture IP or IPv6 packets.
- host <host>: To get a hostname or address.
- dst host <host>: To get a destination hostname or address.
- src host <host>: To get a source hostname or address.
A host can be an IP address or a hostname related to this number. You can type, for example, a filter host www.packtpub.com that will show you all packets to/from the IP address related to the Packt website.
- gateway <Host name or address>: Captures traffic to or from the hardware address but not to the IP address of the host. This filter captures traffic going through the specified router. This filter requires a hostname that can be found by the local system's name resolution process (for example, ...