Bridged Networking using Static IPs

Discussions related to using VirtualBox on Windows hosts.
stefana
Posts: 9
Joined: 24. Nov 2015, 11:56

Re: Bridged Networking using Static IPs

Post by stefana »

So how do i know what subnetmask and gateway dhcp would choose?
The gateway is the networkrouter i guess? And thats what i did.
So you think the subnetmask can be the problem?
stefana
Posts: 9
Joined: 24. Nov 2015, 11:56

Re: Bridged Networking using Static IPs

Post by stefana »

found the problem-> its a dns lookup problem.
ping to google.com gives unknown host,but ping to the ip address works.
So i have to specify a dns server?
stefana
Posts: 9
Joined: 24. Nov 2015, 11:56

Re: Bridged Networking using Static IPs

Post by stefana »

solved:
So i had to fill in the dns server at the manual ip4 configuration page on my guests network connection.
So its mandatory to fill in a dns server ip on a linux guest?

Another question,on my mac using wifi the dns server ip is the same as my gateway,is that normal?
I am at a public place.

Kind Rg
Stefan
Martin
Volunteer
Posts: 2562
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: Bridged Networking using Static IPs

Post by Martin »

Yes, of course it is mandatory to configure the DNS address when using static IP with bridged networking. Where else should the guest get it?
Also in many (smaller) networks the DNS address is the same as the gateway because there both functions are often integrated in the same device.
stefana
Posts: 9
Joined: 24. Nov 2015, 11:56

Re: Bridged Networking using Static IPs

Post by stefana »

Thanks Martin.
I learned some lessons about virtual machines configuration and networking.
Kind Regards,
Stefan
stefana
Posts: 9
Joined: 24. Nov 2015, 11:56

Re: Bridged Networking using Static IPs

Post by stefana »

Hi,
I cant access the oracle enterprise express manager from my host machine using NAT with port forwarding.
In attachment(...39.png) you can see an image that shows the up and running oracle enterprise express manager on 10.0.2.15:8087/em
As you can see i configured port forwarding from my vboxnet0 192.168.188.1
When i open the url in browser on host it keeps hanging.http://192.168.188.1:8087/em
Any idea why i can't acess the application?
I disabled firewall on guest,so thats not it.

I tried to add an image as attachment but its too big.
So i will subscribe here what i show:
1) the port forwarding configuration: name(OEM),protocol(tcp),host ip(192.168.188.1),host port(8087),guest ip(10.0.2.15),guest port(8087).
2) the url opened on the guest firefox browser that works is http://10.0.2.15:8087/em
3) ifconfig on host gives for vboxnet0 the inet ip 192.168.188.1
4) the firewall on guest is disabled to be sure its not that
5) when i run in the browser on my host http://192.168.188.1:8087/em -> i get the following error after a while:
-> "No data received
-> ERR_EMPTY_RESPONSE Unable to load the webpage because the server sent no data.
stefana
Posts: 9
Joined: 24. Nov 2015, 11:56

Re: Bridged Networking using Static IPs

Post by stefana »

i have a similar rule setup with ssh and that works.
VBoxManage showvminfo "OracleLinux6Update6_1" | grep NIC
shows 2 rules:
NIC 3 Rule(0): name = http, protocol = tcp, host ip = , host port = 8089, guest ip = , guest port = 8087
NIC 3 Rule(1): name = ssh, protocol = tcp, host ip = , host port = 2222, guest ip = , guest port = 22

So when issh -p 2222 root@127.0.0.1 that works

But http://127.0.0.1:8089/em keeps hanging and ends with no data from server

Please can somebody help me out here.
BOOOOM just right now it worked,it was the combination of user privileges and firewall!!!
I added as root some extra rules to allow to firewall instead of disabling the whole firewall and it worked. So i added port and tcp to the firewall and then it worked.
Before i disabled the whole firewall and no work,so i did something wrong i guess.

So never mind, its solved.
Post Reply