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.
|
|
02-21-2014, 03:54 AM
|
#1
|
LQ Newbie
Registered: Aug 2007
Location: Hong Kong
Distribution: Debian, ArchLinux, CentOS
Posts: 17
Rep:
|
Why intranet http packets are not found?
I have the following settings at home up and running for over 2 years and everything is fine.
They are a Debian VBox Host, and two virtual machine (vm1, vm2) using birdged adapter network.
vm1 (192.168.1.1) serves as a lamp server with virtualhost. (debian)
vm2 (192.168.1.2) serves as a normal desktop. (archlinux)
I setup dnsmasq on my router (tomatousb) so that I can use hostname as url input on browser on vm2.
Recently, I run wireshark/tcpdump on the VBox Host and expect to see some packets between vm1 and vm2 when I'm browsing website on vm1 from vm2. But out of my surprise, no such packets are found!
I even freshly build another debain lamp server without iptables to double check. Seems that "not finding such packet" is normal!!
So, some of my basic understanding is wrong? Or what else is happening? Would somebody be kind enough to point it out.
Thanks a lot
P.S. Sorry if I post in a wrong forum. Please move it to wherever appropriate.
|
|
|
02-21-2014, 03:29 PM
|
#2
|
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,257
|
Are you telling tcpdump the correct interface to look at? What is the exact tcpdump command?
|
|
|
02-22-2014, 03:24 AM
|
#3
|
LQ Newbie
Registered: Aug 2007
Location: Hong Kong
Distribution: Debian, ArchLinux, CentOS
Posts: 17
Original Poster
Rep:
|
Quote:
Originally Posted by smallpond
Are you telling tcpdump the correct interface to look at? What is the exact tcpdump command?
|
Thank you for your reply.
I have only one network card on the VBox Host. I use the most basic option.
Code:
$ sudo tcpdump -n -t -w filename.for.wireshark
If I start a ssh session from vm2 to vm1, I can see packets with ip.src and ip.dst pair of vm1<->vm2. Readlly wonder why it is not for web browsing.
-------------------------------- edit
Just wonder if I did something on wireshark before that makes it filter out http packet.
So I just run a test
Code:
$ sudo tcpdump -n -t > textfile
$ cat textfile | grep ip.of.vm1 | grep ip.of.vm2
No ip.vm1 ip.vm2 pair on one line found.
Last edited by iwonder; 02-22-2014 at 03:34 AM.
Reason: add information
|
|
|
02-23-2014, 06:07 PM
|
#4
|
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,257
|
You may have only one network card, but very few systems have only one interface. You can list the interfaces with the command On my box, tcpdump listens on lo if I don't specify with -i.
|
|
|
02-23-2014, 11:39 PM
|
#5
|
LQ Newbie
Registered: Aug 2007
Location: Hong Kong
Distribution: Debian, ArchLinux, CentOS
Posts: 17
Original Poster
Rep:
|
Quote:
Originally Posted by smallpond
You may have only one network card, but very few systems have only one interface. You can list the interfaces with the command On my box, tcpdump listens on lo if I don't specify with -i.
|
ip link lists 3 interface: lo eth0 vboxnet0
When I apply them to tcpdump, vboxnet0 replies that the device is not up, lo replies zero packets captured, eth0 behaves as the original problem.
|
|
|
03-04-2014, 11:48 PM
|
#6
|
LQ Newbie
Registered: Aug 2007
Location: Hong Kong
Distribution: Debian, ArchLinux, CentOS
Posts: 17
Original Poster
Rep:
|
Is this question too basic or too strange?
|
|
|
All times are GMT -5. The time now is 12:02 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
|
|