2 NICs in one box on 2 different networks.


Results 1 to 3 of 3

Thread: 2 NICs in one box on 2 different networks.

  1. #1
    Join Date
    Oct 2002
    Posts
    547

    2 NICs in one box on 2 different networks.

    Greetings, I have attached a diagram to show the layout, but basically I have a server that has 2 nics. I use NIC1 for the server and its services. Im using VirtualBox to run VMs and want to use NIC2 for the VMs exclusively and I want the VMs on a different network completely from the host.

    Ive tried setting up NIC2 on the other network but I end up with networking problems on network1. Also I cant figure out how to tell VirtualBox to bind to the host NIC2.

    Diagram

    Thanks for your help.

    Mike
    Last edited by techwise; 06-05-2009 at 11:01 AM.
    $whatis microsoft
    microsoft: nothing appropriate

  2. #2
    Join Date
    Sep 1999
    Posts
    3,202
    All doable. Are you setting multiple default gateways? Post output of "ifconfig -a" and "route -an"

  3. #3
    Join Date
    Oct 2002
    Posts
    547
    Thanks,

    The documentation from VirtualBox is lacking and I cant tell if I can make the VM talk to the hosts NIC directly without having to configure the host NIC other than turning it on.

    Yes, I want 2 discrete networks, one on each NIC on its own default gateway (one is on one ISP and one will be on another).

    Right now I have the host in bridged mode so Im running the VM and the host on NIC1. This is only because when I turn on NIC2 on the host then I have networking problems on the host.

    I "*" out my ips.

    eth0 Link encap:Ethernet HWaddr 00:30:48:7d:cc:16
    inet addr:* Bcast:* Mask:*
    inet6 addr: * Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:5882460 errors:0 dropped:0 overruns:0 frame:0
    TX packets:5882117 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:100
    RX bytes:569368235 (542.9 MB) TX bytes:8258354786 (7.6 GB)
    Base address:0x3000 Memory:d8020000-d8040000

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:524140965 errors:0 dropped:0 overruns:0 frame:0
    TX packets:524140965 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:4932564712616 (4.4 TB) TX bytes:4932564712616 (4.4 TB)

    vboxnet0 Link encap:Ethernet HWaddr 00:76:62:6e:65:74
    inet addr:192.168.56.1 Bcast:192.168.56.255 Mask:255.255.255.0
    inet6 addr: fe80::276:62ff:fe6e:6574/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:1692 (1.6 KB)
    $whatis microsoft
    microsoft: nothing appropriate

Tags for this Thread

Posting Permissions

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