LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


Hi,

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 04:37 AM.
 
Old 07-16-2012, 06:38 PM   #2
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 525

Rep: Reputation: 60
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 06:40 PM.
 
  


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


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration