My apology if this has been posted before. I did a search and the result was too many.
My host machine is Solaris 10 with 2 physical network card. I want to use the first NIC nge0 to the host machine and the second NIC nge1 on virtual machines. The host machine is using static IP address at this time, and want to leave it as is. I want my guest OS to use the second NIC, be accessible from outside (Remote Desktop, SSH, etc..) using static IP address. What is the best way to accomplish this? At this point, I am using NAT on both guest OS (Win XP and Vista) for basic internet use only. Do I need to enable the second NIC and assign an IP? Do I need to make some changes on the host IP configuration? Please advise and thanks for any insight you can provide.
hostname ~ # dladm show-dev
nge0 link: up speed: 1000 Mbps duplex: full
nge1 link: unknown speed: 0 Mbps duplex: unknown
hostname ~ # dladm show-link
nge0 type: non-vlan mtu: 1500 device: nge0
nge1 type: non-vlan mtu: 1500 device: nge1
Networking Question
-
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
Depending on to the extend of the accessibility of the Guests you want, you can use NAT with Port Forwarding. If you would go as far as sharing files over the network, you need to set up Host Interface Networking. You can use either NIC, as with a bridge the Host will stay accessible if there is an IP on the bridge.
I don't have any experience with Solaris or it's network setup, so you have to figure that out yourself. The basic I described above is the same for each OS though.
See the manual for some additional information.
I don't have any experience with Solaris or it's network setup, so you have to figure that out yourself. The basic I described above is the same for each OS though.
See the manual for some additional information.
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.
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.
-
ivanordonez
- Posts: 5
- Joined: 8. Oct 2008, 19:51
I figure out how to get it to work. I can now use the second NIC on guest OS and use static IPs. My issue now is about my firewall. If the "pfil" and "ipfilter" is enable, the network connection on the guest OS is down, and as soon as I disable those two services above, and reboot the guest, network connection is up. What changes do I need to do on the firewall. DO i need to make new rules for the second nic and tell the firewall to allow it? Any hint?
-
magustin
- Posts: 5
- Joined: 7. Aug 2009, 20:20
- Primary OS: Solaris
- VBox Version: OSE other
- Guest OSses: Windows XP SP2
Re: Networking Question
I'm curious as to what your NIC speed is on the 2nd interface.
-
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:
If you set a firewall, you always have to check which rules are needed on which NIC. Setting global settings can interfere with the needs on one specific NIC. E.g. closing port 80 in global config, while the server has two NICs and hosts an intranet site, it would not be accessible due to the global rule.ivanordonez wrote:I figure out how to get it to work. I can now use the second NIC on guest OS and use static IPs. My issue now is about my firewall. If the "pfil" and "ipfilter" is enable, the network connection on the guest OS is down, and as soon as I disable those two services above, and reboot the guest, network connection is up. What changes do I need to do on the firewall. DO i need to make new rules for the second nic and tell the firewall to allow it? Any hint?
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.
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.
-
scnicejoe
- Posts: 1
- Joined: 12. Aug 2009, 15:58
- Primary OS: Solaris
- VBox Version: OSE Debian
- Guest OSses: Windows 2k3
Re: Networking Question
I wonder if you can use a single physical NIC and create a virtual interface as below (with bge0 as the physical interface):
#ifconfig bge0:1 plumb 192.168.23.3 netmask 255.255.255.0 broadcast + up && ifconfig -a
then get on VirtualBox and go to File>preferences>network>host-only interface . I did it and got an error saying that
Result Code:
NS_ERROR_FAILURE (0x00004005)
Component:
Host
Interface:
IHost {a13b5556-5c0b-4f80-9df6-6f804f3336a1}
Callee RC:
NS_ERROR_NOT_IMPLEMENTED (0x80004001)
In the Machines>Settings>network> i use Bridged Network with Bge0 in Adapter1 tab.
I installed VirtualBox 3.0.0 on Solaris 10 5/09 U7.
Thank you so much for your inputs and helps in advance.
Joe
Thank
#ifconfig bge0:1 plumb 192.168.23.3 netmask 255.255.255.0 broadcast + up && ifconfig -a
then get on VirtualBox and go to File>preferences>network>host-only interface . I did it and got an error saying that
Result Code:
NS_ERROR_FAILURE (0x00004005)
Component:
Host
Interface:
IHost {a13b5556-5c0b-4f80-9df6-6f804f3336a1}
Callee RC:
NS_ERROR_NOT_IMPLEMENTED (0x80004001)
In the Machines>Settings>network> i use Bridged Network with Bge0 in Adapter1 tab.
I installed VirtualBox 3.0.0 on Solaris 10 5/09 U7.
Thank you so much for your inputs and helps in advance.
Joe
Thank