186
# In BGP-VPN view, use the IP prefix list list 1 to filter routes advertised to the peer group test. (The VPN
has been created.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] peer test ip-prefix list1 export
peer keep-all-routes (BGP/BGP-VPN instance view)
Syntax
peer { group-name | ip-address } keep-all-routes
undo peer { group-name | ip-address } keep-all-routes
View
BGP view, BGP-VPN instance view
Default level
2: System level
Parameters
group-name: Name of a peer group, a string of 1 to 47 characters.
ip-address: IP address of a peer.
Description
Use peer keep-all-routes to save original routing information from a peer or peer group, including routes
that fail to pass the inbound policy (if configured).
Use undo peer keep-all-routes to disable this function.
By default, the function is not enabled.
Examples
# I n B G P v i e w, s a ve ro u t i n g i n f o r m a t i o n f ro m p e e r 131.10 0 .1.1.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer 131.100.1.1 as-number 200
[Sysname-bgp] peer 131.100.1.1 keep-all-routes
# I n B G P-V P N i n s t a n c e v i e w, s a v e ro u t i n g i n f o r m a t i o n f r o m p e e r 131.10 0 .1.1. ( T h e V P N h a s b e e n c re a t e d . )
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] peer 131.100.1.1 as-number 200
[Sysname-bgp-ipv4-vpn1] peer 131.100.1.1 keep-all-routes
peer log-change (BGP/BGP-VPN instance view)
Syntax
peer { group-name | ip-address } log-change
undo peer { group-name | ip-address } log-change