Adapter1 Wireless and Adapter2 LAN

Discussions related to using VirtualBox on Windows hosts.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Adapter1 Wireless and Adapter2 LAN

Post by vbox4me2 »

Do a 'route print' and look at the default gateway, thats where all traffic is going to, you probably need an extra routing statement for traffic on the LAN, that is if this can be differenciated by subnet or single ip address.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Adapter1 Wireless and Adapter2 LAN

Post by Sasquatch »

prs1025 wrote:I've tried all of the available configurations and I still can't have adapter1 set for my wireless connection and adapter2 set for LAN. I even tried bridging a connection between VirtualBox Host-Only Network and the LAN on the host but that didn't work either.
I'm using vBox version 3.0.2. Does anyone know if the newer version would fix my problem?
Do you have the VM settings like shown in the attachments below? My first NIC is called Marvell, because I have two wired NICs on my motherboard using different chips and I then know which one is which. I don't like the ethx names. I use Linux as Host, but that shouldn't matter for the networking settings.

Now with the settings like this, you should be able to access both networks whenever the Host has connection to either or both networks.
Attachments
NIC 1 of the VM
NIC 1 of the VM
bridged-1.png (38.9 KiB) Viewed 2391 times
NIC 2 of the VM
NIC 2 of the VM
bridged-2.png (38.91 KiB) Viewed 2391 times
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
prs1025
Posts: 27
Joined: 28. Aug 2009, 19:45
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: MS WindowsXP
Location: Cleveland

Re: Adapter1 Wireless and Adapter2 LAN

Post by prs1025 »

I think I did the "route print" correctly (again I'm not an IT guy) and here's the result but I don't know what all of this means. You say I may need an extra routing statement, can you please explain?

Code: Select all

C:\Documents and Settings\timo>route print
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 15 c5 08 17 33 ...... Broadcom NetXtreme 57xx Gigabit Controller - Pac
ket Scheduler Miniport
0x3 ...44 45 53 54 42 00 ...... Nortel IPSECSHM Adapter - Packet Scheduler Minip
ort
0x10005 ...00 ff 90 16 87 8a ...... Juniper Network Connect Virtual Adapter - De
terministic Network Enhancer Miniport
0x20006 ...08 00 27 00 90 69 ...... VirtualBox Host-Only Ethernet Adapter - Pack
et Scheduler Miniport
0x20007 ...00 13 02 72 19 8d ...... Intel(R) PRO/Wireless 3945ABG Network Connec
tion - Packet Scheduler Miniport
===========================================================================
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0  192.168.168.168  192.168.168.62       25
        127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1       1
      169.254.0.0      255.255.0.0  192.168.125.218  192.168.125.218      20
     192.168.56.0    255.255.255.0     192.168.56.1    192.168.56.1       20
     192.168.56.1  255.255.255.255        127.0.0.1       127.0.0.1       20
   192.168.56.255  255.255.255.255     192.168.56.1    192.168.56.1       20
    192.168.125.0    255.255.255.0  192.168.125.218  192.168.125.218      20
  192.168.125.218  255.255.255.255        127.0.0.1       127.0.0.1       20
  192.168.125.255  255.255.255.255  192.168.125.218  192.168.125.218      20
    192.168.168.0    255.255.255.0   192.168.168.62  192.168.168.62       25
   192.168.168.62  255.255.255.255        127.0.0.1       127.0.0.1       25
  192.168.168.255  255.255.255.255   192.168.168.62  192.168.168.62       25
        224.0.0.0        240.0.0.0     192.168.56.1    192.168.56.1       20
        224.0.0.0        240.0.0.0  192.168.125.218  192.168.125.218      20
        224.0.0.0        240.0.0.0   192.168.168.62  192.168.168.62       25
  255.255.255.255  255.255.255.255     192.168.56.1               3       1
  255.255.255.255  255.255.255.255     192.168.56.1           10005       1
  255.255.255.255  255.255.255.255     192.168.56.1    192.168.56.1       1
  255.255.255.255  255.255.255.255  192.168.125.218  192.168.125.218      1
  255.255.255.255  255.255.255.255   192.168.168.62  192.168.168.62       1
Default Gateway:   192.168.168.168
===========================================================================
Persistent Routes:
  None
Modedit: Use code blocks when 'quoting' terminal/command prompt output. Makes it a lot easier to read.
prs1025
Posts: 27
Joined: 28. Aug 2009, 19:45
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: MS WindowsXP
Location: Cleveland

Re: Adapter1 Wireless and Adapter2 LAN

Post by prs1025 »

Sasquatch wrote:
prs1025 wrote:I've tried all of the available configurations and I still can't have adapter1 set for my wireless connection and adapter2 set for LAN. I even tried bridging a connection between VirtualBox Host-Only Network and the LAN on the host but that didn't work either.
I'm using vBox version 3.0.2. Does anyone know if the newer version would fix my problem?
Do you have the VM settings like shown in the attachments below? My first NIC is called Marvell, because I have two wired NICs on my motherboard using different chips and I then know which one is which. I don't like the ethx names. I use Linux as Host, but that shouldn't matter for the networking settings.

Now with the settings like this, you should be able to access both networks whenever the Host has connection to either or both networks.

Yes I did try setting like that but than neither the wireless nor LAN would work.
By the way, if you can tell me how to put a screen shot into my post like you just did I'll be able to show you exactly how I have it configured.
Thanks
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Adapter1 Wireless and Adapter2 LAN

Post by Sasquatch »

There's a nice big tab called Upload attachment right below the reply box :).
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
prs1025
Posts: 27
Joined: 28. Aug 2009, 19:45
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: MS WindowsXP
Location: Cleveland

Re: Adapter1 Wireless and Adapter2 LAN

Post by prs1025 »

Yeah I tried that but it said I couldn't up load a .bmp. I noticed you used .png
Any way, here's what I got.
Attachments
Adapter2.PNG
Adapter2.PNG (38.66 KiB) Viewed 2384 times
Adapter1.PNG
Adapter1.PNG (36.81 KiB) Viewed 2385 times
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Adapter1 Wireless and Adapter2 LAN

Post by Sasquatch »

And what is the properties of the NIC? Start > Connections > pick a NIC > Properties. You must have a checkbox next to the VirtualBox Bridge service, though if you didn't have it, you wouldn't be able to select the NIC in the VM settings.

Can you summarize your problem again? It's getting a bit cluttered with replies and all.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
prs1025
Posts: 27
Joined: 28. Aug 2009, 19:45
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: MS WindowsXP
Location: Cleveland

Re: Adapter1 Wireless and Adapter2 LAN

Post by prs1025 »

prs1025 wrote:I'm new to VBox and not very IT savy. Thought I'd get that right out front.
I'm trying to set up 2 network adapters on my WindowsXP guest. One for the Wireless card connection on my WindowsXP host and the other for the LAN (wired) connection. I have Adapter 1 configured for Intel Pro/1000 MT Desktop and it's attached to NAT. This works. When I disable to wireless on the Host I lose the connection on the Guest.
So my question is, how do I set up Adapter2 to use the LAN (wired) connection? Any info would be greatly appreciated. Thanks
This is basically my problem. I want to be able to setup adapter1 to use the wireless connection on my host PC and adapter2 to use the LAN connection.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Adapter1 Wireless and Adapter2 LAN

Post by vbox4me2 »

All your traffic is going to "Default Gateway: 192.168.168.168", which one is that? should that adapter be disconnected and the gateway doesn't change the traffic is going nowhere.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Adapter1 Wireless and Adapter2 LAN

Post by Sasquatch »

Is the wired and wireless connection the same network? If so, then don't connect to both at the same time. If it isn't, then setting the same kind of configuration on the Guest as you have on the Host should be enough. Can you post the IP configuration of both interfaces on the Host and Guest? If it's DHCP it's even better, but we still need the actual addresses that are given to the interfaces (ipconfig /all).
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
prs1025
Posts: 27
Joined: 28. Aug 2009, 19:45
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: MS WindowsXP
Location: Cleveland

Re: Adapter1 Wireless and Adapter2 LAN

Post by prs1025 »

I have no idea where that default gateway is setup. I don't have a default gateway setup anywhere.
prs1025
Posts: 27
Joined: 28. Aug 2009, 19:45
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: MS WindowsXP
Location: Cleveland

Re: Adapter1 Wireless and Adapter2 LAN

Post by prs1025 »

Here's the ipconfig/all for the Host

Code: Select all

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\timo>ipconfig/all

Windows IP Configuration

        Host Name . . . . . . . . . . . . : timo
        Primary Dns Suffix  . . . . . . . : girardusa.com
        Node Type . . . . . . . . . . . . : Hybrid
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No
        DNS Suffix Search List. . . . . . : girardusa.com

Ethernet adapter Local Area Connection:

        Media State . . . . . . . . . . . : Media disconnected
        Description . . . . . . . . . . . : Broadcom NetXtreme 57xx Gigabit Cont
roller
        Physical Address. . . . . . . . . : 00-15-C5-08-17-33

Ethernet adapter VirtualBox Host-Only Network:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapte
r
        Physical Address. . . . . . . . . : 08-00-27-00-90-69
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 192.168.56.1
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        IP Address. . . . . . . . . . . . : fe80::a00:27ff:fe00:9069%6
        Default Gateway . . . . . . . . . :
        DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%5
                                            fec0:0:0:ffff::2%5
                                            fec0:0:0:ffff::3%5

Ethernet adapter {3360CA05-974B-42F4-9D59-8305DB65513F}:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Nortel IPSECSHM Adapter - Packet Sch
eduler Miniport
        Physical Address. . . . . . . . . : 44-45-53-54-42-00
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 0.0.0.0
        Subnet Mask . . . . . . . . . . . : 0.0.0.0
        IP Address. . . . . . . . . . . . : fe80::4645:53ff:fe54:4200%7
        Default Gateway . . . . . . . . . :
        DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                            fec0:0:0:ffff::2%1
                                            fec0:0:0:ffff::3%1

Ethernet adapter Network Connect Adapter:

        Media State . . . . . . . . . . . : Media disconnected
        Description . . . . . . . . . . . : Juniper Network Connect Virtual Adap
ter - Deterministic Network Enhancer Miniport
        Physical Address. . . . . . . . . : 00-FF-A8-1B-AA-8A

Ethernet adapter Wireless Network Connection:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Intel(R) PRO/Wireless 3945ABG Networ
k Connection
        Physical Address. . . . . . . . . : 00-13-02-72-19-8D
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        IP Address. . . . . . . . . . . . : 192.168.168.62
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        IP Address. . . . . . . . . . . . : fe80::213:2ff:fe72:198d%10
        Default Gateway . . . . . . . . . : 192.168.168.168
        DHCP Server . . . . . . . . . . . : 192.168.168.168
        DNS Servers . . . . . . . . . . . : 192.168.0.200
                                            99.22.42.118
                                            fec0:0:0:ffff::1%3
                                            fec0:0:0:ffff::2%3
                                            fec0:0:0:ffff::3%3
        Lease Obtained. . . . . . . . . . : Tuesday, September 01, 2009 11:34:00
 AM
        Lease Expires . . . . . . . . . . : Wednesday, September 02, 2009 11:34:
00 AM

Tunnel adapter Teredo Tunneling Pseudo-Interface:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
        Physical Address. . . . . . . . . : FF-FF-FF-FF-FF-FF-FF-FF
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : fe80::ffff:ffff:fffd%9
        Default Gateway . . . . . . . . . :
        NetBIOS over Tcpip. . . . . . . . : Disabled

Tunnel adapter Automatic Tunneling Pseudo-Interface:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Automatic Tunneling Pseudo-Interface

        Physical Address. . . . . . . . . : C0-A8-A8-3E
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : fe80::5efe:192.168.168.62%2
        Default Gateway . . . . . . . . . :
        DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%3
                                            fec0:0:0:ffff::2%3
                                            fec0:0:0:ffff::3%3
        NetBIOS over Tcpip. . . . . . . . : Disabled

Tunnel adapter Automatic Tunneling Pseudo-Interface:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Automatic Tunneling Pseudo-Interface

        Physical Address. . . . . . . . . : C0-A8-38-01
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : fe80::5efe:192.168.56.1%2
        Default Gateway . . . . . . . . . :
        DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%5
                                            fec0:0:0:ffff::2%5
                                            fec0:0:0:ffff::3%5
        NetBIOS over Tcpip. . . . . . . . : Disabled

C:\Documents and Settings\timo>

And Here's the ipconfig/all for the guest

Code: Select all

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\TO>ipconfig/all

Windows IP Configuration

        Host Name . . . . . . . . . . . . : vbox
        Primary Dns Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Hybrid
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Adapter1:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Desktop Adapter

        Physical Address. . . . . . . . . : 08-00-27-14-82-A7
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        IP Address. . . . . . . . . . . . : 192.168.168.110
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.168.168
        DHCP Server . . . . . . . . . . . : 192.168.168.168
        DNS Servers . . . . . . . . . . . : 192.168.0.200
                                            99.22.42.118
        Lease Obtained. . . . . . . . . . : Tuesday, September 01, 2009 11:44:44
 AM
        Lease Expires . . . . . . . . . . : Wednesday, September 02, 2009 11:44:
44 AM

Ethernet adapter Adapter2:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Desktop Adapter

        Physical Address. . . . . . . . . : 08-00-27-E5-6F-05
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        Autoconfiguration IP Address. . . : 169.254.207.156
        Subnet Mask . . . . . . . . . . . : 255.255.0.0
        Default Gateway . . . . . . . . . :

Ethernet adapter Bluetooth Network Connection:

        Media State . . . . . . . . . . . : Media disconnected
        Description . . . . . . . . . . . : Bluetooth Device (Personal Area Netw
ork) #2
        Physical Address. . . . . . . . . : 00-16-41-5C-E9-37

C:\Documents and Settings\TO>
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Adapter1 Wireless and Adapter2 LAN

Post by Sasquatch »

Looks OK to me. Your wireless is connected, the wireless bridge in the Guest is working. Now if you would switch from wireless to wired, disconnecting from the wireless network of course, will switch the configuration inside the Guest to the other interface as it should.

Btw, edit your post so the command prompt output is in code blocks. I did it with your previous post, hoping you would see it and do it yourself next time.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
prs1025
Posts: 27
Joined: 28. Aug 2009, 19:45
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: MS WindowsXP
Location: Cleveland

Re: Adapter1 Wireless and Adapter2 LAN

Post by prs1025 »

I thought it just came in that way. Sorry. Obviously I'm pretty new to this.
So from what you're saying, everything looks fine and it should work?
Maybe I need to look into another solution. I wanted to use VirtualBox to run a variety of different software so that my main PC won't get bogged down or have any unexpected conflicts. This is my main tool for work so I'm trying to keep it in good working order. Thanks for all of the help
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Adapter1 Wireless and Adapter2 LAN

Post by vbox4me2 »

prs1025 wrote:When I disable to wireless on the Host I lose the connection on the Guest.
Because the default gateway is tied to the wireless bridge, like I said traffic has nowhere to go. Either add another gateway (route add) with a higher metric, or maybe disable/enable the Guest LAN connections so the gateway gets adjusted.
Post Reply