By configuring IS-IS to import routes, you can enable IS-IS to learn routing information of other protocols or other IS-IS processes.
IS-IS regards the routes discovered by other routing protocols or other IS-IS processes as external routes. You can specify default costs for imported routes.
The system view is displayed.
The IS-IS view is displayed.
Before setting costs for the imported routes, run the import-route { direct | static | { ospf | rip | isis } [ process-id ] | bgp [ permit-ibgp ] } [ cost-type { external | internal } | cost cost | tag tag | route-policy route-policy | [ level-1 | level-2 | level-1-2 ] ] * command to import external routes.
Before retaining the original costs of the imported routes, run the import-route { { ospf | rip | isis } [ process-id ] | bgp [ permit-ibgp ] | direct } inherit-cost [ { level-1 | level-2 | level-1-2 } | tag tag | route-policy route-policy ] * command to import external routes.
permit-ibgp takes effect only in the public network instance.
To better manage and maintain IS-IS networks, configure route-policy route-policy to import only required routes.
If you do not specify level-1, level-2, or level-1-2 in the command, routes are imported to the Level-2 routing table by default.
The configuration is committed.