LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Blogs > neonsignal
User Name
Password

Notices

Rate this Entry

manually setting up a bridge tap into a network

Posted 05-07-2011 at 05:01 AM by neonsignal

The following stanzas are for /etc/network/interfaces. They set up a bridge tap into the network (which I originally used for virtual machines, though most of the VM managers set this up automatically now).

First, we create a bridge:
Code:
iface br0 inet static
   address 192.168.1.2
   netmask 255.255.255.0
   gateway 192.168.1.1
   bridge_ports eth0 tap0
The old interface is changed to manual:
Code:
iface eth0 inet manual
The we use tunctl for the tap:
Code:
iface tap0 inet static
   pre-up tunctl -u user -t tap0
   post-down tunctl -d tap0
   address 192.168.2.1
   netmask 255.255.255.0
Then the auto is changed to ensure that the tap is created before the bridge:
Code:
auto tap0 br0
Posted in Uncategorized
Views 546 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 12:08 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration