Changes between Initial Version and Version 1 of 311-what-are-the-fundamental-differences-between-bridging-and-routing-in-terms-of-configuration

01/30/14 15:25:47 (10 years ago)
Samuli Seppänen



  • 311-what-are-the-fundamental-differences-between-bridging-and-routing-in-terms-of-configuration

    v1 v1  
     1= What are the fundamental differences between bridging and routing in terms of configuration? =
     5<p>When a client connects via bridging to a remote network, it is assigned an IP address that is part of the remote physical ethernet subnet and is then able to interact with other machines on the remote subnet as if it were connected locally. Bridging setups require a special OS-specific tool to bridge a physical ethernet adapter with a virtual TAP style device. On Linux, for example, <strong>brctl</strong> is this tool. On Windows XP or higher, select your TAP-Win32 adapter and your ethernet adapter in <strong>Control Panel -> Network Connections</strong>, then right click and select <strong>Bridge Connections</strong>.</p>
     6<p>When a client connects via routing, it uses its own separate subnet, and routes are set up on both the client machine and remote gateway so that data packets will seamlessly traverse the VPN. The "client" is not necessarily a single machine. It could be a subnet of several machines.</p>
     7<p>Bridging and routing are functionally very similar, with the major difference being that a routed VPN will not pass IP broadcasts while a bridged VPN will.</p>
     8<p>When you are bridging, you must always use <strong>--dev tap</strong> on both ends of the connection. If you are routing you can use either <strong>--dev tap</strong> or <strong>--dev tun</strong>, but you must use the same on both ends of the connection. <strong>--dev tun</strong> tends to be slightly more efficient for the routing case.</p>
     11[wiki:FAQ Return to FAQ]