226
Configuration prerequisites
Configure basic MBGP functions before you configure this task.
Configuring MBGP route redistribution
MBGP can advertise routing information in the local AS to neighboring ASs. It redistributes such
routing information from IGP into its routing table rather than learns the information by itself.
The ORIGIN attribute of routes redistributed into the MBGP routing table with the
import-route
command is Incomplete.
The ORIGIN attribute of routes injected into the MBGP routing table with the
network
command is
IGP.
The networks to be injected must exist in the local IP routing table, and using a routing policy makes
route control more flexible.
To configure MBGP route redistribution:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter BGP view.
bgp
as-number
N/A
3.
Enter IPv4 MBGP address
family view.
ipv4-family multicast
N/A
4.
Configure route
redistribution from another
routing protocol.
•
Enable route redistribution
from another routing protocol:
import-route
protocol
[ {
process-id
|
all-processes
}
[
allow-direct
|
med
med-value
|
route-policy
route-policy-name
] * ]
•
Inject a network into the
MBGP routing table:
network
ip-address
[
mask
|
mask-length
] [
short-cut
|
route-policy
route-policy-name
]
Use either approach.
By default, no route redistribution
is configured.
The
allow-direct
keyword is
available only when the specified
routing protocol is OSPF.
Configuring default route redistribution into MBGP
Using only the
import-route
command cannot redistribute any default route into MBGP. This task
enables default route redistribution into the MBGP routing table.
To configure MBGP to redistribute a default route from another protocol:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter BGP view.
bgp
as-number
N/A
3.
Enter MBGP address family
view.
ipv4-family multicast
N/A
4.
Enable route redistribution
from another routing
protocol.
import-route
protocol
[ {
process-id
|
all-processes
}
[
allow-direct
|
med
med-value
|
No route redistribution is
configured by default.