Results 1 to 5 of 5

Thread: Networking (Ubuntu VM <-> Mac host), routing issue

  1. #1
    Join Date
    Apr 2006
    Beans
    6

    Networking (Ubuntu VM <-> Mac host), routing issue

    OK, so I have an Ubuntu VM (CLI only, no X Server) running in Parallels on my Mac. I can't get the two to connect, and I'm fairly sure it's a network issue, not a Parallels issue. I have set up IP aliases on the Linux and on the Mac in the same subnet (172.16.12.101 and 102), but I don't know how to set up the routing (I get a "no route to host" going both directions). They're both aliased on the same device (en0 and eth0, which should be the same Ethernet port), so do I just do:

    Mac: route add -net 172.16.12.102 netmask 255.255.255.0 en0
    Linux: route add -net 172.16.12.101 netmask 255.255.255.0 eth0

    Or do I need to use a gateway address? A complication is that I don't have a cable plugged in to that port because I have no networking at home (but I do at college). So I assume I need to set it to ifconfig up on boot?

    Thanks in advance for any help.

  2. #2
    Join Date
    Nov 2007
    Location
    Atlanta, Georgia
    Beans
    494
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Networking (Ubuntu VM <-> Mac host), routing issue

    Is parallels setup bridged or NAT? Can you ping the router on the linux box? Can you ping google on the linux box?
    GNU/Linux>Windows

  3. #3
    Join Date
    Apr 2006
    Beans
    6

    Re: Networking (Ubuntu VM <-> Mac host), routing issue

    Quote Originally Posted by ilrudie View Post
    Is parallels setup bridged or NAT? Can you ping the router on the linux box? Can you ping google on the linux box?
    It's set up as bridged at the moment. I can switch to NAT if you think that'd help.

    I have no external router. As I said in the first post, I have no networking to any other box whatsoever. The linux side cannot ping google, but that might have something to do with not having internet access from that computer .

    Ultimately (in a month) it'll come with me to my college apartment where there is a NAT router and high-speed internet. But I don't want to wait that long, because I'm setting this up as a learning experience to teach myself Linux and Python and Apache and stuff and don't want to put that off for a month. I'm just trying to get the VM and the host to have static local IPs so I can SSH back and forth and browse my VM's Apache sites from my Mac. The only way to get internet to that tower at home is to borrow my sister's laptop (mine died ), dial that into AOL, and share the connection over wireless (not having a 30 foot Cat5).

  4. #4
    Join Date
    Nov 2007
    Location
    Atlanta, Georgia
    Beans
    494
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Networking (Ubuntu VM <-> Mac host), routing issue

    I don't recall exactly if parallels has a host only option but it sounds like this is what you want for right now. I'm pretty sure VMware has this option so Parallels probably does also. I think the problem you are having is Parallels is giving your Linux vm direct access to a virtual interface off the physical interface. Since there is no link on that interface they can't talk to each other. With host only your vm won't be able to see the internet but this should not be a problem since you don't have internet right now anyway. You could also see if NAT might work since it should cause parallels to do some routing but I'd recommend the host only option first if its there.

    (sorry I forgot about the not having networking at home part of the question when writing the original response)
    GNU/Linux>Windows

  5. #5
    Join Date
    Apr 2006
    Beans
    6

    Re: Networking (Ubuntu VM <-> Mac host), routing issue

    Yeah, I'll try host-only networking. I tried linking the two ethernet ports on my mac together without success, and Bonjour/avahi-daemon gets me Linux -> Mac but not Mac -> Linux.

    Thanks for your help.

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
  •