Configuring BGP4

Displaying the Active Route Map Configuration

To view the device’s active route map configuration (contained in the running-config) without displaying the entire running-config, use the following CLI method.

USING THE CLI

To display the device’s active route map configuration, enter the following command at any level of the CLI:

HP9300# show route-map

route-map

permitnet4 permit 10

match ip

address prefix-list plist1

route-map

permitnet1 permit 1

match ip

address prefix-list plist2

route-map

setcomm permit 1

set community 1234:2345 no-export

route-map

test111 permit 111

match address-filters 11

set community 11:12 no-export

route-map

permit1122 permit 12

match ip

address 11

route-map

permit1122 permit 13

match ip

address std_22

This example shows that the running-config contains six route maps. Notice that the match and set statements within each route map are listed beneath the command for the route map itself. In this simplified example, each route map contains only one match or set statement.

To display the active configuration for a specific route map, enter a command such as the following, which specifies a route map name:

HP9300# show route-map setcomm route-map setcomm permit 1

set community 1234:2345 no-export

This example shows the active configuration for a route map called “setcomm“.

Syntax: show route-map [<map-name>]

USING THE WEB MANAGEMENT INTERFACE

You cannot display the active route map configuration using the Web management interface.

Clearing Traffic Counters

You can clear the counters (reset them to 0) for BGP4 messages. To do so, use one of the following methods.

USING THE CLI

To clear the BGP4 message counter for all neighbors, enter the following command:

HP9300# clear ip bgp traffic

Syntax: clear ip bgp traffic

To clear the BGP4 message counter for a specific neighbor, enter a command such as the following:

HP9300# clear ip bgp neighbor 10.0.0.1 traffic

To clear the BGP4 message counter for all neighbors within a peer group, enter a command such as the following:

HP9300# clear ip bgp neighbor PeerGroup1 traffic

Syntax: clear ip bgp neighbor all <ip-addr> <peer-group-name> <as-num> traffic

The all <ip-addr> <peer-group-name> <as-num> specifies the neighbor. The <ip-addr> parameter specifies a neighbor by its IP interface with the routing switch. The <peer-group-name> specifies all neighbors in a specific

10 - 113