![Huawei S6700 Series Скачать руководство пользователя страница 578](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517578.webp)
Context
NOTE
MBGP routes are originated from the following:
l
Routes statically imported by using the
network
command.
l
Routes imported by using the
import-route
command.
Users can import at least one type of local routes as required.
Do as follows on the switch configured with an MBGP peer:
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
bgp
as-number
The BGP view is displayed.
Step 3
Run:
ipv4-family
multicast
The BGP-IPv4 multicast address family view is displayed.
Step 4
Run:
network
ipv4-address
[
mask
|
mask-length
] [
route-policy
route-policy-name
]
The routes of the local network segment are advertised.
The parameters of the command are explained as follows:
l
ipv4-address
[
mask-length
|
mask
]: specifies the routes to be advertised. If the network mask
is not specified, routes will be exactly matched against the natural network mask.
l
route-policy
route-policy-name
: specifies the name of the routing policy that controls the
routes to be advertised.
The
network
command is used to advertise the exactly-matched routes. To be specific, the
command can be used to advertise the routes only with the exactly-matched address prefix and
mask. If the mask is not designated, the routes are exactly matched based on the natural network
segment.
Step 5
Run:
import-route
protocol
[
process-id
] [
med
med
|
route-policy
route-policy-name
]
*
The routes of other protocols are imported to MBGP.
The parameters of the command are explained as follows:
l
protocol
[
process-id
]: specifies the routing protocol and the process ID of the routing
protocol from which routes are imported. The routing protocol contains
direct
,
unr
,
rip
,
isis
and
ospf
. When the routing protocol is
isis
,
ospf
or
rip
, the process ID must be specified.
l
med
med
: specifies the MED value assigned to an imported route.
l
route-policy
route-policy-name
: specifies the route filtering policy. Only the route that
passes the filtering of the policy is imported.
S6700 Series Ethernet Switches
Configuration Guide - IP Routing
9 MBGP Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
559