Debian Codegraph @

upstream/debian-trixie/man8/ip-sr.8

raw
1 .TH IP\-SR 8 "14 Apr 2017" "iproute2" "Linux"
2 .SH "NAME"
3 ip-sr \- IPv6 Segment Routing management
4 .SH SYNOPSIS
5 .sp
6 .ad l
7 .in +8
8 .ti -8
9 .B ip sr
10 .RI " { " COMMAND " | "
11 .BR help " }"
12 .sp
13 .ti -8
14
15 .ti -8
16 .B ip sr hmac show
17
18 .ti -8
19 .B ip sr hmac set
20 .I KEYID ALGO
21
22 .ti -8
23 .B ip sr tunsrc show
24
25 .ti -8
26 .B ip sr tunsrc set
27 .I ADDRESS
28
29 .SH DESCRIPTION
30 The \fBip sr\fR command is used to configure IPv6 Segment Routing (SRv6)
31 internal parameters.
32 .PP
33 Those parameters include the mapping between an HMAC key ID and its associated
34 hashing algorithm and secret, and the IPv6 address to use as source for encapsulated
35 packets.
36 .PP
37 The \fBip sr hmac set\fR command prompts for a passphrase that will be used as the
38 HMAC secret for the corresponding key ID. A blank passphrase removes the mapping.
39 The currently supported algorithms for \fIALGO\fR are \fBsha1\fR and \fBsha256\fR.
40 .PP
41 If the tunnel source is set to the address :: (which is the default), then an address
42 of the egress interface will be selected. As this operation may hinder performances,
43 it is recommended to set a non-default address.
44
45 .SH EXAMPLES
46 .PP
47 .SS Configure an HMAC mapping for key ID 42 and hashing algorithm SHA-256
48 .nf
49 # ip sr hmac set 42 sha256
50 .PP
51 .SS Set the tunnel source address to 2001:db8::1
52 .nf
53 # ip sr tunsrc set 2001:db8::1
54 .SH SEE ALSO
55 .br
56 .BR ip-route (8)
57 .SH AUTHOR
58 David Lebrun <[email protected]>