247
Controlling route advertisement and reception
Before configuring this task, configure basic MBGP functions first.
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 learning the information by itself.
To configure MBGP route redistribution:
Ste
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 MBGP route
redistribution.
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 command
No route redistribution is
configured by default.
The allow-direct keyword is
available only when the specified
routing protocol is OSPF.
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.
NOTE:
The networks to be injected must exist in the local IP routin
table, and usin
a routin
policy makes route
control more flexible.
Configuring default route redistribution into MBGP
You cannot use the import-route command to redistribute any default route into the MBGP routing table.
This task allows you to redistribute default routes in another way.
To configure MBGP to redistribute a default route from another protocol:
Ste
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter BGP view.
bgp as-number N/A