n2n/doc/Bridging.md
Dylan Yee e01daf4a85
support linux l2 bridge (#1044)
* support linux l2 bridge

* unified timeout name

* typo

* minor code style adaptions

* feature define

* feature define

* feature define

* feature define

* added hint to bridging to help output

* added hint to bridging

* drafted bridging documentation

* added bridging hint

---------

Co-authored-by: Logan oos Even <46396513+Logan007@users.noreply.github.com>
2023-05-04 11:00:38 +08:00

28 lines
803 B
Markdown

# Bridging (Linux)
## General Remarks
`edge`s can be part of network bridges. As such, n2n can connect otherwise un-connected LANs.
## How To Use with `brctl`
... requires `-r`
... general syntax
... one example connecting two remote sites' LANs, including commands
## How it works
... remembers peer info MAC
... ageing
... internal MAC replaced inside usually encrypted packet data (no disclosure then)
... initial learning
## Broadcasts
... note on broadcast domain
## Compile Time Option
The `-r`option at edge does not differentiate between the use cases _routing_ and _bridging_. In case the MAC-learning and MAC-replacing bridging code
interfers with some special routing scenario, removal of the `#define HAVE_BRIDGING_SUPPORT` from `/include/n2n.h` file disables it at compile time.