Configuring mbgp route redistribution, Configure default route redistribution into mbgp – H3C Technologies H3C S12500 Series Switches User Manual

Page 236

Advertising
background image

220

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 method.
By default, no route redistribution
is configured by default.
The allow-direct keyword is
available only when the specified

routing protocol is OSPF.

Configure default route redistribution into MBGP

Using the import-route command cannot redistribute any default route into MBGP. This task allows you

to do so.
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 | route-policy
route-policy-name
] * ]

By default, no route redistribution
is configured.
The allow-direct keyword is

available only when the specified
routing protocol is OSPF.

Advertising