Unable to setup a Bridged Network - w7 host ubuntu guest

Discussions related to using VirtualBox on Windows hosts.
Post Reply
racho213
Posts: 9
Joined: 17. Nov 2012, 15:59

Unable to setup a Bridged Network - w7 host ubuntu guest

Post by racho213 »

Host: Windows 7
Guest: Ubuntu 12.04 LTS



Guys I am unable to setup a bridged network, I have not changed the default adapter settings,

It would be really appreciated if someone could look into this matter, and help me find the problem

I have attached the Host and guest network settings please have a look,



Host Network Settings
Host Network Settings
hostNetworkSettings.jpg (69.13 KiB) Viewed 1995 times
Guest Network Settings
Guest Network Settings
GuestNetworkSettings.jpg (87.65 KiB) Viewed 1995 times



also this is what i get when i ifconfig:


dipen@dipen-v:~$ ifconfig
eth3 Link encap:Ethernet HWaddr 08:00:27:d7:d8:5d
inet addr:192.168.2.6 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fed7:d85d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13310 errors:0 dropped:4 overruns:0 frame:0
TX packets:188 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1105375 (1.1 MB) TX bytes:27452 (27.4 KB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:50 errors:0 dropped:0 overruns:0 frame:0
TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2934 (2.9 KB) TX bytes:2934 (2.9 KB)

dipen@dipen-v:~$



whenever i try to ping it says unknown host
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Unable to setup a Bridged Network - w7 host ubuntu guest

Post by Perryg »

Do you have a router in your LAN?
Also the ifconfig shows eth3 which usually indicates several failed attempts and MAC changes.
To fix that and return to eth0 edit the /etc/udev/rules.d/70-persistent-net.rules or you can delete the rules and Linux will configure it on the next boot
racho213
Posts: 9
Joined: 17. Nov 2012, 15:59

Re: Unable to setup a Bridged Network - w7 host ubuntu guest

Post by racho213 »

hey perry, really appreciate all your help,

i deleted all the rules and also got the connection to eth0, but I am still unable to access the internet, what can be the reason?

and yes i don't have a router (I have a direct wireline broadband connection)


dipen@dipen-v:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:7f:24:e8
inet addr:192.168.0.128 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe7f:24e8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20789 errors:0 dropped:8 overruns:0 frame:0
TX packets:164 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1639752 (1.6 MB) TX bytes:24332 (24.3 KB)



lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:49 errors:0 dropped:0 overruns:0 frame:0
TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2970 (2.9 KB) TX bytes:2970 (2.9 KB)


dipen@dipen-v:~$
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Unable to setup a Bridged Network - w7 host ubuntu guest

Post by Perryg »

You need to determine where it is failing.
Can you ping the gateway (the router address) from the guest?
Is it a DNS issue?
Ping yahoo.com & 98.139.183.24 and see if either replies.

What about the host firewall? Has it been set to allow this, and some Virus software could cause this.
racho213
Posts: 9
Joined: 17. Nov 2012, 15:59

Re: Unable to setup a Bridged Network - w7 host ubuntu guest

Post by racho213 »

Here we are:


when i try to ping yahoo i get the same result: Unknown host


dipen@dipen-v:~$ ping 98.139.183.24
PING 98.139.183.24 (98.139.183.24) 56(84) bytes of data.
From 192.168.1.1 icmp_seq=1 Destination Net Unreachable
From 192.168.1.1 icmp_seq=2 Destination Net Unreachable
From 192.168.1.1 icmp_seq=3 Destination Net Unreachable



This is my Host IP address:

MOD Edit: Removed public address information for your security



dipen@dipen-v:~$ ping 192.168.0.115
PING 192.168.0.115 (192.168.0.115) 56(84) bytes of data.
From 192.168.1.1 icmp_seq=1 Destination Net Unreachable
From 192.168.1.1 icmp_seq=1 Destination Net Unreachable




dipen@dipen-v:~$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_req=1 ttl=64 time=3.26 ms
64 bytes from 192.168.1.1: icmp_req=2 ttl=64 time=1.26 ms





here is the port summary:


root@dipen-v:/home/dipen# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 740/dnsmasq
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 487/cupsd
udp 0 0 0.0.0.0:45415 0.0.0.0:* 740/dnsmasq
udp 0 0 0.0.0.0:38260 0.0.0.0:* 740/dnsmasq
udp 0 0 0.0.0.0:14288 0.0.0.0:* 740/dnsmasq
udp 0 0 127.0.0.1:53 0.0.0.0:* 740/dnsmasq
udp 0 0 0.0.0.0:68 0.0.0.0:* 696/dhclient
udp 0 0 0.0.0.0:49850 0.0.0.0:* 472/avahi-daemon: r
udp 0 0 0.0.0.0:44264 0.0.0.0:* 740/dnsmasq
udp 0 0 0.0.0.0:5353 0.0.0.0:* 472/avahi-daemon: r
udp6 0 0 :::53020 :::* 472/avahi-daemon: r
udp6 0 0 :::5353 :::* 472/avahi-daemon: r
root@dipen-v:/home/dipen#





with this I believe the default ubuntu firewall is disabled:

root@dipen-v:/home/dipen# sudo ufw status
Status: inactive
root@dipen-v:/home/dipen#


dns
dns
dns.jpg (47.09 KiB) Viewed 1984 times

I dont have a router at my place, also I dont know how to check the DNS settings,
does this appear as a problem from the host side??
racho213
Posts: 9
Joined: 17. Nov 2012, 15:59

Re: Unable to setup a Bridged Network - w7 host ubuntu guest

Post by racho213 »

sorry just forgot,
here are the host firewall settings i dont know if this can help??


host firewall.png
host firewall.png (79.44 KiB) Viewed 1984 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Unable to setup a Bridged Network - w7 host ubuntu guest

Post by Perryg »

So no router. Where is the gateway address coming from then.

Bridged networking will require some kind of routing.

Have you tried NAT?
racho213
Posts: 9
Joined: 17. Nov 2012, 15:59

Re: Unable to setup a Bridged Network - w7 host ubuntu guest

Post by racho213 »

NAT is working perfectly well,

The problem is with Bridged network,

how to check the gateway address - you are talking about ,
also did you find any problems with the Host firewall settings ???
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Unable to setup a Bridged Network - w7 host ubuntu guest

Post by Perryg »

One thing at a time. If you do not have a router to handle the different addresses Bridged is not going to work.
What is it you are trying to achieve?
racho213
Posts: 9
Joined: 17. Nov 2012, 15:59

Re: Unable to setup a Bridged Network - w7 host ubuntu guest

Post by racho213 »

I have to deploy openstack on the ubuntu VM,
upto my knowledge openstack requires Linux bridged connections, and does not work with NAT network connection.

once I am able to access the internet through the bridged network on the guest VM, that network in-turn will be divided in all the VMs created using openstack.

Please suggest me as to what i should do.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Unable to setup a Bridged Network - w7 host ubuntu guest

Post by Perryg »

The best approach is to buy a cheap router. You might be able to use software routing, but this is now outside the scope of this forum since you would have the exact same issue on a normal LAN (on metal).
racho213
Posts: 9
Joined: 17. Nov 2012, 15:59

Re: Unable to setup a Bridged Network - w7 host ubuntu guest

Post by racho213 »

Alright thankyou very much for all your help :)
Post Reply