If you want to collect packet traces of virtual interfaces, follow the example below.
Execute hanetconfig print to check the physical interfaces bundled with the virtual interface which you want to obtain.
[IPv4,Patrol / Virtual NIC] Name Hostname Mode Physical ipaddr Interface List +-----------+---------------+----+-----------------+---------------------------+ sha0 192.168.1.110 t eth0,eth1 sha1 192.168.10.110 d 192.160.10.10 eth2,eth3 sha12 - p - sha1 sha2 192.168.100.110 c eth4,eth5 |
Execute the tethereal command or tcpdump command to collect packet traces.
If a virtual interface bundles several physical interfaces, execute tethereal(1) command or tcpdump(1) command for all physical interfaces in the bundle.
Execution examples are shown below:
sha0
# tethereal -i eth0 -w /tmp/packet_trace.eth0 # tethereal -i eth1 -w /tmp/packet_trace.eth1 |
sha1 and sha12
# tethereal -i eth2 -w /tmp/packet_trace.eth2 # tethereal -I eth3 -w /tmp/packet_trace.eth3 |
sha2
# tethereal -i eth4 -w /tmp/packet_trace.eth4 # tethereal -i eth5 -w /tmp/packet_trace.eth5 |
See
For tethereal(1) command or tcpdump(1) command, refer to the Linux manual.
Note
If you execute the tethereal(1) command or tcpdump(1) command for a virtual interface, you can only collect some packets. Execute the command for a physical interface to collect packet traces.