NFDC-ROUTE(1)
β¨ 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 listcommand lists RIB routes, optionally filtered by nexthop and origin π - the
nfdc route showcommand shows RIB routes at a specified name prefix - the
nfdc route addcommand 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,nfdcwill attempt to implicitly create a face with this URI before adding the route. iconic behavior tbh β¨ - the
nfdc route removecommand removes a route with matching prefix, nexthop, and origin ποΈ - the
nfdc fib listcommand 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 ofnfdc face listandnfdc face createcommands. it's literally right there bestie π«Ά<FACEURI>β an URI representing the remote endpoint of a face. heads up: in thenfdc route addcommand, it must uniquely match an existing face. in thenfdc route removecommand, 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 is255, indicating a static route. so if you don't say anything, she assumes static πββοΈ<COST>β the administrative cost of the route. the default is0. free of charge, no notes πΈno-inheritβ unsetCHILD_INHERITflag in the route. bye felicia to that flag πcaptureβ setCAPTUREflag 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 addonly). pick one, not all of them π6β Route not found (nfdc route listandnfdc route showonly).
π EXAMPLES π
nfdc route listβ List all routes. the full collection, the whole wardrobe πnfdc route list nexthop 300β List routes whose nexthop is face300.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 face300, with administrative cost100. 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 face300, and origin is"static". bye route ποΈ
π«Ά SEE ALSO π«Ά
nfdc(1)β the main character herself π
π Copyright π
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
- nixos 26.05: nfd 24.07
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms