Difference between revisions of "bridge-utils"
From Noah.org
Jump to navigationJump to searchm (Created page with 'Category:Engineering Category:Networking When creating a bridge interface, the new bridge interface becomes the primary interface that you talk to. It assumes control of…') |
m |
||
Line 20: | Line 20: | ||
ip route add 10.10.10.0/24 dev br0 | ip route add 10.10.10.0/24 dev br0 | ||
ip route add default via 10.10.10.1 | ip route add default via 10.10.10.1 | ||
+ | </pre> | ||
+ | |||
+ | == /etc/network/interfaces == | ||
+ | |||
+ | <pre> | ||
+ | auto br0 | ||
+ | iface br0 inet static | ||
+ | address 10.10.10.10 | ||
+ | netmask 255.255.255.0 | ||
+ | gateway 10.10.10.1 | ||
+ | bridge_ports eth0 | ||
+ | bridge_hello 1 | ||
</pre> | </pre> |
Revision as of 18:21, 10 September 2012
When creating a bridge interface, the new bridge interface becomes the primary interface that you talk to. It assumes control of whatever your original physical interface was doing. This is dangerous if you are bridging your primary ethernet interface because if you don't setup the bridge correctly you will be locked out of your machine.
Local:
ssh -o Tunnel=ethernet -f -w 0:0 10.10.10.7 true
Remote:
ifconfig tap0 up brctl addbr br0 brctl stp br0 on ifconfig br0 up brctl addif br0 tap0 ip route add 10.10.10.0/24 dev br0 ip route add default via 10.10.10.1
/etc/network/interfaces
auto br0 iface br0 inet static address 10.10.10.10 netmask 255.255.255.0 gateway 10.10.10.1 bridge_ports eth0 bridge_hello 1