Options

Virtuabox Cannot ping Host From Guest

ally_ukally_uk Member Posts: 1,145 ■■■■□□□□□□
hey guys Windows 7 box is my Host

192.168.1.4
255.255.255.0
192.168.1.1

Disabled the firewall on 7 and after doing that I can Ping My Virtual Server which Is Ubuntu Server, the problem I am having is I cannot seem to Ping from The Server to the Host.

Here are the details of the Server ( Ubuntu ) I am not to sure what the hell network and broadcast are I copied a example config if somebody can shed some light on what these do that would be great didn't want to post in a Linux forum and be called a idiot lol

iface eth0 inet static
address 192.168.1.4
gateway 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255

When I try a ping or tracert nothing happens I have set the network adapter to Bridged in Virtual Box


Many Thanks I love this forum :)
Microsoft's strategy to conquer the I.T industry

" Embrace, evolve, extinguish "

Comments

  • Options
    CodeBloxCodeBlox Member Posts: 1,363 ■■■■□□□□□□
    Your host and guest both have the same IP address?
    Currently reading: Network Warrior, Unix Network Programming by Richard Stevens
  • Options
    ally_ukally_uk Member Posts: 1,145 ■■■■□□□□□□
    Whoops my bad changed the I.P address to 192.168.1.3 still unable to ping the Windows 7 Host

    eth0 Link encap:Ethernet HWaddr 08:00:27:b9:bc:e6
    inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::a00:27ff:feb9:bce6/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:10 errors:0 dropped:0 overruns:0 frame:0
    TX packets:58 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:2030 (2.0 KB) TX bytes:7484 (7.4 KB)
    Interrupt:10 Base address:0xd020
    Microsoft's strategy to conquer the I.T industry

    " Embrace, evolve, extinguish "
  • Options
    ally_ukally_uk Member Posts: 1,145 ■■■■□□□□□□
    Added entry to hosts in linux

    root@shinobi:/etc# cat hosts
    127.0.0.1 localhost
    127.0.1.1 shinobi
    192.1.68.1.4 user-PC

    I am now really stumped can ping my router from linux 192.168.1.1 and websites i.e Google so I assume DNS is properly working, just cannot seem to ping the Hostmachine tried doing a traceroute to 192.168.1.4

    traceroute to 192.168.1.1 (192.168.1.1), 30 hops max, 60 byte packets
    1 * * *
    2 * * *
    3 * * *
    4 * * *
    5 * * *
    6 * * *
    7 * * *
    8 * * *
    9 * * *
    10 * * *
    11 * *
    Microsoft's strategy to conquer the I.T industry

    " Embrace, evolve, extinguish "
  • Options
    QordQord Member Posts: 632 ■■■■□□□□□□
    You wired or wireless?
  • Options
    vinbuckvinbuck Member Posts: 785 ■■■■□□□□□□
    Have you tried disabling the ubuntu firewall? Have you tried assigning the same IP address on the Windows host to another device and removing the windows host from the network temporarily?

    Also, is this all virtually networked, or is the physical network gear in play?
    Cisco was my first networking love, but my "other" router is a Mikrotik...
  • Options
    CodeBloxCodeBlox Member Posts: 1,363 ■■■■□□□□□□
    I believe i found your solution. The same thing happened to me and my host is win7 pro. I have an ubuntu guest as well.. You have to add the exception for ICMP echo request through the firewall. After I did that, my pings returned. This exception is to be added to the windows 7 host firewall. Let me know if you need the specific steps on how to do it.

    EDIT: Here is how to:

    1) Open "Windows Firewall with Advanced Security"
    2) Right click "Inbound Rules"
    3) Click New Rule...
    4) Select a rule type of "Custom"
    5) Click next
    6) Click next again
    7) For protocol type, select "ICMPv4"
    icon_cool.gif Click customize
    9) Specific ICMP types
    10) Check the box for "Echo Request"
    11) Click next
    12) Click next (allowing this for all IP addresses)
    13) Allow the connection
    14) Next
    15) Next
    16) Give it a name

    Should be good to go. Let me know if it works for you!

    I find it odd that you disabled the firewall and the pings still did not return. You positive you disabled it for the proper network? You can disable for public/private networks. The instant I add the exception to my firewall the pings return :D
    Currently reading: Network Warrior, Unix Network Programming by Richard Stevens
  • Options
    Michael.J.PalmerMichael.J.Palmer Member Posts: 407 ■■■□□□□□□□
    The above post may resolve it but I never really had these issues with Virtual Box before, make sure that you've changed the network settings in VBox to be a bridged connection instead of NAT, I guess that could have something to do with it as well.
    -Michael Palmer
    WGU Networks BS in IT - Design & Managment (2nd Term)
    Transfer: BAC1,BBC1,CLC1,LAE1,INC1,LAT1,AXV1,TTV1,LUT1,INT1,SSC1,SST1,TNV1,QLT1,ABV1,AHV1,AIV1,BHV1,BIV1
    Required Courses: EWB2, WFV1, BOV1, ORC1, LET1, GAC1, HHT1, TSV1, IWC1, IWT1, MGC1, TPV1, TWA1, CPW3.
    Key: Completed, WIP, Still to come
  • Options
    ally_ukally_uk Member Posts: 1,145 ■■■■□□□□□□
    I am running Ethernet, And I have set the settings to Bridge in VirutalBox, the firewall has been set to off in Windows 7, Before I did this I wasn't able to ping from Win7 to Ubuntu.

    So by disabling the firewall in Win7 I can now ping from Host to Guest

    Win 7 > Ubuntu Server, but when I tried the other way around nothing happens.

    I will try adding the icmp exception in the firewall and see if this makes any difference. On the Ubuntu server side I'm not to sure if I have a firewall running, I am running LXDE as the GUI, How would I check if a firewall is running?
    Microsoft's strategy to conquer the I.T industry

    " Embrace, evolve, extinguish "
  • Options
    ally_ukally_uk Member Posts: 1,145 ■■■■□□□□□□
    Unless there is a firewall running on my Dlink router?
    Microsoft's strategy to conquer the I.T industry

    " Embrace, evolve, extinguish "
  • Options
    ally_ukally_uk Member Posts: 1,145 ■■■■□□□□□□
    This has now been resolved, create a rule in the windows firewall to allow icmp requests
    Microsoft's strategy to conquer the I.T industry

    " Embrace, evolve, extinguish "
Sign In or Register to comment.