MJL85 / natlas

natlas - Network Discovery and Auto-Diagramming
GNU General Public License v2.0
511 stars 110 forks source link

feature request: change behavior for "get-hosts" in discovery mode #59

Open cyberbix opened 4 years ago

cyberbix commented 4 years ago

Using the get-hosts module in discovery mode, using -r "ip" of a router or firewall (likely the default gateway) that does know anything about cdp or lldp neighbors is less or more useless. Discovery stops after 1 node. This is by design.

Of course -r could start at the first switch ip in the tree and ignore the router/firewall ip, but then using the arp discovery on these switches does not bring much useful information either. This is by design also, since the switch does not necessarily talk to devices, especially in VLANs where a switch does not have a management IP. Moreover -n has to be used on all switches that one must know from discovery mode.

Wouldn´t it be nice to have the behavior of the get-hosts single node module (using -n "ip" together with -r "ip" ) in the get-hosts module working in discovery mode by adding something like an "arp helper" ?

Example:

natlas-cli get-hosts -r "first switch ip in tree" --arp-helper "firewall/router ip" -c file -d depth