Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-12-2008, 04:53 PM
|
#1
|
Member
Registered: Jun 2006
Location: Kenya
Distribution: SUSE OSS 10.1, Fedora 9 x86-64
Posts: 71
Rep:
|
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 ~]#
|
|
|
09-13-2008, 04:51 AM
|
#2
|
Senior Member
Registered: Jun 2008
Posts: 2,529
Rep:
|
I presume your -i etho was a typo, and you meant -i eth0.
Have you tried -i eth0 vlan ?
|
|
|
09-14-2008, 06:30 PM
|
#3
|
Senior Member
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,127
Rep: 
|
just specify the interface with base.vlanid
for example if you have vlan 3542 setup on eth0 do tcpdump -i eth0.3542
|
|
|
09-24-2008, 02:32 PM
|
#4
|
Member
Registered: Jun 2006
Location: Kenya
Distribution: SUSE OSS 10.1, Fedora 9 x86-64
Posts: 71
Original Poster
Rep:
|
Thanx guys this worked for me.
root@mike ~]# tcpdump -i eth1 vlan 3542
|
|
|
All times are GMT -5. The time now is 02:34 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|