'Tcp 'modifier applied to host

Source: Internet
Author: User
Tags snmp

Version: 2.6.9
Tcpdump TCP port 23 host 200.201.202.15 cannot be used. It is a syntax error.

[Root @ localhost ~] # Tcpdump TCP host 200.201.202.15
Tcpdump: 'tcp 'modifier applied to host

For TCP/UDP protocol, only the port number can be monitored, and the IP protocol can only listen to the host address. TCP/UDP is at the transport layer,
The IP protocol is on the internet layer.

Quote:
# Tcpdump TCP port 23
Quote:
UDP doesn't know about "hosts"-that's IP's responsibility. UDP only
knows about ports.

if you have want to see all traffic to or from a participant hosts, use "IP host
node1 or node2 or node3 ".

if you want to see all * udp * traffic to and from particle hosts, use
"(IP host node1 or node2 or node3) and UDP ".

if you want to see all UDP traffic to and from particle hosts * On A
particle UDP port *, use "(IP host node1 or node2 or node3) and UDP
port N ". if you want, for example, UDP traffic to or from port 161, DO
"(IP host node1 or node2 or node3) and UDP port 161"-, in that
case, you can probably say "UDP port SNMP" rather than "UDP port 161 ".

if you want traffic to or from two particle ports, use "(IP host node1
or node2 or node3) and (UDP port port1 or port2) "-which can probably
be" UDP port SNMP or UDP port SNMPTRAP "if you want ports 161 and 162.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.