257
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] group test external
[Sysname-bgp-vpn1] peer test as-number 200
[Sysname-bgp-vpn1] peer 1::1 group test
[Sysname-bgp-vpn1] peer 1::2 group test
Related commands
•
display bgp group ipv4 unicast
•
display bgp group ipv6 unicast
•
peer enable
•
peer group
ignore-first-as
Use
ignore-first-as
to configure BGP to ignore the first AS number of EBGP route updates.
Use
undo ignore-first-as
to restore the default.
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
Predefined user roles
network-admin
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
Use
import-route
to enable BGP to redistribute routes from an IGP protocol.
Use
undo import-route
to disable route redistribution from an IGP protocol.
Syntax
In BGP IPv4 unicast instance view/BGP-VPN IPv4 unicast instance view:
import-route
protocol
[ {
process-id
|
all-processes
} [
med
med-value
|
route-policy
route-policy-name
]
* ]
undo import-route
protocol
[
process-id
|
all-processes
]