H3C S7500E Series Command Manual page 291

Hide thumbs Also See for S7500E Series:
Table of Contents

Advertisement

Command Manual – IPv4 Routing
H3C S7500E Series Ethernet Switches
Parameters
protocol: Specify a routing protocol from which to redistribute routes, currently including
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 19 characters.
allow-ibgp: When the protocol argument is set to bgp, allow-ibgp is an optional
keyword. The import-route bgp command only redistributes EBGP routes, while the
import-route bgp allow-ibgp command additionally redistributes IBGP routes, which
may cause routing loops. Be cautious when using it.
Description
Use the import-route command to enable route redistribution from another routing
protocol.
Use the undo import-route command to disable route redistribution.
By default, RIP does not redistribute routes from other routing protocols.
You can specify a routing policy using keyword route-policy to redistribute only
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.
Examples
# Redistribute static routes, and set the cost to 4.
<Sysname> system-view
[Sysname] rip 1
[Sysname-rip-1] import-route static cost 4
# Set the default cost for redistributed routes to 3.
[Sysname-rip-1] default cost 3
# Redistribute OSPF routes with the cost being the default cost.
[Sysname-rip-1] import-route ospf
Chapter 2 RIP Configuration Commands
2-13

Advertisement

Table of Contents
loading

Table of Contents