NFDC-ROUTE(1)

πŸ“¦
version 24.07 Β· 2 versions
, in nixos 26.05

✨ NFDC-ROUTE(1) ✨

okay bestie, buckle up πŸ’… this is the nfdc-route page from the Named Data Networking Forwarding Daemon (NFD) manual, and it's literally all about showing off and rearranging NFD's routes. no cap, it's giving "network admin but make it cute" πŸŽ€


🌸 NAME 🌸

nfdc-route β€” show and manipulate NFD's routes πŸ‘‘ (yes, both. you get to look AND touch.)


πŸ¦‹ SYNOPSIS πŸ¦‹

nfdc route [list [[nexthop] FACEID|FACEURI] [origin ORIGIN]]
nfdc route show [prefix] PREFIX
nfdc route add [prefix] PREFIX [nexthop] FACEID|FACEURI [origin ORIGIN] [cost COST] [no-inherit] [capture] [expires EXPIRATION]
nfdc route remove [prefix] PREFIX [nexthop] FACEID|FACEURI [origin ORIGIN]
nfdc fib [list]

look at all those brackets, she's flexible πŸ’œ


✨ DESCRIPTION ✨

so in NFD, the routing information base (RIB) is basically the main character 😌 β€” it stores static or dynamic routing information that's been registered by applications, operators, and NFD itself. every route in the RIB is out here saying "hey, contents under a name prefix may be available via a nexthop" πŸ‘€. and a route is made of: a name prefix, a nexthop face, the origin, a cost, and a set of route inheritance flags. wanna know more? go peek at the NFD Management protocol, iykyk πŸ“–.

  • the nfdc route list command lists RIB routes, optionally filtered by nexthop and origin πŸ”
  • the nfdc route show command shows RIB routes at a specified name prefix
  • the nfdc route add command requests to add a route. and listen β€” if a route with the same prefix, nexthop, and origin already exists, it gets updated with the specified cost, route inheritance flags, and expiration period πŸ”₯. this command returns when the request has been accepted, but it does not wait for RIB update completion (so don't @ her about it). also, if no face matching the specified URI is found, nfdc will attempt to implicitly create a face with this URI before adding the route. iconic behavior tbh ✨
  • the nfdc route remove command removes a route with matching prefix, nexthop, and origin πŸ—‘οΈ
  • the nfdc fib list command shows the forwarding information base (FIB), which is calculated from RIB routes and used directly by NFD forwarding πŸ’«

πŸ’… OPTIONS πŸ’…

  • <PREFIX> β€” name prefix of the route. the whole vibe, the address, the moment 🏷️
  • <FACEID> β€” numerical identifier of the face. you can find it displayed in the output of nfdc face list and nfdc face create commands. it's literally right there bestie 🫢
  • <FACEURI> β€” an URI representing the remote endpoint of a face. heads up: in the nfdc route add command, it must uniquely match an existing face. in the nfdc route remove command, it must match one or more existing faces. ⚠️

for more details on the syntax, see the FaceUri section <https://redmine.named-data.net/projects/nfd/wiki/FaceMgmt#FaceUri> of the NFD Face Management protocol. the wiki is your friend, fr fr πŸ“š

  • <ORIGIN> β€” origin of the route, i.e., who is announcing the route. the default is 255, indicating a static route. so if you don't say anything, she assumes static πŸ’β€β™€οΈ
  • <COST> β€” the administrative cost of the route. the default is 0. free of charge, no notes πŸ’Έ
  • no-inherit β€” unset CHILD_INHERIT flag in the route. bye felicia to that flag πŸ‘‹
  • capture β€” set CAPTURE flag in the route 🎯
  • <EXPIRATION> β€” expiration time of the route, in milliseconds. when the route expires, NFD removes it from the RIB. the default is infinite, which keeps the route active until the nexthop face is destroyed. so like, forever unless something else happens first πŸ’€

πŸ”₯ EXIT STATUS πŸ”₯

  • 0 β€” Success. slay πŸ’–
  • 1 β€” An unspecified error occurred. 😭
  • 2 β€” Malformed command line. check ur typing bestie πŸ™ˆ
  • 3 β€” Face not found. where is she πŸ‘€
  • 4 β€” FaceUri canonization failed.
  • 5 β€” Ambiguous: multiple matching faces are found (nfdc route add only). pick one, not all of them πŸ’…
  • 6 β€” Route not found (nfdc route list and nfdc route show only).

🌈 EXAMPLES 🌈

  • nfdc route list β€” List all routes. the full collection, the whole wardrobe πŸ‘‘
  • nfdc route list nexthop 300 β€” List routes whose nexthop is face 300.
  • nfdc route list origin static β€” List static routes.
  • nfdc route show prefix /localhost/nfd β€” List routes with name prefix "/localhost/nfd".
  • nfdc route add prefix /ndn nexthop 300 cost 100 β€” Add a route with prefix "/ndn" toward face 300, with administrative cost 100. chef's kiss 😘
  • nfdc route add prefix / nexthop udp://router.example.net β€” Add a route with prefix "/" toward a face with the specified remote FaceUri. going to the root, bold move πŸš€
  • nfdc route remove prefix /ndn nexthop 300 origin static β€” Remove the route whose prefix is "/ndn", nexthop is face 300, and origin is "static". bye route πŸ—‘οΈ

🫢 SEE ALSO 🫢

  • nfdc(1) β€” the main character herself πŸ’œ

Copyright Β© 2014-2024 Named Data Networking Project. all rights reserved, all vibes reserved πŸ’–


okay that's the whole page bestie, go forth and route responsibly 🌸

and as a lil sign-off: this is version 24.07 of the page, dated 1980-01-01 β€” yes the date is silly, no we don't ask questions, periodt πŸ’€βœ¨πŸ’…

πŸ“¦ where this page comes from