Results 1 to 6 of 6

Thread: I cant ping XP to XP (both are inside virtual box) via router

  1. #1
    Join Date
    Feb 2008
    Location
    Munster, Ireland
    Beans
    2,318
    Distro
    Xubuntu

    Question I cant ping XP to XP (both are inside virtual box) via router

    Hi.
    I have connected my Ubuntu laptop and Ubuntu desktop via a router and cat5 straight through cables. Everything works smoothly between my Ubuntu installations. I also have Windows XP installed on both laptop and desktop computers in Virtual Box. While in XP in Virtual box on both computers, I have assigned them both static addresses. They can not ping each other. Why is this? The addresses I use:
    XP inside Desktop Virtual Box 192.168.1.1
    XP inside Laptop Virtual Box 192.168.1.3

    Note: I am not connected to the internet when I tried.

    1st Distro used (live CD): Knoppix in early 2007 ¦ 1st Distro Installed: Ubuntu 7.10 in Feb 2008
    GNU/Linux User #470660 – Ubuntu User #28226
    Isaac Asimov: "I do not fear computers. I fear the lack of them."

  2. #2
    Join Date
    Oct 2004
    Location
    Cincinnati, OH
    Beans
    102
    Distro
    Ubuntu

    Re: I cant ping XP to XP (both are inside virtual box) via router

    Quote Originally Posted by Rytron View Post
    Hi.
    I have connected my Ubuntu laptop and Ubuntu desktop via a router and cat5 straight through cables. Everything works smoothly between my Ubuntu installations. I also have Windows XP installed on both laptop and desktop computers in Virtual Box. While in XP in Virtual box on both computers, I have assigned them both static addresses. They can not ping each other. Why is this? The addresses I use:
    XP inside Desktop Virtual Box 192.168.1.1
    XP inside Laptop Virtual Box 192.168.1.3

    Note: I am not connected to the internet when I tried.

    If your networking type is set to 'nat' this will not work. You should switch the adapter mode to 'bridged'.

  3. #3
    Join Date
    Feb 2008
    Location
    Munster, Ireland
    Beans
    2,318
    Distro
    Xubuntu

    Re: I cant ping XP to XP (both are inside virtual box) via router

    Thank you mindwarp. I'll try that.

    1st Distro used (live CD): Knoppix in early 2007 ¦ 1st Distro Installed: Ubuntu 7.10 in Feb 2008
    GNU/Linux User #470660 – Ubuntu User #28226
    Isaac Asimov: "I do not fear computers. I fear the lack of them."

  4. #4
    Join Date
    Feb 2008
    Location
    Munster, Ireland
    Beans
    2,318
    Distro
    Xubuntu

    Re: I cant ping XP to XP (both are inside virtual box) via router

    Quote Originally Posted by mindwarp View Post
    If your networking type is set to 'nat' this will not work. You should switch the adapter mode to 'bridged'.
    I see the NAT option is ticked. How do I switch the adapter mode to 'bridged'?

    The two Virtual Box Windows XP operating systems can ping 127.0.0.1 and their own ip addresses.
    Last edited by Rytron; February 11th, 2009 at 06:33 PM.
    1st Distro used (live CD): Knoppix in early 2007 ¦ 1st Distro Installed: Ubuntu 7.10 in Feb 2008
    GNU/Linux User #470660 – Ubuntu User #28226
    Isaac Asimov: "I do not fear computers. I fear the lack of them."

  5. #5
    Join Date
    Oct 2004
    Location
    Cincinnati, OH
    Beans
    102
    Distro
    Ubuntu

    Re: I cant ping XP to XP (both are inside virtual box) via router

    In virtual box under the VM's network settings, where it says 'Attached to:' switch it from NAT to Host Interface and that will put it on your network so you can ping out / in etc.

  6. #6
    Join Date
    Feb 2008
    Location
    Munster, Ireland
    Beans
    2,318
    Distro
    Xubuntu

    Re: I cant ping XP to XP (both are inside virtual box) via router

    Thanks.

    1st Distro used (live CD): Knoppix in early 2007 ¦ 1st Distro Installed: Ubuntu 7.10 in Feb 2008
    GNU/Linux User #470660 – Ubuntu User #28226
    Isaac Asimov: "I do not fear computers. I fear the lack of them."

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •