1170 CHAPTER 77: RIP CONFIGURATION COMMANDSExamples # Disable RIP from receiving host routes. system-view[Sysname] rip 1[Sysname-rip-1] undo host-routeimport-route (RIP view)Syntax import-route protocol [ process-id ] [ allow-jbgp ] [ cost cost | route-policyroute-policy-name | tag tag ]*undo import-route protocol [ process-id ]View RIP viewParameters protocol: Specify a routing protocol from which to redistribute routes, currentlyincluding bgp, direct, isis, ospf, rip, rip and static.process-id: Process number of the routing protocol, in the range of 1 to 65535,used for isis, rip, and ospf.cost: Cost for redistributed routes, in the range of 0 to 16. If cost is not specified,the default cost specified by the default cost command applies.tag: Tag marking redistributed routes, in the range of 0 to 65,535. The default is 0.route-policy route-policy-name: Specifies a routing policy with 1 to 19characters.allow-ibgp: When the protocol argument is set to bgp, allow-ibgp is anoptional keyword. The import-route bgp command only redistributes EBGProutes, while the import-route bgp allow-ibgp command additionallyredistributes IBGP routes, which may cause routing loops. Be cautious when usingit.Description Use the import-route command to redistribute routes from other routingprotocols.Use the undo import-route command to cancel route redistribution.By default, RIP does not redistribute routes from other routing protocols.■ You can specify a routing policy using keyword route-policy to redistributeonly the specified routes.■ You can configure a cost for redistributed routes using keyword cost.■ You can configure a tag value for redistributed routes using keyword tag.Related commands: default cost (RIP view).Examples # Redistribute static routes, and set the cost to 4.