can't ping host using pcap-bridge

Help
leon chang
2008-08-03
2013-05-09
  • leon chang
    leon chang
    2008-08-03

    In this scenario, two computer connected to a hub.
    A:192.168.1.33/255.255.255.0, gateway is not set
    B:192.168.1.55/255.255.255.0, gateway is not set
    A and B can ping each other.

    In the pcap-bridge mode, can Hosting OS and coLinux ping each other directly?
    ('directly' means packet doesn't go out of the computer of Hosting OS)

    I thought WinPcap Virtual Bridge acts like a hub, and I right?

    (From http://wiki.colinux.org/Network#The_WinPCAP_driver\)
       +------------+
       |            |          
       | Hosting OS |    Virtual                          . . . . . . . .
       |            |     Cable       +-----+------+     .               .
       |            |<--------------->|  WinPcap   |     . Local Network .
       +------------+                 |  Virtual   |<--->.  or Internet  .
       +-----+------+                 |  Bridge    |     .   Connection  .
       |            |<--------------->|            |      . . . . . . . .
       |            |    Virtual      +------------+
       | coLinux OS |    Cable
       |            |
       +------------+

     
    • Henry N.
      Henry N.
      2008-12-11

      > In the pcap-bridge mode, can Hosting OS and coLinux ping each other directly?

      in theory yes,

      In practice, you needs a physical network interface with "link connected". pcap works only on connected interfaces.

      > I thought WinPcap Virtual Bridge acts like a hub, and I right?
      Yes.

      The ping, you send from coLinux to your host would see on all network card (outside from your Host), because *all* packets from coLinux will send to the wire (cable on your network card) and also send to the Windows internally network stack. Only cards where the destination MAC match with the card`s MAC will receive this packet. For the Host, Windows checks the destination MAC self (not the hardware card), because we have set the interface in promiscuous mode (receive *all* packets, hardware MAC filter disabled).