© Copyright Lenovo 2017 Chapter 4: Configuration Commands 561Border Gateway Protocol ConfigurationBorder Gateway Protocol (BGP) is an Internet protocol that enables routers on anetwork to share routing information with each other and advertise informationabout the segments of the IP address space they can access within their networkwith routers on external networks. BGP allows you to decide what is the “best”route for a packet to take from your network to a destination on another network,rather than simply setting a default route from your border router(s) to yourupstream provider(s). You can configure BGP either within an autonomous systemor between different autonomous systems. When run within an autonomoussystem, itʹs called internal BGP (iBGP). When run between different autonomoussystems, itʹs called external BGP (eBGP). BGP is defined in RFC 1771.BGP commands enable you to configure the switch to receive routes and toadvertise static routes, fixed routes and virtual server IP addresses with otherinternal and external routers.BGP is turned off by default.Note: Fixed routes are subnet routes. There is one fixed route per IP interface.Table 299. Border Gateway Protocol OptionsCommand Syntax and Usagerouter bgpEnter Router BGP configuration mode.Command mode: Global configurationaggregate address <1‐16>Configures aggregation IP address. To view command options, see page 566.Command mode: Router BGPas <0‐65535>Set Autonomous System number.Command mode: Router BGP[no] asn4compEnables or disables ASN4 to ASN2 compatibility.Command mode: Router BGP[no] bestpath as path multipath relaxChanges the default best path selection configuration by allowing load sharingacross different AS‐paths of equal length.Command mode: Router BGP[no] client to client reflectionEnables or disables client‐to‐client IBGP route reflection when operating as aroute reflector.The default state is enabled.Command mode: Router BGP