Viewing CIDR routes

Display information about classless interdomain routing (CIDR) routes.

Procedure

  1. To enter User EXEC mode, log on to the switch.
  2. Display information about CIDR routes:

    show ip bgp cidr-only [<prefix/len>] [vrf WORD<1–16>] [vrfids WORD<0–512>]

Variable Definitions

The following table defines parameters for the show ip bgp cidr-only command.

Variable

Value

<prefix/len>

Specifies an exact match of the prefix. This variable is an IP address and an integer value from 0–32 in the format a.b.c.d/xx.

vrf WORD<1–16>

Specifies a VRF instance by name (the string length ranges from 1–16 characters).

vrfids WORD<0–512>

Specifies a range of VRFs by ID number (the ID ranges from 0–512).

Job Aid

Use the data in the following table to understand the show ip bgp cidr-only command output.

Table 1. show ip bgp cidr-only field descriptions

Field

Description

NETWORK/MASK

Specifies the network IP address and exact mask length (must be an integer value from 0–32).

PEER REM ADDR

Specifies the IP address of the remote peer.

NEXTHOP ADDRESS

Specifies the IP address of the next hop.

ORG

Specifies the source of a route:

  • IGP — the route is interior to the originating AS that inserts this route into the BGP table (0 = IGP).

  • EGP — the route is learned through an Exterior Gateway Protocol (EGP) before it is inserted into the BGP table (1 = BGP).

  • Incomplete — the origin of the route is unknown or learned by some other means. For example, the router learns these routes through RIP, OSPF, or static routes (2 = Incomplete).

LOC PREF

Specifies the local preference.