sidux.com
Menu

News

Give back
Last 3 Contributions
18-08-2008 15.00
17-08-2008 5.00
17-08-2008 5.00

Donate


Sponsor
hetzner.de

Languages
Preferred language:



Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
askani
Post subject:   PostPosted: Mar 17, 2008 - 02:10 PM



Joined: Dec 04, 2006
Posts: 71
Location: Cary, NC USA
Status: Offline
muchan,
This is my current file

# The loopback network interface
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp

Do I just cut and past your example in?
 
 View user's profile Send private message  
Reply with quote Back to top
muchan
Post subject:   PostPosted: Mar 17, 2008 - 06:59 PM



Joined: Aug 24, 2007
Posts: 389
Location: Ljubljana
Status: Offline
first backup...
# cp /etc/network/interfaces /etc/network/interfaces.orig
Smile

(make sure that the packages are installed before it, otherwise you'll get error at restarting network)

two lines of lo remains there.

from iface tth0, (lastline) on
put my example (without lo) for dhcp, and ajust to your username.
If it doesn't work, rename it (mv), and copy the backup file back to interfaces.
 
 View user's profile Send private message  
Reply with quote Back to top
askani
Post subject:   PostPosted: Mar 17, 2008 - 09:04 PM



Joined: Dec 04, 2006
Posts: 71
Location: Cary, NC USA
Status: Offline
After a couple of attempts, I gave up... Maybe I'm dense Wink I still say that VMWare bridged is much easier to use, unless I know
the parameters I'm trying to feed interfaces. I was hoping that since I posted my current interfaces file, someone would give me
the file (with the bridged info) back. Am I lazy? Maybe. But I just want bridge networking. I find menu options easier than editing
interfaces;)
Still open for suggestions.
 
 View user's profile Send private message  
Reply with quote Back to top
muchan
Post subject:   PostPosted: Mar 17, 2008 - 11:13 PM



Joined: Aug 24, 2007
Posts: 389
Location: Ljubljana
Status: Offline
When things doesn't work as you wished, you need to tell exactly what you did,
and how it didn't work. Maybe I forgot something. maybe one thing is still missing.

I'll soon install sidux on another PC and set virtualbox with bridge, so, I'll try step by step
manner, and tell you if something was missing in my early post.
 
 View user's profile Send private message  
Reply with quote Back to top
askani
Post subject:   PostPosted: Mar 18, 2008 - 01:37 AM



Joined: Dec 04, 2006
Posts: 71
Location: Cary, NC USA
Status: Offline
I'll give another try when I'm back at the office...
 
 View user's profile Send private message  
Reply with quote Back to top
askani
Post subject:   PostPosted: Mar 18, 2008 - 03:58 PM



Joined: Dec 04, 2006
Posts: 71
Location: Cary, NC USA
Status: Offline
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp

auto tap1
iface tap1 inet manual
#<--- change here to username who runs vbox (without < >!)
tunctl_user <userid>
auto br0
iface br0 inet dhcp
post-up chmod 0666 /dev/net/tun
bridge-ports eth0 tap1
bridge-ageing 7200 #<-- timeout setting for 2 hours
bridge-fd 0


Seems to work...
Thanks
 
 View user's profile Send private message  
Reply with quote Back to top
muchan
Post subject:   PostPosted: Mar 18, 2008 - 11:40 PM



Joined: Aug 24, 2007
Posts: 389
Location: Ljubljana
Status: Offline
auto lo eth0 <--- declares two in one line? I didn't know this syntax

iface eth0 inet dhcp <-- i think it isn't good.... you make eth0 a bridge-port from br0 for host. so br0 is dhcp client, not eth0 (but if it works, then ok...)
 
 View user's profile Send private message  
Reply with quote Back to top
askani
Post subject:   PostPosted: Mar 19, 2008 - 01:48 AM



Joined: Dec 04, 2006
Posts: 71
Location: Cary, NC USA
Status: Offline
# The loopback network interface
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp

Was what was already there.
 
 View user's profile Send private message  
Reply with quote Back to top
muchan
Post subject:   PostPosted: Mar 19, 2008 - 12:40 PM



Joined: Aug 24, 2007
Posts: 389
Location: Ljubljana
Status: Offline
hmmmm, you add br0 as the dhcp client instead of eth0 without bridge.
eth0 get internal address, not exposed to outside world, and
vbox guest OS is connected to that br0 via tap.
That is my understanding about bridge. (Correct me if I'm wrong!)

So, when you configuer to use bridge, IMHO, the eth0 should not be dhcp client.
 
 View user's profile Send private message  
Reply with quote Back to top
askani
Post subject:   PostPosted: Mar 19, 2008 - 01:56 PM



Joined: Dec 04, 2006
Posts: 71
Location: Cary, NC USA
Status: Offline
Like I said,
# The loopback network interface
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
Was already there (I didn't modify it).
I added your stuff.
...And like I said, VB is still rough around the edges for creating bridges. VMWare is a menu option or a button.
 
 View user's profile Send private message  
Reply with quote Back to top
muchan
Post subject:   PostPosted: Mar 19, 2008 - 11:09 PM



Joined: Aug 24, 2007
Posts: 389
Location: Ljubljana
Status: Offline
It\s cpmpletely a miscommunication.

If bridge is there or not is not Vbox problem, but network interfaces problem.
So if it works, it's OK, but if Vbox doesn't work with bridge, it's not vbox's problem, but your config is wrong.

And I'm saying eth0 should not be dhcp client IF you are to use bridge.
It's dhcp client without bridge, but br0 is the dhcp client in my stuff.
(that is, MY stuff is not only br0 setting, but eth0 setting included.)

So, if it works, leave it. but if it doesn't work, it's because you didn't do "my struff" as I said.
In other word,
Change the eth0 line!
that's what I've been saying in these post.
 
 View user's profile Send private message  
Reply with quote Back to top
askani
Post subject:   PostPosted: Mar 20, 2008 - 12:00 AM



Joined: Dec 04, 2006
Posts: 71
Location: Cary, NC USA
Status: Offline
OK, you see what I have... can you modify it (and post it back) as you think it should be an I'll give it a try.
I didn't say VBox was the problem, I said VMWare was much easier to set up bridged.
It's a menu option.
 
 View user's profile Send private message  
Reply with quote Back to top
muchan
Post subject:   PostPosted: Mar 25, 2008 - 11:24 PM



Joined: Aug 24, 2007
Posts: 389
Location: Ljubljana
Status: Offline
First two corrections, I wrote some messages ago;
Quote:

1) apt-get install uml-utils bridge-util


but the actual name of packages were: uml-utilities bridge-utils
so i wrote both wrong,
--------------------------------------------------------------------------------

I just installed these packages on another pc, so I wirte what I did,

1) as root
Code:

apt-get update
apt-get install uml-utilities  bridge-utils


2) as root
Code:

vim  /etc/network/interfaces


and edited to be:
Code:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

#auto eth0
#iface eth0 inet dhcp

auto eth0
iface eth0 inet manual

auto tap0
iface tap0 inet manual
 tunctl_user  muchan

auto br0
iface br0 inet dhcp
 post-up chmod 0666 /dev/net/tun
 bridge-ports eth0 tap0
 bridge-aging 7200
 bridge-fd    0


3) as root
Code:

/etc/init.d/networking restart


4) start virtualbox-ose
a) chose the guest vm, and click the "Network" in details tab.
b) in the "Adapter 0" tab, check that the "Enable Natwork Adapter" checkbox is checked
c) drop down the "attached to" and chose "Host Interface"
d) in the below, "Host Interface setting" "Interface name" type
Code:

tap0

e) press OK

Then start the guest vm.

additional to check that the bridge is working.
1) in host's console, "ifconfig" and check the IP address of br0
2) in guest's console, "ping <host_br0_IP_address>" and see that you get replies. Ctrl+C to stop
3) in guest's console, "ifconfig" and check the IP address of eth0
4) in host's console, "ping <guest_eth0_IP_address>" and see that you get replies. Ctrl+C to stop

In my home network, the first DHCP and second DHCP address is always same, so
i put both on the host and guest's /etc/hosts and i can call them by name both way.
ssh or sshfs also works so the file system is transparent even without using shared directries.

That's all folks!
 
 View user's profile Send private message  
Reply with quote Back to top
askani
Post subject:   PostPosted: Mar 26, 2008 - 03:28 AM



Joined: Dec 04, 2006
Posts: 71
Location: Cary, NC USA
Status: Offline
Can't wait to give it a try....
Thanks for the info (again)
 
 View user's profile Send private message  
Reply with quote Back to top
shame
Post subject:   PostPosted: Apr 27, 2008 - 02:10 AM



Joined: Dec 04, 2006
Posts: 1469
Location: England
Status: Offline
Although I use virtualbox and generally it works well for me, I still find usb hit and miss, sometimes it works and others it doesn't.

I haven't tried vmware for a while and I can't remember how that went for usb.
Is usb support and shared folders in vmware up to much these days and is it worth switching?
Also, does the latest vmware in debian have the new unity seamless windows mode?

_________________
sidux 32 & 64 | Debian Lenny | Debian Etch | PCLinuxOS | Mandriva Cooker

repository of shame - compiz fusion & beryl repo for sidux/debian | 32-bit | 64-bit
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 1 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
 
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2006-2008 by sidux e.V., 10407 Berlin, Kniprodestr. 104. sidux e.V. is a Berlin, Germany based non-profit foundation. Consult Impressum and Legal Terms for details. sidux is Free Software released under the GNU/GPL license and other compatible licenses.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed by w3you.