Results 1 to 6 of 6

Thread: Two network interfaces. One is jenky as ****.

  1. #1
    Join Date
    Aug 2010
    Location
    Cleveland, OH, USA
    Beans
    119
    Distro
    Ubuntu

    Two network interfaces. One is jenky as ****.

    Got two network interfaces, eth0 and vboxnet0 on a machine that hosts virtualbox machines. Default interface is eth0.

    I am able to access virtual machines through vboxnet0, but only when I access them by IP address:
    Code:
    ssh 10.10.1.103
    When I try to access virtual machines through vboxnet0 by hostname, the connection times out.

    Would also like to force internet connections through vboxnet0 (I have a virtual router running that provides connections for machines in virtual environment). I have been playing around with routing options, but no luck yet.

    Any help with this would be greatly appreciated.

    Thanks,
    Kurtis

  2. #2
    Join Date
    Mar 2013
    Beans
    3

    Re: Two network interfaces. One is jenky as ****.

    Would also like to force internet connections through vboxnet0 (I have a virtual router running that provides connections for machines in virtual environment). I have been playing around with routing options, but no luck yet.
    I believe this has something to do with the physical mac address of your internet card.

  3. #3
    Join Date
    Aug 2010
    Location
    Cleveland, OH, USA
    Beans
    119
    Distro
    Ubuntu

    Re: Two network interfaces. One is jenky as ****.

    Quote Originally Posted by trh51 View Post
    I believe this has something to do with the physical mac address of your internet card.
    Yeah, I just figured I'd ask here, because it's possible that Ubuntu can't utilize the vboxnet0 card the same way as a physical card. Was thinking someone here might have experience.

    Will probably try to fix this while treating the vboxnet0 interface the same as any physical interface. Holla back if you got knowledge on this shiiiit.

    -K

  4. #4
    Join Date
    Aug 2010
    Location
    Cleveland, OH, USA
    Beans
    119
    Distro
    Ubuntu

    Re: Two network interfaces. One is jenky as ****.

    I was able to get the internet connection to go through vboxnet0 using the following set of commands:
    Code:
    sudo route delete default eth0
    sudo route add default gw 10.10.1.1
    Cool. I will add this motherfukerr to my rc.local

    Still trying to figure out how to get the hostnames to resolve properly. If you know the answer, don't hold out on me, bro.

    -Kurtis

  5. #5
    Join Date
    Aug 2010
    Location
    Cleveland, OH, USA
    Beans
    119
    Distro
    Ubuntu

    Re: Two network interfaces. One is jenky as ****.

    What the ****k do all these thinggys mean in the route table??
    Code:
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    0.0.0.0           10.10.1.1     0.0.0.0         UG    0      0        0 vboxnet0
    192.168.1.0     0.0.0.0         255.255.255.0   U     1      0        0 eth0
    10.10.1.0       0.0.0.0         255.255.255.0   U     0      0        0 vboxnet0
    metric = 1? What the shiit is this? Going to hit the Googler for a little bitttttt.

    -K

  6. #6
    Join Date
    Aug 2010
    Location
    Cleveland, OH, USA
    Beans
    119
    Distro
    Ubuntu

    Re: Two network interfaces. One is jenky as ****.

    Took the bitchh route for the hostname resolving issue. Assigned static IPs to the VMs that I need to access from the host.

    Also note:
    The commands mentioned above did not work in rc.local. The final solution was to use network manager to edit the routes for eth0, checking the box that says "only use this mother**** for network resources", or some shitt like that. Then you can add the one line:
    Code:
    sudo route add default gw 10.10.1.1
    to your rc.local

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
  •