R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference
250
Syntax
ignore-first-as
undo ignore-first-as
Default
BGP checks the first AS number of a received EBGP route update. If the first AS number is not that of the
BGP peer, the BGP router discards the route update.
Views
BGP view
Examples
# Configure BGP to ignore the first AS number of EBGP route updates.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ignore-first-as
import-route (BGP/BGP-VPN instance view)
Use import-route to configure BGP to redistribute routes from the specified IGP protocol.
Use undo import-route to disable route redistribution from a routing protocol.
Syntax
import-route protocol [ { process-id | all-processes } [ allow-direct | med med-value | route-policy
route-policy-name ] * ]
undo import-route protocol [ process-id | all-processes ]
Default
BGP does not redistribute routes from other protocols.
Views
BGP view, BGP-VPN instance view
Default command level
2: System level
Parameters
protocol: Redistributes routes from the specified routing protocol, which can be direct, isis, ospf, rip or
static.
process-id: Process ID in the range of 1 to 65535. The default is 1. It is available only when the protocol
is isis, ospf, or rip.
all-processes: Redistributes routes from all the processes of the specified protocol. This keyword takes
effect only when the protocol is rip, ospf, or isis.
allow-direct: Redistributes direct routes from the specified protocol. This keyword is available only when
the specified protocol is OSPF. Without this keyword, BGP does not redistribute direct routes from OSPF.
If you specify the route-policy route-policy-name keyword together with the allow-direct keyword, make
sure that no rule in the routing policy conflicts with any direct route. For example, do not configure the
if-match route-type command for the routing policy to filter OSPF routes. Otherwise, the allow-direct
keyword does not take effect.