Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

BGP Subnets

The BGP subnets list can be used to list prefixes, or subnetworks (whose router configuration files are unavailable) originated from a particular router or AS node. Various BGP attributes associated with the subnetwork can be defined in the subnet file.

Note:

If useliveBGPrtbl=1 is set in the dparam file, or in Design > Design Options > Path Placement > BGP, then the subnets information will be ignored.

  1. The subnet file can be viewed from the File Manager or from Network > Protocols > BGP > BGP Subnets... menu. To add, modify, or delete BGP subnets in the subnet file, navigate to Network > Protocols > BGP > BGP Subnets... to bring up the BGP Subnets window. The following figure shows a subnet entry for AS node, AS1301, being modified.
    Figure 1: Modifying a BGP SubnetGraphical user interface for configuring BGP subnets with sections for BGP Subnets Table, Configuration Panel, and Modify BGP Subnet Dialog.
  2. Note the Protocol field, which defaults to bgp. Specifying “bgp” indicates that this is the prefix advertised from the router. In-policies still need to be applied to this route by the router receiving the route. Specifying “bgptbl” in this field indicates the route that is in the router’s routing table. It has already been accepted by the router’s in policy, but may or may not be the preferred route. This option is used for routes received from other Autonomous Systems, since their configuration files may not be available.

    To illustrate how to use the BGP subnet list (accessed via Network > Protocols > BGP > BGP Subnets...), a sample network and the corresponding BGP subnet list are shown in the following two figures. Note that within the BGP subnet list, ASnode AS1301 is declaring that it can reach subnet 10.10.1.0/24, which has an AS_PATH attribute that includes 65500. ASnode AS1301 is also declaring that it can reach subnet 10.10.2.0/24, which has an AS_PATH attribute that includes 65002.

    Figure 2: View BGP Subnets WindowGraphical interface for managing BGP subnets with a table showing columns like Node Name, Prefix, and AS-Path. Below are fields for filtering and editing attributes.
    Figure 3: Main View and BGP View of the networkTwo network topology maps showing routers and Autonomous Systems in a BGP environment. The left panel displays standard topology with color-coded links between routers. The right panel focuses on BGP relationships, highlighting EBGP and IBGP connections with red and green lines.
  3. To see the BGP InPolicy defined at a router RTE, bring up the BGP Neighbors table and switch to the In Policy tab, as shown in the following figure. In this particular example, the InPolicy at router RTE is defined by a Cisco route-map and says that if an incoming route has 65001 included in its AS_PATH attribute, then set the LOCAL_PREF attribute to 123; otherwise, set the LOCAL_PREF attribute to 89. The InPolicy at router RTG is the same except that 65002 is matched for instead of 65001.

    Figure 4: BGP In Policy for RTEBGP neighbors table with node, AS number, interface, neighbor name, IP, in and out policies. In policy RM:1301in with AS path match and local pref 123. Out policy RM:1301out sets local pref 89.
  4. Continuing with our example, we bring up our BGP routing table to verify that the LOCAL_PREF attribute got set correctly to 123 for AS1301’s subnetwork 10.10.2.0/24, which has 65002 included in its AS_PATH attribute.

    Figure 5: BGP Routing table from RTH to AS1301 subnet 10.10.2.0/24GUI for managing BGP routing tables, showing nodes and IPs for querying, routing info like Exit Src AS, BGP Next Hop, AS Path, and route properties.
    Note:

    In Internet routing, community is another commonly-used attribute to tag a particular route. Each service provider can define its own policy based on this attribute of the incoming route. The subnet file helps the user to simulate routing behavior to various Internet destinations.

  5. Finally, we can do a path trace from a router, say RTH, in AS65500 (which includes routers RTH, RTE, RTG) to AS1301’s subnetwork 10.10.2.0 and verify that RTG is indeed the preferred exit point for AS65500, as indicated by the higher LOCAL_PREF value of 123. The following figure shows the path trace.

    Figure 6: Path trace illustrating the RTG being the preferred exit pointNetwork topology diagram showing nodes labeled RTA, RTB, RTC, RTD, RTE, RTH, RTG connected by links representing routers in Autonomous System AS 65501, AS 65100, AS 65200, AS 65500. Demand Path window at top for traffic demand analysis between nodes. Color-coded nodes and links indicate AS groups or connections, with a yellow dashed line highlighting a specific route.