LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 964 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 02:46 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration