126 lines
2.6 KiB
HTML
126 lines
2.6 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of IP-SR</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>IP-SR</H1>
|
|
Section: Linux (8)<BR>Updated: 14 Apr 2017<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
ip-sr - IPv6 Segment Routing management
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<P>
|
|
|
|
|
|
<BR>
|
|
|
|
<B>ip sr</B>
|
|
|
|
{ <I>COMMAND</I> |
|
|
|
|
<B>help</B> }
|
|
|
|
<P>
|
|
<BR>
|
|
|
|
<P>
|
|
<BR>
|
|
|
|
<B>ip sr hmac show</B>
|
|
|
|
<P>
|
|
<BR>
|
|
|
|
<B>ip sr hmac set</B>
|
|
|
|
<I>KEYID ALGO</I>
|
|
|
|
<P>
|
|
<BR>
|
|
|
|
<B>ip sr tunsrc show</B>
|
|
|
|
<P>
|
|
<BR>
|
|
|
|
<B>ip sr tunsrc set</B>
|
|
|
|
<I>ADDRESS</I>
|
|
|
|
<P>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
The <B>ip sr</B> command is used to configure IPv6 Segment Routing (SRv6)
|
|
internal parameters.
|
|
<P>
|
|
|
|
Those parameters include the mapping between an HMAC key ID and its associated
|
|
hashing algorithm and secret, and the IPv6 address to use as source for encapsulated
|
|
packets.
|
|
<P>
|
|
|
|
The <B>ip sr hmac set</B> command prompts for a passphrase that will be used as the
|
|
HMAC secret for the corresponding key ID. A blank passphrase removes the mapping.
|
|
The currently supported algorithms for <I>ALGO</I> are <B>sha1</B> and <B>sha256</B>.
|
|
<P>
|
|
|
|
If the tunnel source is set to the address :: (which is the default), then an address
|
|
of the egress interface will be selected. As this operation may hinder performances,
|
|
it is recommended to set a non-default address.
|
|
<P>
|
|
<A NAME="lbAE"> </A>
|
|
<H2>EXAMPLES</H2>
|
|
|
|
<P>
|
|
|
|
<A NAME="lbAF"> </A>
|
|
<H3>Configure an HMAC mapping for key ID 42 and hashing algorithm SHA-256</H3>
|
|
|
|
<PRE>
|
|
# ip sr hmac set 42 sha256
|
|
|
|
</PRE><A NAME="lbAG"> </A>
|
|
<H3>Set the tunnel source address to 2001:db8::1</H3>
|
|
|
|
<PRE>
|
|
# ip sr tunsrc set 2001:db8::1
|
|
</PRE><A NAME="lbAH"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<BR>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+ip-route">ip-route</A></B>(8)
|
|
|
|
<A NAME="lbAI"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
David Lebrun <<A HREF="mailto:david.lebrun@uclouvain.be">david.lebrun@uclouvain.be</A>>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="4"><A HREF="#lbAE">EXAMPLES</A><DD>
|
|
<DL>
|
|
<DT id="5"><A HREF="#lbAF">Configure an HMAC mapping for key ID 42 and hashing algorithm SHA-256</A><DD>
|
|
<DT id="6"><A HREF="#lbAG">Set the tunnel source address to 2001:db8::1</A><DD>
|
|
</DL>
|
|
<DT id="7"><A HREF="#lbAH">SEE ALSO</A><DD>
|
|
<DT id="8"><A HREF="#lbAI">AUTHOR</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:13 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|