![Huawei S6700 Series Configuration Manual Download Page 54](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517054.webp)
2.5.4 Configuring RIP to Import External Routes
To enrich its routing information, RIP can import the routes learned by other processes or other
routing protocols.
Context
Do as follows on the RIP switch:
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
rip
[
process-id
]
The RIP process is enabled and the RIP view is displayed.
Step 3
(Optional) Run:
default-cost
cost
The default cost of imported routes is set.
If no cost is specified when external routes are imported, the default cost is used.
Step 4
Run:
import-route
bgp
[
permit-ibgp
] [
cost
{
cost
|
transparent
} |
route-policy
route-
policy-name
]
*
or
import-route
{ {
static
|
direct
|
unr
} | { {
rip
|
ospf
|
isis
} [
process-id
] } } [
cost
cost
|
route-policy
route-policy-name
]
*
NOTE
NOTE
Import of IBGP routes in RIP process can lead to routing loops. Administrator should take care of routing
loops before configuring
permit-ibgp
.
Step 5
(Optional) Run:
filter-policy
{
acl-number
|
acl-name
acl-name
|
ip-prefix
ip-prefix-name
}
export
[
protocol
[
process-id
] |
interface-type
interface-number
]
The imported routes are filtered when being advertised.
If the routing information to be advertised by RIP contains the routes imported from other routing
protocols, you can specify
protocol
to filter the specified routes. If
protocol
is not specified, all
the routing information to be advertised will be filtered, including the imported routes and local
RIP routes (directly connected routes).
NOTE
The Tag field in RIP is 16 bits in length, whereas the Tag field in other routing protocols is 32 bits in length.
If the routes of other routing protocols are imported and the tag is used in the routing policy, ensure that
the tag value does not exceed 65535. Otherwise, the routing policy becomes invalid or the matching result
is incorrect.
----End
S6700 Series Ethernet Switches
Configuration Guide - IP Routing
2 RIP Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
35