blob: 1cfef1d608e3285b71e905d608b34a94ed5f9c33 [file] [log] [blame]
Junxiao Shi6c135622016-11-21 14:30:33 +00001nfdc-route
2==========
3
4SYNOPSIS
5--------
6| nfdc route [list]
7| nfdc fib [list]
Junxiao Shif0dfb332017-02-02 05:32:25 +00008| nfdc register [-I] [-C] [-c <COST>] [-e <EXPIRATION>] [-o <ORIGIN>] <PREFIX> <FACEID|FACEURI>
9| nfdc unregister [-o <ORIGIN>] <PREFIX> <FACEID>
Junxiao Shi6c135622016-11-21 14:30:33 +000010
11DESCRIPTION
12-----------
13In NFD, the routing information base (RIB) stores static or dynamic routing information
14registered by applications, operators, and NFD itself.
15Each *route* in the RIB indicates that contents under a name prefix may be available via a nexthop.
16A route contains a name prefix, a nexthop face, the origin, a cost, and a set of route inheritance flags;
17refer to NFD Management protocol for more information.
18
19The **nfdc route list** command shows a list of routes in the RIB.
20
21The **nfdc fib list** command shows the forwarding information base (FIB),
22which is calculated from RIB routes and used directly by NFD forwarding.
23
24The **nfdc register** command adds a new route.
25If a route with the same prefix, nexthop, and origin already exists,
26it is updated with the specified cost, expiration, and route inheritance flags.
27
28The **nfdc unregister** command removes a route with matching prefix, nexthop, and origin.
29
30OPTIONS
31-------
32-I
33 Unset CHILD_INHERIT flag in the route.
34
35-C
36 Set CAPTURE flag in the route.
37
Junxiao Shif0dfb332017-02-02 05:32:25 +000038-c <COST>
Junxiao Shi6c135622016-11-21 14:30:33 +000039 The administrative cost of the route.
40 The default is 0.
41
Junxiao Shif0dfb332017-02-02 05:32:25 +000042-e <EXPIRATION>
Junxiao Shi6c135622016-11-21 14:30:33 +000043 Expiration time of the route, in milliseconds.
44 When the route expires, NFD removes it from the RIB.
45 The default is infinite, which keeps the route active until the nexthop face is destroyed.
46
Junxiao Shif0dfb332017-02-02 05:32:25 +000047-o <ORIGIN>
Junxiao Shi6c135622016-11-21 14:30:33 +000048 Origin of the route, i.e. who is announcing the route.
49 The default is 255, indicating a static route.
50
Junxiao Shif0dfb332017-02-02 05:32:25 +000051<PREFIX>
Junxiao Shi6c135622016-11-21 14:30:33 +000052 Name prefix of the route.
53
Junxiao Shif0dfb332017-02-02 05:32:25 +000054<FACEURI>
Junxiao Shi6c135622016-11-21 14:30:33 +000055 An URI representing the remote endpoint of a face.
56 It can be used in **nfdc register** to create a new UDP or TCP face.
57
Junxiao Shif0dfb332017-02-02 05:32:25 +000058<FACEID>
Junxiao Shi6c135622016-11-21 14:30:33 +000059 A numerical identifier of the face.
60 It is displayed in the output of **nfdc face list** and **nfdc create** commands.
61
62SEE ALSO
63--------
64nfd(1), nfdc(1)