in order to route packets. With these mode tinc can be used to act as a bridge
between two or more Ethernet segments.
+Bridging allows all nodes in the VPN to share the same subnet. However, if
+this is the only reason for bridging, and you do not need to tunnel broadcast
+or non-IP packets, you can alternatively use [[proxy ARP|examples/proxy-arp]]
+instead of bridging.
+
### Overview
The network setup is as follows:
### Configuration of tinc
-Note that switch' and hub' mode do not utilize the Subnet variable in the host
+Note that switch and hub mode do not utilize the Subnet variable in the host
files. Instead, any packet received by the bridge interface will be passed to
the TUN/TAP device for processing. If your tinc instance is running in hub
mode, all packets are forwarded to the remote tinc instance. In switch mode,
> host# cat /etc/tinc/vpn/tinc.conf
> Name = segment1
-> Device = /dev/tun
> Mode = switch
> ConnectTo = segment2
>
> host# cat /etc/tinc/vpn/tinc-up
> #!/bin/sh
>
-> ifconfig vpn 0.0.0.0
-> brctl addif bridge vpn
-> ifconfig vpn up
+> ifconfig $INTERFACE 0.0.0.0
+> brctl addif bridge $INTERFACE
+> ifconfig $INTERFACE up
>
> host# ls /etc/tinc/vpn/hosts
> segment1 segment2 ...