996CHAPTER 72: BGP CONFIGURATION COMMANDS

export: Applies the filter to routes advertised to the specified peer/peer group.

import: Applies the filter to routes received from the specified peer/peer group.

Description Use the peer ip-prefixcommand to reference an IP prefix list to filter routes received from or advertised to a peer or peer group.

Use the undo peer ip-prefixcommand to remove the configuration.

By default, no IP prefix list is specified.

Examples # In BGP view, use the IP prefix list list 1 to filter routes advertised to the peer group test.

<Sysname> system-view

[Sysname] bgp 100

[Sysname-bgp] peer test ip-prefix list1 export

#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-vpn1] peer test ip-prefix list1 export

peer keep-all-routes (BGP/BGP-VPN instance view)

Syntax peer { group-nameip-address} keep-all-routes undo peer { group-nameip-address} keep-all-routes

View BGP view/BGP-VPN instance view

Parameters group-name: Name of a peer group, a string of 1 to 47 characters.

ip-address: IP address of a peer.

Description Use the peer keep-all-routescommand to save original routing information from a peer or peer group, even routes that failed to pass the inbound policy (if configured).

Use the undo peer keep-all-routescommand to disable this function.

By default, the function is not enabled.

Examples # In BGP view, save routing information from peer 131.100.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

Page 996
Image 996
3Com MSR 30, MSR 50 manual Peer keep-all-routes BGP/BGP-VPN instance view