{
    "content": [
        {
            "type": "text",
            "text": "# ip-sr (man)\n\n## NAME\n\nip-sr - IPv6 Segment Routing management\n\n## SYNOPSIS\n\nip sr  { COMMAND | help }\n\n## DESCRIPTION\n\nThe ip sr command is used to configure IPv6 Segment Routing (SRv6) internal parameters.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS** (2 subsections)\n- **DESCRIPTION**\n- **EXAMPLES** (2 subsections)\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "ip-sr",
        "section": "",
        "mode": "man",
        "summary": "ip-sr - IPv6 Segment Routing management",
        "synopsis": "ip sr  { COMMAND | help }",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [
            "# ip sr hmac set 42 sha256",
            "# ip sr tunsrc set 2001:db8::1"
        ],
        "see_also": [
            {
                "name": "ip-route",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/ip-route/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": [
                    {
                        "name": "ip sr hmac show",
                        "lines": 2
                    },
                    {
                        "name": "ip sr tunsrc show",
                        "lines": 3
                    }
                ]
            },
            {
                "name": "DESCRIPTION",
                "lines": 14,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 1,
                "subsections": [
                    {
                        "name": "Configure an HMAC mapping for key ID 42 and hashing algorithm SHA-256",
                        "lines": 2
                    },
                    {
                        "name": "Set the tunnel source address to 2001:db8::1",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "ip-sr - IPv6 Segment Routing management\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "ip sr  { COMMAND | help }\n\n",
                "subsections": [
                    {
                        "name": "ip sr hmac show",
                        "content": "ip sr hmac set KEYID ALGO\n"
                    },
                    {
                        "name": "ip sr tunsrc show",
                        "content": "ip sr tunsrc set ADDRESS\n\n"
                    }
                ]
            },
            "DESCRIPTION": {
                "content": "The ip sr command is used to configure IPv6 Segment Routing (SRv6) internal parameters.\n\nThose parameters include the mapping between an HMAC key ID and its associated hashing algo‐\nrithm and secret, and the IPv6 address to use as source for encapsulated packets.\n\nThe ip sr hmac set command prompts for a passphrase that will be used as the HMAC secret for\nthe corresponding key ID. A blank passphrase removes the mapping.  The currently supported\nalgorithms for ALGO are sha1 and sha256.\n\nIf the tunnel source is set to the address :: (which is the default), then an address of the\negress interface will be selected. As this operation may hinder performances, it is recom‐\nmended to set a non-default address.\n\n",
                "subsections": []
            },
            "EXAMPLES": {
                "content": "",
                "subsections": [
                    {
                        "name": "Configure an HMAC mapping for key ID 42 and hashing algorithm SHA-256",
                        "content": "# ip sr hmac set 42 sha256\n"
                    },
                    {
                        "name": "Set the tunnel source address to 2001:db8::1",
                        "content": "# ip sr tunsrc set 2001:db8::1\n"
                    }
                ]
            },
            "SEE ALSO": {
                "content": "ip-route(8)\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "David Lebrun <david.lebrun@uclouvain.be>\n\n\n\niproute2                                     14 Apr 2017                                    IP-SR(8)",
                "subsections": []
            }
        }
    }
}