all ASNs peer to Vultr

From nat, 5 Years ago, written in Bash, viewed 397 times.
URL https://code.nat.moe/view/26179263 Embed
Download Paste or View Raw
  1. # AS_PATH to other Vultr consumer w/ BGP will be [64515 64515 X]
  2. #
  3. # So, this will list all other customer's ASN (You need BGP full table from
  4. # Vultr, of course)
  5.  
  6. priv_route='show route where bgp_path ~ [=64515 64515 *=]'
  7. { sudo birdc6 "$priv_route" && sudo birdc "$priv_route" } | grep -vE '^BIRD' | cut -d'[' -f3 | tr -d 'ASi]' | sort | uniq

Reply to "all ASNs peer to Vultr"

Here you can reply to the paste above

captcha