Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.
/ neigh2route Public archive

neigh2route is a small tool that listens for neighbor updates and adds corresponding static routes on Linux.

License

Notifications You must be signed in to change notification settings

tomvil/neigh2route

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

neigh2route is a small tool that listens for neighbor updates and adds corresponding static routes on Linux.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •