Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-15-2012, 03:36 AM   #1
LQ Newbie
Registered: Jul 2012
Posts: 4

Rep: Reputation: Disabled
How to create tap0 and br0 in ubuntu 11.10?


I want to create a tap interface tap0 and a bridge br0 in ubuntu 11.10. i want to use this bridge br0 to link eth0 and tap0 for gns3. Also i want these interfaces to be persistent(not lost on reboot). Any suggestions??

Thanks in advance

Last edited by prasanthnms; 07-15-2012 at 03:37 AM.
Old 07-16-2012, 05:38 PM   #2
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 548

Rep: Reputation: 72
1. I use two nics per box. One is the hardware/host NIC, the other my VM bridge/tap interface.

2. Remember to set the hardware interface (eth0/eth$X) to promiscuous on the VM interface.

3. Create a tap interface using tunctl. A very handy feature of tunctl is the ability to set user and group so your VM's can run under lower privileges. In Debian, I find the package with 'apt-cache search tunctl' and it returns the right name.

Create a bridge using brctl. In Debian, I believe the package is called bridge-utils. Setup varies depending on the package you use. The tap interface is one end, the bridge interface is the other. then the BRIDGE gets assigned an IP address. I set it all in /etc/network/interfaces.

Your ifconfig-fu will be much better after setting a couple of VM's up!

Last edited by mpapet; 07-16-2012 at 05:40 PM.


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
Bridge br0 on FC12 , No Network mickeyboa Fedora 3 05-10-2010 07:00 AM
br0 problems!!!! alitabas Linux - Networking 1 01-10-2010 01:57 PM
ttylinux & tap0 jimerickso Linux - Networking 1 06-23-2009 08:27 PM
br0 with ath0 and eth0 not working on ixp vinodl Debian 0 09-16-2006 06:37 AM
Got tap0 instead eth0? samson_bluebird Linux - Networking 0 12-03-2004 04:27 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:11 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
Open Source Consulting | Domain Registration