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:
The old interface is changed to manual:
The we use tunctl for the tap:
Then the auto is changed to ensure that the tap is created before the bridge:
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
Code:
iface eth0 inet manual
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
Code:
auto tap0 br0
Total Comments 0