https://github.com/hostinger/neigh2route
https://github.com/hostinger/neigh2route
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hostinger/neigh2route
- Owner: hostinger
- License: mit
- Created: 2025-06-18T12:31:20.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-09-16T13:26:47.000Z (10 months ago)
- Last Synced: 2025-09-16T13:42:41.759Z (10 months ago)
- Language: Go
- Homepage:
- Size: 78.1 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# neigh2route
**neigh2route** is a small tool that listens for neighbor updates and adds corresponding static routes on Linux.
## 🚀 What It Does
When a new neighbor is detected on an interface (e.g. `vmbr0`), it adds static route to that interface.
This allows you to easily redistribute dynamic neighbors via BGP or other routing protocols.
## 📌 Example
If `ip neigh` shows:
`10.10.10.10 dev vmbr0 lladdr aa:bb:cc:dd:ee:ff REACHABLE`
Then `neigh2route` adds:
`ip route add 10.10.10.10/32 dev vmbr0`
## 💡 Use Cases
- Announce your neighbors via dynamic routing protocols, like BGP.
## Dependencies
libpcap-dev must be installed if you want to use sniffer feature