LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-12-2008, 03:53 PM   #1
mikeotieno
Member
 
Registered: Jun 2006
Location: Kenya
Distribution: SUSE OSS 10.1, Fedora 9 x86-64
Posts: 71

Rep: Reputation: 15
Red face Using tcpdump on a sub-interface vlan


Hi Guys
I have been using the tcpdump tool on a physical interface but when i activate the vlan sub-interface i cant execute the command and use the tool.
Here is the error am getting, is there a way i can use this tool on the virtual interface i created.

[root@mikey@kdn ~]# tcpdump -v -s 255 -i etho port not telnet
tcpdump: SIOCGIFHWADDR: No such device

[root@mikey@kdn ~]# tcpdump -v -s 255 -i ifcfg-vlan3542 port not telnet
tcpdump: SIOCGIFHWADDR: No such device
[root@mikey@kdn ~]#
 
Old 09-13-2008, 03:51 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
I presume your -i etho was a typo, and you meant -i eth0.

Have you tried -i eth0 vlan ?
 
Old 09-14-2008, 05:30 PM   #3
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,094
Blog Entries: 2

Rep: Reputation: 111Reputation: 111
just specify the interface with base.vlanid

for example if you have vlan 3542 setup on eth0 do tcpdump -i eth0.3542
 
Old 09-24-2008, 01:32 PM   #4
mikeotieno
Member
 
Registered: Jun 2006
Location: Kenya
Distribution: SUSE OSS 10.1, Fedora 9 x86-64
Posts: 71

Original Poster
Rep: Reputation: 15
Thanx guys this worked for me.
root@mike ~]# tcpdump -i eth1 vlan 3542
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
bonding and vlans. Bonding a vlan interface vs applying vlans to a bond interface JasonCzerak Linux - Networking 0 09-11-2008 09:59 AM
VLAN configuration - native VLAN and setting PVID kumarwaiting Linux - Networking 0 07-24-2006 02:51 AM
Vlan >G< Linux - Networking 3 06-29-2006 12:03 AM
vlan praveenchebolu Linux - Networking 1 03-25-2006 03:41 AM
Vlan Markvw Linux - Networking 1 09-29-2003 08:33 AM


All times are GMT -5. The time now is 01:50 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration