Displaying the number of routes from a peer, Displaying routes learned from a specific bgp peer – Allied Telesis AR44xS series User Manual

Page 73

Advertising
background image

Displaying Routes Learned from a Specific BGP Peer (CR00011724)

73

Version 276-05
C613-10474-00 REV D

Displaying Routes Learned from a Specific BGP Peer (CR00011724)

This enhancement enables you to display:

the number of routes learned from a specific peer

information about each route learned from a specific peer

Displaying the Number of Routes from a Peer

To display the number of routes learned from a specific peer, use the existing command:

show bgp peer=ip-address

and check the new “Routes learned” field (

Figure 2

).

Figure 2: New parameter in the output of the show bgp peer command for a specific peer

Displaying Information about the Routes from a Peer

To display information about each route learned from a specific peer, use the new peer parameter in the command:

show bgp route[=prefix] [peer=ip-address] [other optional parameters]

The peer parameter specifies the IP address of the peer. If you specify a peer, the router or switch only displays routes that it learned from that peer. If you
specify the router or switch’s router ID, it displays all locally originated routes. The peer parameter has no default.

Note that this enhancement did not change any fields in the output of the show bgp route command; it simply provides another method of filtering the
displayed routes.

Peer ................ 192.168.10.1
Description ......... -
State ............... Idle
Policy Template ..... 4
Description ......... Test Template 1
Private AS filter ... Yes
Remote AS ........... 3
BGP Identifier ...... 172.20.25.2
Routes learned ...... 15
Authentication ...... None
Password .......... -
.
.
.

Advertising