Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-12-2008, 11:36 AM   #1
LQ Newbie
Registered: May 2008
Location: India,Kerala
Distribution: Slackware 12.1
Posts: 10
Blog Entries: 1

Rep: Reputation: 0
Configuring TUN/TAP for a virtual machine

So here is a scenario i want to use an interface which would get its address through dhcp ..
and another interface that will be used by the local machine ..

Here it goes i plan to use ipcop firewall on a VM ..(qemu) those who are familiar with ipcop .. i wana tcreate a green+red interface , where red would get its address through dhcp , its through the green
that i would be connecting to internet ..

For those unfamiliar consider it this way a virtual machine wants an address from dhcp .. what should be done to do so and next thing the host is to be connected to VM through a virtual lan .. and host also must be able to connect to net ..

For this purpose some hints and tools are tun/tap and bridging associated tool brtcl ..
So any ideas ...

PS: VM of choice is qemu .
Old 06-13-2008, 08:07 AM   #2
Registered: Nov 2007
Location: Australia
Distribution: Fedora FC-9 x86-64+i686,CentOS 5.2 i686
Posts: 58

Rep: Reputation: 16
Some options for you:

First, simple but inflexible: use Fedora's Virtual Machine manager, which does all the TAP bridging business transparently for you. Of course, it also runs as root, so it has permission to do stuff. It also straps you into running through that awful Virtual Machine manager. Blech.

Wikibooks has a simple setup for TAP, whereby the bridging is established using scripts that are run as root, but QEMU is run in user mode. I know this one works, but it is a little messy.

This Fedora forum post has some good stuff on it also, however I ran into problems with it - I needed to run everything as root, including QEMU. Blech. But the information there is good.

The #qemu wiki has a few links for more information about bridged networking too.

Finally, there was a really good post about this on the QEMU forum a little while ago, but the forum has been down for about a week now. Maybe you'll be lucky and it will come up again soon.
Old 06-14-2008, 08:37 AM   #3
LQ Newbie
Registered: May 2008
Location: India,Kerala
Distribution: Slackware 12.1
Posts: 10
Blog Entries: 1

Original Poster
Rep: Reputation: 0
thank u for ur 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
tun tap query karan84 Linux - Networking 1 03-26-2007 12:29 PM
tun tap doubt karan84 Linux - Networking 2 01-10-2007 02:43 AM
Tun/Tap issue minasafwat Linux - Kernel 0 11-14-2006 02:11 AM
Tun/Tap getting started? blavo Linux - Newbie 0 02-14-2006 11:29 AM
TUN TAP for non-Redhat Machine Echo Kilo Linux - Networking 3 12-19-2004 07:16 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:25 PM.

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