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 Tools > Options > Design, 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, first switch into the Modify action mode. Then bring up the BGP Subnets window via the Modify > Protocols > BGP > BGP Subnets... menu. The following figure shows a subnet entry for AS node, AS1301, being modified.

    Figure 1: Modifying a BGP SubnetGraphical user interface for managing BGP subnets with tables and forms for configuring node names, prefixes, masks, protocols, and AS-Path.
  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 Window Graphical user interface for managing BGP subnets, displaying node name, prefix, mask, protocol, MED, route-map, community, AS-path, and VRF.
    Figure 3: Main View and BGP View of the network Two network topology maps showing Autonomous Systems and routers in a BGP environment. Left: Standard map with AS numbers and color-coded links. Right: BGP view highlighting EBGP and IBGP links with shaded AS boundaries.
  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 RTE Screenshot of a network tool showing BGP neighbors with details like Node, AS, Interface, and policies. Highlights route-map 1301in with sequences setting local preferences.
  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/24 GUI for analyzing BGP routing tables: specify source/destination nodes, view routing details like Exit Src AS, Next Hop, Preference, Weight, Local Pref, MED, AS Path, Community String.
    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 point Network topology diagram showing nodes labeled as routers or switches within different Autonomous Systems AS. Blue lines indicate active links, yellow dashed line suggests backup connection. Top section features a Demand Path Tool for configuring paths between nodes, such as RTH to AS1301. A legend differentiates AS groups by color.