tcpdump with VLANs

I use tcpdump a lot in when I am trouble shooting a problem and recently I had to trouble shoot a problem on a vlan trunked interface.  So, I would normally do something like:

tcpdump -i eth1 host 10.1.1.1 and host 10.2.1.1

But, because the interface was trunked, I saw no traffic.  After doing a quick search on the Internet, I found that I needed to add the "vlan <vlan id>" to my filter, which became:

tcpdump -i eth1 vlan 801 and host 10.1.1.1 and host 10.2.1.1

Now, I could see everything.

 

Trackback URL for this post:

http://www.systura.com/trackback/20

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> , <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <embed> <object> <strike> <caption>
  • Lines and paragraphs break automatically.

More information about formatting options