![H3C S5500-EI series Скачать руководство пользователя страница 225](http://html2.mh-extra.com/html/h3c/s5500-ei-series/s5500-ei-series_configuration-manual_3726960225.webp)
208
Injecting a local network
In BGP view, you can inject a local network to allow BGP to advertise to BGP peers. The origin attribute
of routes advertised in this way is IGP. You can also reference a routing policy to flexibly control route
advertisement. The network to be injected must be available in the local IP routing table.
Follow these steps to inject a local network:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter BGP view
bgp
as-number
—
Inject a network to the BGP routing
table
network
ip-address
[
mask
|
mask-length
]
route-policy
route-policy-name
Optional
Not injected by default
Configuring BGP route redistribution
BGP does not find routes by itself. Rather, it redistributes routing information in the local AS from other
routing protocols. During route redistribution, you can configure BGP to filter routing information from
specific routing protocols.
The origin attribute of routes redistributed using the
import-route
command is INCOMPLETE.
Follow these steps to configure BGP route redistribution:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter BGP view
bgp
as-number
—
Enable route redistribution from a
routing protocol into BGP
import-route
protocol
[ {
process-id
|
all-processes
} [
allow-direct
|
med
med-value
|
route-policy
route-policy-name
] * ]
Required
Not enabled by default
The
allow-direct
keyword is
available only when the specified
routing protocol is OSPF.
NOTE:
Only active routes can be redistributed. You can use the
display ip routing-table
protocol
command to
display route state information.
Enabling default route redistribution into BGP
Using the
import-route
command cannot redistribute a default route.
Follow these steps to enable default route redistribution into BGP:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter BGP view
bgp
as-number
—