Page 1 of 1

Networking Question

Posted: 8. Oct 2008, 20:12
by ivanordonez
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

Posted: 8. Oct 2008, 23:17
by Sasquatch
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.

Posted: 9. Oct 2008, 18:59
by ivanordonez
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?

Re: Networking Question

Posted: 7. Aug 2009, 20:37
by magustin
I'm curious as to what your NIC speed is on the 2nd interface.

Re:

Posted: 7. Aug 2009, 21:57
by Sasquatch
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?
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.

Re: Networking Question

Posted: 12. Aug 2009, 16:21
by scnicejoe
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