6 Replies Latest reply on Jan 26, 2013 4:01 PM by psyphi7

    VM Guest cannot ping default gateway - Bridge Network Adapter

    psyphi7 Lurker

      Hello,

       

      I am using VMWare Infrastructure and setting up VMs using the Bridge Network Adapter.  Everything worked before when I was using a generic Modem/Router combo as my default gateway with an IP of 192.168.0.1.  All VMs could communicate without any issues.

       

      I am now using a Cisco 3560 Layer 3 switch for my router.  Settings below:

       

      vlan 10

           name data

      interface vlan 10

           ip address 192.168.0.1 255.255.255.0

      int fa 0/1

           description Windows 7 PC

           switchport access vlan 10

      ip routing

       

      My Windows 7 VM Host is able to ping the Cisco 3560 Switch/Router.

       

      ------------------------------------------------------------

      VM Host running on Windows 7:

      IP address: 192.168.0.10

      Mask: 255.255.255.0

      GW: 192.168.0.1

      ------------------------------------------------------------

      ------------------------------------------------------------

      VM Guest1 running Windows Server 2003:

      IP address: 192.168.0.15

      Mask: 255.255.255.0

      GW: 192.168.0.1

      -----------------------------------------------------------

       

      The VM Guest cannot ping the Gateway or the Host.  The windows firewall is disbled in the VM Guest.

       

      I am confused as to why my set up does not work.  Any advice would be greatly appreciated.

       

      Thank you.

        • 1. Re: VM Guest cannot ping default gateway - Bridge Network Adapter
          a.p. Guru
          vExpertUser ModeratorsCommunity Warriors

          Welcome to the Community,

           

          some thoughts:

          did you set the VLAN-ID on the virtual port group too? This should only be done with the physical port configured as a trunk port!

          for Fast Ethernet you may need to set a fixed speed and duplex (on both sides), because Autosensing may not work properly.

           

          André

           

          You may also want to take a look at http://kb.vmware.com/kb/1004127 for an example switch port configuration.

          • 2. Re: VM Guest cannot ping default gateway - Bridge Network Adapter
            psyphi7 Lurker

            I am using VMWare Server 2 so I do not have any of the advanced options.  I am not configuring my switchport to be a trunk.  It should work as an access port.  I forgot to include this command in my original post for the switchport "switchport mode access"

             

            Since my host and the Cisco switch can ping each other, I do not think it is a speed/duplex issue.

             

            I have my switchport configured according to the KB 1004127 article you attached, but I am not using ESXi.

            • 3. Re: VM Guest cannot ping default gateway - Bridge Network Adapter
              a.p. Guru
              User ModeratorsCommunity WarriorsvExpert

              Sorry I was kind of unsure which product you are using because you posted in the VMware Workstation forum and talked about "VMware Infrastructure".

              Did you already check the Windows Firewall to see whether Windows did block traffic after detecting the connection to the new switch? You may try to delete the arp cache on the Windows 7 host to see if this makes a difference.

               

              André

               

              PS: Discussion moved from VMware Workstation to VMware Server 2  General Issues

              1 person found this helpful
              • 4. Re: VM Guest cannot ping default gateway - Bridge Network Adapter
                psyphi7 Lurker

                Thank you for moving my post to the correct forum.

                 

                The VM host firewall is not blocking my switch because I can ping to and from the switch.

                 

                Here is arp table on the Windows 7 Host:

                C:\Users\psyphi7>arp -a

                 

                Interface: 192.168.0.10 --- 0xb
                  Internet Address      Physical Address      Type
                  192.168.0.1          00-13-c3-d0-f9-c1     dynamic
                  192.168.0.255         ff-ff-ff-ff-ff-ff     static
                  224.0.0.2             01-00-5e-00-00-02     static
                  224.0.0.22            01-00-5e-00-00-16     static
                  224.0.0.251           01-00-5e-00-00-fb     static
                  224.0.0.252           01-00-5e-00-00-fc     static
                  239.255.255.250       01-00-5e-7f-ff-fa     static

                 

                Here is the arp table on the Cisco switch:

                Switch#show arp
                Protocol  Address          Age (min)  Hardware Addr   Type   Interface
                Internet  10.0.0.1                -   0013.c3d0.f9c2  ARPA   Vlan20
                Internet  192.168.0.10            8   0025.2233.9358  ARPA   Vlan10
                Internet  192.168.0.1             -   0013.c3d0.f9c1  ARPA   Vlan10

                 

                The ARP cache is correct.   However, on my VM Guest:

                C:\Documents and Settings\Administrator>arp -a

                No ARP Entries Found

                 

                The next thing I tried was adding a Static ARP entry on the VM Guest:

                C:\Documents and Settings\Administrator>arp -s 192.168.0.1 00-13-c3-d0-f9-c1

                C:\Documents and Settings\Administrator>arp -a

                Interface: 192.168.0.15 --- 0x10003

                  Internet Address      Physical Address          Type

                  192.168.0.1             00-13-c3-d0-f9-c1          Static

                 

                C:\Documents and Settings\Administrator>ping 192.168.0.1

                Request timed out.

                Request timed out.

                 

                There seems to be something on the VM Guest that is making it not see the router.  I am trying to set up an isolated lab with a VM host set up and some IP phones attached to the switch/router.  Is there a different way I could this without using bridged network adapters?

                • 5. Re: VM Guest cannot ping default gateway - Bridge Network Adapter
                  a.p. Guru
                  Community WarriorsUser ModeratorsvExpert

                  Please take a look at the following KB articles, to see whether it is related with e.g. the "VMware Bridge Protocol" or a the VMNet0 NIC mapping.

                  http://kb.vmware.com/kb/1008367

                  http://kb.vmware.com/kb/1007250

                   

                  André

                  • 6. Re: VM Guest cannot ping default gateway - Bridge Network Adapter
                    psyphi7 Lurker

                    Thank you for the help.

                     

                    I re-did my Lab to solve the problem.  I uninstalled VMWare Server and got VMWare Workstation.

                     

                    I also set up my switch back to Layer 2 only and have it plugged into my router on VLAN1  192.168.0.0 /24.

                     

                    The bridge networking is now working on my network.