12 Replies Latest reply: Sep 13, 2012 12:57 PM by EdStevens RSS

    not Ping linux intstall on vmware from host os win 7

    khan786
      my host os is win 7 ,,,,i install vm ware and install linux on vmware...now i want to ping linux from win 7...
      how i can do it...
      firwall is disable.
      please help me..
        • 1. Re: not Ping linux intstall on vmware from host os win 7
          You probably have an incorrectly configured VMware setup.
          Go here:
          http://www.vmware.com/
          Find their forums. There's a link right there on the front page.
          Seek help there.
          (VMware isn't an Oracle product, so your post isn't appropriate for assistance with another organization's product.)
          • 2. Re: not Ping linux intstall on vmware from host os win 7
            EdStevens
            kundi786 wrote:
            my host os is win 7 ,,,,i install vm ware and install linux on vmware...now i want to ping linux from win 7...
            how i can do it...
            firwall is disable.
            please help me..
            on the host os, enter the following at a command prompt
            ipconfig
            -- whatever ping command you were using --
            On the vm, at a command prompt
            ifconfig
            cat /etc/hosts
            Copy commands and results and past back here.
            • 3. Re: not Ping linux intstall on vmware from host os win 7
              khan786
              my host os in win7 i past the ipconfig command this result is return

              Microsoft Windows [Version 6.1.7601]
              Copyright (c) 2009 Microsoft Corporation. All rights reserved.

              C:\Users\home>ipconfig

              Windows IP Configuration


              Wireless LAN adapter Wireless Network Connection 2:

              Media State . . . . . . . . . . . : Media disconnected
              Connection-specific DNS Suffix . :

              Ethernet adapter Bluetooth Network Connection:

              Media State . . . . . . . . . . . : Media disconnected
              Connection-specific DNS Suffix . :

              Wireless LAN adapter Wireless Network Connection:

              Media State . . . . . . . . . . . : Media disconnected
              Connection-specific DNS Suffix . :

              Ethernet adapter Local Area Connection:

              Connection-specific DNS Suffix . :
              IPv6 Address. . . . . . . . . . . : 2002:7b57:571e:b:dc8f:4c4b:c7d9:6e2b
              Site-local IPv6 Address . . . . . : fec0::b:dc8f:4c4b:c7d9:6e2b%1
              Temporary IPv6 Address. . . . . . : 2002:7b57:571e:b:4843:e06f:96bf:7096
              Link-local IPv6 Address . . . . . : fe80::dc8f:4c4b:c7d9:6e2b%11
              IPv4 Address. . . . . . . . . . . : 17.0.0.222
              Subnet Mask . . . . . . . . . . . : 255.0.0.0
              Default Gateway . . . . . . . . . : 17.0.0.1

              Ethernet adapter VMware Network Adapter VMnet1:

              Connection-specific DNS Suffix . :
              Link-local IPv6 Address . . . . . : fe80::7459:b96c:f211:5232%20
              IPv4 Address. . . . . . . . . . . : 192.168.71.1
              Subnet Mask . . . . . . . . . . . : 255.255.255.0
              Default Gateway . . . . . . . . . :

              Ethernet adapter VMware Network Adapter VMnet8:

              Connection-specific DNS Suffix . :
              Link-local IPv6 Address . . . . . : fe80::b190:d063:db61:b48e%21
              IPv4 Address. . . . . . . . . . . : 192.168.252.1
              Subnet Mask . . . . . . . . . . . : 255.255.255.0
              Default Gateway . . . . . . . . . :

              Tunnel adapter isatap.{17484828-0530-4AA5-AAD6-4EB78B42FCD3}:

              Media State . . . . . . . . . . . : Media disconnected
              Connection-specific DNS Suffix . :

              Tunnel adapter isatap.{6E9C32E0-63AA-45DF-82ED-78DFF765FB1C}:

              Media State . . . . . . . . . . . : Media disconnected
              Connection-specific DNS Suffix . :

              Tunnel adapter isatap.{7055BEDF-DEBD-4675-9766-998B85FCBFF7}:

              Media State . . . . . . . . . . . : Media disconnected
              Connection-specific DNS Suffix . :

              Tunnel adapter Teredo Tunneling Pseudo-Interface:

              Media State . . . . . . . . . . . : Media disconnected
              Connection-specific DNS Suffix . :

              Tunnel adapter isatap.{08F0E87E-AEAE-4D02-A7E5-2124E7AB5979}:

              Media State . . . . . . . . . . . : Media disconnected
              Connection-specific DNS Suffix . :

              Tunnel adapter isatap.{3F2024BE-AEB9-476E-819B-C84702F199F0}:

              Media State . . . . . . . . . . . : Media disconnected
              Connection-specific DNS Suffix . :

              Tunnel adapter isatap.{041B7054-9E30-4E32-A7EC-E6D5DBE5BC4A}:

              Media State . . . . . . . . . . . : Media disconnected
              Connection-specific DNS Suffix . :

              C:\Users\home>
              ==================================================================
              ===========================================================
              on linux os i give the following command and it return this


              [root@lnxdb ~]# ifconfig
              eth0 Link encap:Ethernet HWaddr 00:0C:29:22:FC:FF

              inet addr:192.168.0.192 Bcast:192.168.0.255 Mask:255.255.255.0

              inet6 addr: fe80::20c:29ff:fe22:fcff/64 Scope:Link

              UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

              RX packets:85 errors:0 dropped:0 overruns:0 frame:0

              TX packets:48 errors:0 dropped:0 overruns:0 carrier:0

              collisions:0 txqueuelen:1000

              RX bytes:7073 (6.9 KiB) TX bytes:8258 (8.0 KiB)

              Interrupt:67 Base address:0x2000

              lo
              Link encap:Local Loopback

              inet addr:127.0.0.1 Mask:255.0.0.0

              inet6 addr: ::1/128 Scope:Host

              UP LOOPBACK RUNNING MTU:16436 Metric:1

              RX packets:30445 errors:0 dropped:0 overruns:0 frame:0

              TX packets:30445 errors:0 dropped:0 overruns:0 carrier:0

              collisions:0 txqueuelen:0

              RX bytes:15555049 (14.8 MiB)
              TX bytes:15555049 (14.8 MiB)

              ============================
              now please help me..
              • 4. Re: not Ping linux intstall on vmware from host os win 7
                EdStevens
                kundi786 wrote:
                my host os in win7 i past the ipconfig command this result is return

                Microsoft Windows [Version 6.1.7601]
                Copyright (c) 2009 Microsoft Corporation. All rights reserved.

                C:\Users\home>ipconfig
                <snip>
                Ethernet adapter VMware Network Adapter VMnet1:

                Connection-specific DNS Suffix . :
                Link-local IPv6 Address . . . . . : fe80::7459:b96c:f211:5232%20
                IPv4 Address. . . . . . . . . . . : 192.168.71.1
                Subnet Mask . . . . . . . . . . . : 255.255.255.0
                Default Gateway . . . . . . . . . :

                Ethernet adapter VMware Network Adapter VMnet8:

                Connection-specific DNS Suffix . :
                Link-local IPv6 Address . . . . . : fe80::b190:d063:db61:b48e%21
                IPv4 Address. . . . . . . . . . . : 192.168.252.1
                Subnet Mask . . . . . . . . . . . : 255.255.255.0
                Default Gateway . . . . . . . . . :

                <snip>
                ==================================================================
                ===========================================================
                on linux os i give the following command and it return this


                [root@lnxdb ~]# ifconfig
                eth0 Link encap:Ethernet HWaddr 00:0C:29:22:FC:FF

                inet addr:192.168.0.192 Bcast:192.168.0.255 Mask:255.255.255.0
                <snip>
                now please help me..
                Your VM machine has access to two "routers" as show in the ipconfig of the host os.

                Ethernet adapter VMware Network Adapter VMnet1 implements the hostonly adapter
                Ethernet adapter VMware Network Adapter VMnet8 implements the NAT adapter.

                VMNet1 is at 192.168.71.1
                VMNet8 is at 192.168.252.1

                Your vm machine is showing an ip address of 192.168.0.192. How did you arrive at that address? It is not in the subnet of either of the VMNet adapters running on the host os.
                What net config did you specify for your virtual machine? NAT? Hostonly? Bridged?
                Did you specify for your vm to have a fixed IP (supposedly 192.168.0.192) or dhcp?

                From the linux vm, show us
                cat  /etc/sysconfig/network-scripts/ifcfg-eth0
                Edited by: EdStevens on Sep 3, 2012 3:21 PM
                • 5. Re: not Ping linux intstall on vmware from host os win 7
                  khan786
                  i have installed oracle on linux and for this i set static ip address....

                  [root@lnxdb ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
                  #
                  Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]

                  DEVICE=eth0
                  BOOTPROTO=none
                  HWADDR=00:0C:29:22:FC:FF
                  ONBOOT=yes

                  NETMASK=255.255.255.0
                  IPADDR=192.168.0.192
                  GATEWAY=255.255.255.
                  0
                  TYPE=Ethernet
                  USERCTL=no
                  IPV6INIT=no
                  PEERDNS=yes

                  [root@lnxdb ~]#
                  • 6. Re: not Ping linux intstall on vmware from host os win 7
                    EdStevens
                    kundi786 wrote:
                    i have installed oracle on linux and for this i set static ip address....

                    [root@lnxdb ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
                    #
                    Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]

                    DEVICE=eth0
                    BOOTPROTO=none
                    HWADDR=00:0C:29:22:FC:FF
                    ONBOOT=yes

                    NETMASK=255.255.255.0
                    IPADDR=192.168.0.192
                    GATEWAY=255.255.255.
                    0
                    TYPE=Ethernet
                    USERCTL=no
                    IPV6INIT=no
                    PEERDNS=yes

                    [root@lnxdb ~]#
                    OK, that is good. How did you arrive at that address? Please note that it is NOT in the subnet of either of the VMware net adapters running on your host OS. These adapters are essentially the routers to which your vm is attached. I would expect your IP address to be either 192.168.71.somethinggreaterthan2 or 192.168.252.somethinggreaterthan2.

                    I set up my vm's under vmworkstation to use NAT (which by default goes to theVMNet8 adapter) When I first started building vm's under vmworkstation I also discovered that when installing the OS I had to specify the gateway and primary dns at aaa.bbb.ccc.2 (where aaa.bbb.ccc is the subnet of the VMNet8 adapter.)

                    so, if my host os shows the vmnet8 adapter at 192.168.111.1
                    I set the primary gateway and dns addresses at 192.168.111.2
                    I set the vm ip address at 192.168.111.something greater than 2.

                    Actually, for my own standard, that last octet is more finely tuned, to map to my vm machine name. With the above VMNet8 address, my first vm will be named 'vmlnxsrv01', and the '01' will be mapped into the ip address of 192.168.111.101. My second machine will be named 'vmlnxsrv02' and have an ip of 192.168.111.102. If I build virtual Windows servers, their address will start with 2xx, so my first windows server is vmwinsrv01 and have an ip of 192.168.111.201.
                    • 7. Re: not Ping linux intstall on vmware from host os win 7
                      khan786
                      first of all thanks for reply..
                      so you think that i should change my linux os ip address to 192.168.255.192
                      then this will work...?
                      any changes in vm ware setting??????
                      • 8. Re: not Ping linux intstall on vmware from host os win 7
                        EdStevens
                        kundi786 wrote:
                        first of all thanks for reply..
                        so you think that i should change my linux os ip address to 192.168.255.192
                        then this will work...?
                        No, it will not. Where did you come up with that address?

                        Also, in reviewing the thread I just noticed another criticial issue.
                        [root@lnxdb ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
                        # 
                        Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
                        
                        
                        DEVICE=eth0
                        BOOTPROTO=none
                        HWADDR=00:0C:29:22:FC:FF
                        ONBOOT=yes
                        
                        
                        NETMASK=255.255.255.0
                        IPADDR=192.168.0.192
                        GATEWAY=255.255.255.
                        0
                        Looks like you had a line-wrap on your GATEWAY spec. And even allowing for that, where did you come up with that address? It really looks like you are just pulling ip addresses out of your .... out of thin air. None of them have any relation to anything. Where are you getting them from?

                        One more time:
                        Your VMNet8 adapter is at 192.168.252.1
                        Your gateway address and machine address need to be in the same subnet. That subnet is 192.168.252.*
                        The router (which IS VMNet8) is at 192.168.252.1
                        Your gateway needs to be at 192.168.252.2
                        Your server needs to be at 192.168.252.something_higher_than_2
                        Given your VMnet8 address, I'd put the server at 192.168.252.101
                        any changes in vm ware setting??????
                        Not that I can see. It set up the basic network when it created the VMNet* adapters on the host. Now you just need to configure your server properly to use that network.
                        • 9. Re: not Ping linux intstall on vmware from host os win 7
                          khan786
                          thanks sir for your reply....
                          but still i am not clear about what i should do to solved this matter..?

                          i am going in the vm network adapter setting and changing ip to set 192.168.255.4 and subnet mask to set 192.168.255.2
                          but they generate error.......

                          what i should do...?
                          • 10. Re: not Ping linux intstall on vmware from host os win 7
                            Catch-22
                            192.168.255.4 and subnet mask to set 192.168.255.2
                            These are invalid IP addresses and invalid subnets.

                            I suggest to read the vmware manual and try a standard setup or follow the advise from rukbat.
                            • 11. Re: not Ping linux intstall on vmware from host os win 7
                              EdStevens
                              kundi786 wrote:
                              thanks sir for your reply....
                              but still i am not clear about what i should do to solved this matter..?

                              i am going in the vm network adapter setting and changing ip to set 192.168.255.4 and subnet mask to set 192.168.255.2
                              but they generate error.......
                              Of course they do. You aren't doing anything I explain and keep going off and doing something else.


                              Who said anything about changing the subnet mask to anything besides its default of 255.255.255.0? Why did you try to change it? And when you did try to change it, where did you come up with that address?

                              Who said anything about changing anything about your vm network adapter? Why did you try to change it? And when you did try to change it, where did you come up with that address?


                              In my previous post I VERY SPECIFICALLY said " Now you just need to configure your server properly to use that network.". I said NOTHING about changing your vm network adapter.
                              what i should do...?
                              The first thing you need to do is quit pulling IP address out of thin air. I have already explained the relationship between your vm's IP address and the IP address of the vmnet adapter on the host. I have already told you that you do NOT need to change your VM net adapter settings. I've already told you what range of IP addresses you can use for your vm, based on the vmnet adapter addresses. But you keep ignoring that and going off on your own. At this point I'm at a total loss on what else to explain.
                              • 12. Re: not Ping linux intstall on vmware from host os win 7
                                EdStevens
                                EdStevens wrote:
                                kundi786 wrote:
                                thanks sir for your reply....
                                but still i am not clear about what i should do to solved this matter..?

                                i am going in the vm network adapter setting and changing ip to set 192.168.255.4 and subnet mask to set 192.168.255.2
                                but they generate error.......
                                Of course they do. You aren't doing anything I explain and keep going off and doing something else.


                                Who said anything about changing the subnet mask to anything besides its default of 255.255.255.0? Why did you try to change it? And when you did try to change it, where did you come up with that address?

                                Who said anything about changing anything about your vm network adapter? Why did you try to change it? And when you did try to change it, where did you come up with that address?


                                In my previous post I VERY SPECIFICALLY said " Now you just need to configure your server properly to use that network.". I said NOTHING about changing your vm network adapter.
                                what i should do...?
                                The first thing you need to do is quit pulling IP address out of thin air. I have already explained the relationship between your vm's IP address and the IP address of the vmnet adapter on the host. I have already told you that you do NOT need to change your VM net adapter settings. I've already told you what range of IP addresses you can use for your vm, based on the vmnet adapter addresses. But you keep ignoring that and going off on your own. At this point I'm at a total loss on what else to explain.
                                OK I think I see on small point of confusion. When reviewing your ifcfg_eth0 file, I commented on your net mask address (which looked wrapped in the original post), then said "And even allowing for that, where did you come up with that address?" At that point I was referring to the IPADDR=192.168.0.192, not the gateway address. That IPADDR=192.168.0.192 should have been in the same subnet (first three octets of the ip address) as your vmnet8 adapter.

                                And when you change ifcfg_eth0, you have to restart the network services on the vm. Easiest to just reboot it.