3.0.2. Bridged networking. Can't get it to work.
Posted: 27. Jul 2009, 20:38
Hi,
since a few days I'm trying to get my Centos guest to work but no luck so far. My network skills are pretty low and I guess I'm doing some simple things completely wrong. Therefor I'd be very thankful for any input.
Host: Windows XP 32 bit
Guest: Centos 5.3 32 bit
Virtualbox 3.0.2
I do not have a router.
The guest is a developer box for php/apache/mysql. I want to access it from the Windows host only. No access from the outside world needed.
For testing purpose I installed the guest via NAT and it worked. But NAT comes with some limitations and I found that "bridged networking" is what I need - but can't get "bridged networking" to work.
A quote from UserManual.pdf
---------------------------
"To enable bridged networking, all you need to do is to open the Settings dialog of a virtual machine, go to the 'Network' page and select 'Bridged network' in the drop down list for the 'Attached to' field. Finally, select desired host interface from the list at the bottom of the page, which contains the physical network interfaces of your systems."
Big question: Do I have to go to Windows->ControlPanel->NetworkConnections first and manualy bridge the interfaces or is this bridging automatically done by VirtualBox?
According to the docs I simply selected my physical interface "Realtec RTL8029(AS)" and clicked [OK] and then started the guest. I did no manual bridging in Windows->ControlPanel, just to make this clear.
The Centos guest starts without any error. But now I'm lost.
Am I right that DHCP will not work for me? The VirtualBox docs says that DHCP will work for NAT only, if I'm not mistaken. I do not have a router or DHCP server either. So I guess I have to use a static IP in the guest, right?
I know where to set a static IP in Centos guest but I don't know what IPADDR, BROADCAST, NETWORK, NETMASK values to enter. When I do a 'ipconfig' in my Windows host I get:
-----------------------------------------------------
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Autoconfiguration IP Address. . . : 169.254.106.137
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
Ethernet adapter VirtualBox Host-Only Network:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.56.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
-----------------------------------------------------
Being in the host I'd like to ping the guest.
Being in the guest I'd like to ping the host.
Please, could anyone tell me what IP my Host has or how to find it? And what IP I have to use in the Guest? I tried many different IPs I could think of but no luck.
My Windows XP host has the default Windows firewall enabled. Do I need to disable this firewall in order to ping the guest?
Again, I just want a Host<->Guest connection. No connection to the internet nedded. Thanks again for any help or information you can offer.
since a few days I'm trying to get my Centos guest to work but no luck so far. My network skills are pretty low and I guess I'm doing some simple things completely wrong. Therefor I'd be very thankful for any input.
Host: Windows XP 32 bit
Guest: Centos 5.3 32 bit
Virtualbox 3.0.2
I do not have a router.
The guest is a developer box for php/apache/mysql. I want to access it from the Windows host only. No access from the outside world needed.
For testing purpose I installed the guest via NAT and it worked. But NAT comes with some limitations and I found that "bridged networking" is what I need - but can't get "bridged networking" to work.
A quote from UserManual.pdf
---------------------------
"To enable bridged networking, all you need to do is to open the Settings dialog of a virtual machine, go to the 'Network' page and select 'Bridged network' in the drop down list for the 'Attached to' field. Finally, select desired host interface from the list at the bottom of the page, which contains the physical network interfaces of your systems."
Big question: Do I have to go to Windows->ControlPanel->NetworkConnections first and manualy bridge the interfaces or is this bridging automatically done by VirtualBox?
According to the docs I simply selected my physical interface "Realtec RTL8029(AS)" and clicked [OK] and then started the guest. I did no manual bridging in Windows->ControlPanel, just to make this clear.
The Centos guest starts without any error. But now I'm lost.
Am I right that DHCP will not work for me? The VirtualBox docs says that DHCP will work for NAT only, if I'm not mistaken. I do not have a router or DHCP server either. So I guess I have to use a static IP in the guest, right?
I know where to set a static IP in Centos guest but I don't know what IPADDR, BROADCAST, NETWORK, NETMASK values to enter. When I do a 'ipconfig' in my Windows host I get:
-----------------------------------------------------
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Autoconfiguration IP Address. . . : 169.254.106.137
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
Ethernet adapter VirtualBox Host-Only Network:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.56.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
-----------------------------------------------------
Being in the host I'd like to ping the guest.
Being in the guest I'd like to ping the host.
Please, could anyone tell me what IP my Host has or how to find it? And what IP I have to use in the Guest? I tried many different IPs I could think of but no luck.
My Windows XP host has the default Windows firewall enabled. Do I need to disable this firewall in order to ping the guest?
Again, I just want a Host<->Guest connection. No connection to the internet nedded. Thanks again for any help or information you can offer.