Results 1 to 3 of 3

Thread: VMWare networking - expose 2nd NIC ONLY to guest

  1. #1
    Join Date
    Mar 2007
    Location
    Sheffield, UK
    Beans
    10
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Question VMWare networking - expose 2nd NIC ONLY to guest

    Hi,

    I am trying to test a router/firewall setup within VMWare. In order to do this I have installed a 2nd NIC in my host machine. The idea is that this will be connected to the WAN and a guest machine will act as gateway to rest of network.

    My problem is that I cannot seem to make the 2nd NIC available to the guest OS without it being visible to the host OS as well.

    Set up is as follows:

    Host:
    eth0 - internal network - set up as normal, connects to VMNet0
    eth1 - WAN - connected to VMNet2 (do not want this to be visible to host)

    Guest:
    eth0 - connected to VMNet2 - external side of gateway
    eth1 - connected to VMNet0 - internal side of gateway

    Currently the guest is working as planned, but only when eth1 is enabled and working on the host (allowing users on the host to connect to the WAN without going via the guest OS).

    Hope this makes sense!

  2. #2
    Join Date
    Feb 2007
    Location
    New Zealand
    Beans
    826
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: VMWare networking - expose 2nd NIC ONLY to guest

    Yes it makes sense but I don't think you can do what you want.

    I think the nic has to be available to the host to be visible to the guest.

    The closest I think you'll get is to set up your routing on the host so that everything coming in on that nic is directed to the guest.
    Veloce
    Ubuntu 9.04 64bit on Dell Vostro 1510, Core2 Duo T8100, Nvidia 8400M , Intel 1395 Wireless.
    OK: Wireless, kvm, Canon irc2880, Synergy.

  3. #3
    Join Date
    Mar 2007
    Location
    Sheffield, UK
    Beans
    10
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Smile Re: VMWare networking - expose 2nd NIC ONLY to guest

    Hi,

    Cheers for the reply.
    Think I have solved it with the following setup on the host:

    Code:
    ifconfig eth1 0.0.0.0 up
    This way the interface is up and available to the VM, but host will not use the interface as no IP address.

    Hope this is of use to someone else.

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
  •