LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-25-2008, 01:41 PM   #1
ddales
LQ Newbie
 
Registered: Jan 2006
Posts: 23

Rep: Reputation: 15
Virtualbox networking madness!


I installed Virtualbox OE 1.5.4 on my Ubuntu 7.10 host. I then setup, or tried to setup, several static tap devices. It's working Ok except for two weird little problems.

1. I can't ping my host from my guest
2. My host eth0, which is set for static IP, doesn't get it's IP assigned on boot without a little help.

I've been reading Virtualbox Networking posts from many different sources for a couple of hours now and just can't find a reasonable solution. My br0 and tap devices pull the IP addresses that I assigned them but my eth0 only pulls an IPV6 address without the IPV4 address. I've put in a workaround to bring up my eth0 with ifconfig in my /etc/rc.local but that's ugly for sure.

My VBox Guest can ping all the other IPs in my internal network with no problem. The Guest also has access to the Internet over my router with no problem. The Guest just can't seem to see my Host which is getting very annoying.

Any help would be much appreciated!

/etc/network/interfaces
auto lo eth0 br0 tap0 tap1 tap2
iface lo inet loopback

iface tap0 inet static
address 192.168.178.18
netmask 255.255.255.0
gateway 192.168.178.1
tunctl_user ddales

iface tap1 inet static
address 192.168.178.17
netmask 255.255.255.0
gateway 192.168.178.1
tunctl_user ddales

iface tap2 inet static
address 192.168.178.16
netmask 255.255.255.0
gateway 192.168.178.1
tunctl_user ddales

iface br0 inet static
address 192.168.178.100
netmask 255.255.255.0
gateway 192.168.178.1
bridge_ports eth0 tap0

iface eth0 inet static
eth0 promisc
address 192.168.178.5
netmask 255.255.255.0
gateway 192.168.178.1

/etc/rc.local # so my Host eth0 gets it's IP
ifconfig eth0 192.168.178.5 255.255.255.0 up
exit 0

ifconfig -a
br0 Link encap:Ethernet HWaddr 00:12:3F:77:8F:8A
inet addr:192.168.178.100 Bcast:192.168.178.255 Mask:255.255.255.0
inet6 addr: fe80::212:3fff:fe77:8f8a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2955 errors:0 dropped:0 overruns:0 frame:0
TX packets:2241 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1754295 (1.6 MB) TX bytes:387133 (378.0 KB)

eth0 Link encap:Ethernet HWaddr 00:12:3F:77:8F:8A
inet addr:192.168.178.5 Bcast:192.168.178.255 Mask:255.255.255.0
inet6 addr: fe80::212:3fff:fe77:8f8a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:466225 errors:0 dropped:0 overruns:0 frame:0
TX packets:286539 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:625664279 (596.6 MB) TX bytes:28624509 (27.2 MB)
Base address:0xcce0 Memory:f9ee0000-f9f00000

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:423 errors:0 dropped:0 overruns:0 frame:0
TX packets:423 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:140457 (137.1 KB) TX bytes:140457 (137.1 KB)

tap0 Link encap:Ethernet HWaddr 00:FF:C5:25:6C:1E
inet addr:192.168.178.18 Bcast:192.168.178.255 Mask:255.255.255.0
inet6 addr: fe80::2ff:c5ff:fe25:6c1e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:82863 errors:0 dropped:0 overruns:0 frame:0
TX packets:145245 errors:0 dropped:373 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:5998681 (5.7 MB) TX bytes:206818953 (197.2 MB)

tap1 Link encap:Ethernet HWaddr 00:FF:F2:6F:09:94
inet addr:192.168.178.17 Bcast:192.168.178.255 Mask:255.255.255.0
inet6 addr: fe80::2ff:f2ff:fe6f:994/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:73 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

tap2 Link encap:Ethernet HWaddr 00:FF:C2:63:9A:26
inet addr:192.168.178.16 Bcast:192.168.178.255 Mask:255.255.255.0
inet6 addr: fe80::2ff:c2ff:fe63:9a26/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:74 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
 
Old 01-28-2008, 10:49 PM   #2
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,438

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Quote:
I can't ping my host from my guest
If you have a firewall running on your host, then the host firewall may be dropping the ping packets. Check your logs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu Host Virtualbox guest Networking weirdness ddales Linux - Networking 0 01-20-2008 02:24 PM
Virtualbox Networking problem 00yahoo Ubuntu 1 07-13-2007 07:54 AM
Webcam madness!! donjcook Linux - Hardware 3 11-13-2005 02:27 PM
Modem madness jay2479 Linux - Hardware 1 09-05-2003 02:01 AM
networking madness gone bizzare funny penguin Linux - Networking 1 05-09-2003 12:29 AM


All times are GMT -5. The time now is 01:34 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration