# BGP Peer Groups on Cisco IOS

**URL:** <https://forum.networklessons.com/t/bgp-peer-groups-on-cisco-ios/1237>\
**Category:** Lessons Discussion\
**Created:** [December 29, 2016, 5:35pm UTC](https://forum.networklessons.com/t/bgp-peer-groups-on-cisco-ios/1237 "2016-12-29T17:35:12Z")\
**Posts on this page:** 1\
**Page:** 4

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [March 23, 2026, 5:54am UTC](https://forum.networklessons.com/t/bgp-peer-groups-on-cisco-ios/1237/62 "2026-03-23T05:54:54Z")

</div>

Hello David

The output of such commands can be frustrating when the output can’t be manipulated as desired. It looks like the command has no options for listing the peer templates in another order. The commands display the templates in the order they were configured, not sorted by any index or alphabetically.

At the end of the post, you’ll find links to the official Cisco entries in the CLI reference for both of these commands. As stated by Cisco for both:

> The output can be filtered to display a single peer policy template using the **policy-template-name** argument. This command also supports all standard output modifiers.

So, using either the additional argument or using standard output modifiers, you can sort through and find what you’re looking for.

> **[Cisco IOS IP Routing: BGP Command Reference - BGP Commands: show ip through T...](https://www.cisco.com/c/en/us/td/docs/ios/iproute_bgp/command/reference/irg_book/irg_bgp5.html#wp1162964)**
>
> To display the contents of all current autonomous system (AS) path access lists, use the show ip as-path-access-list command in user EXEC or privileged EXEC mode.

> **[Cisco IOS IP Routing: BGP Command Reference - BGP Commands: show ip through T...](https://www.cisco.com/c/en/us/td/docs/ios/iproute_bgp/command/reference/irg_book/irg_bgp5.html#wp1163184)**
>
> To display the contents of all current autonomous system (AS) path access lists, use the show ip as-path-access-list command in user EXEC or privileged EXEC mode.

I hope this has been helpful!

Laz

[Previous page](https://forum.networklessons.com/t/bgp-peer-groups-on-cisco-ios/1237.md?page=3)
