For feedback and comments: |
documentation.feedback@alcatel-lucent.com |
In order to implement BGP, the AS number must be specified in the config>router context.
• Router ID — The router ID is the IP address of the local router. The router ID identifies a packet’s origin. The router ID must be a valid host address.BGP is configured in the config>router>bgp context. Three hierarchical levels are included in BGP configurations:EBGP speakers peer to different ASs and typically share a subnet. In an external group, the next hop is dependent upon the interface shared between the external peer and the specific neighbor. The multihop command must be specified if an EBGP peer is more than one hop away from the local router.The BGP configuration commands have three primary configuration levels: bgp for global configurations, group name for BGP group configuration, and neighbor ip-address for BGP neighbor configuration. Within the different levels, many of the configuration commands are repeated. For the repeated commands, the command that is most specific to the neighboring router is in effect, that is, neighbor settings have precedence over group settings which have precedence over BGP global settings.info#--------------------------------------------------echo "IP Configuration"#--------------------------------------------------...autonomous-system 200confederation 300 members 200 400 500 600router-id 10.10.10.103#--------------------------------------------------...#--------------------------------------------------echo "BGP Configuration"#--------------------------------------------------bgpgraceful-restartexitcluster 0.0.0.100export "direct2bgp"router-id 10.0.0.12group "To_AS_10000"connect-retry 20hold-time 90keepalive 30local-preference 100remove-privatepeer-as 10000neighbor 10.0.0.8description "To_Router B - EBGP Peer"connect-retry 20hold-time 90keepalive 30local-address 10.0.0.12passivepreference 99peer-as 10000exitexitgroup "To_AS_30000"connect-retry 20hold-time 90keepalive 30local-preference 100remove-privatepeer-as 30000neighbor 10.0.3.10description "To_Router C - EBGP Peer"connect-retry 20hold-time 90keepalive 30peer-as 30000exitexitgroup "To_AS_40000"connect-retry 20hold-time 30keepalive 30local-preference 100peer-as 65206neighbor 10.0.0.15description "To_Router E - Sub Confederation AS 65205"connect-retry 20hold-time 90keepalive 30local-address 10.0.0.12peer-as 65205exitexitexit#--------------------------------------------------....A:ALA-48>config>router#Before BGP can be configured, the autonomous system must be configured first. In BGP, routing reachability information is exchanged between autonomous systems (ASs). An AS is a group of networks that share routing information. The autonomous-system command associates an autonomous system number to the router being configured. The autonomous-system command is configured in the config>router context.Example: config>router# autonomous-system 100ALA-B>config>router# info#------------------------------------------# IP Configuration#------------------------------------------interface "system"address 10.10.10.104/32exitinterface "to-103"address 10.0.0.104/24port 1/1/1exitautonomous-system 100
#------------------------------------------ALA-B>config>router#In BGP, routing information is exchanged between autonomous systems. The BGP router ID, expressed like an IPv4 address, uniquely identifies the router. It can be set to be the same as the system interface address.
• The routed-id configured under config>router>bgp
• The router-id configured under config>routerWhen configuring a new router ID outside of the config>router>bgp context, BGP is not automatically restarted with the new router ID; the next time BGP is (re) initialized the new router ID is used. An interim period of time can occur when different protocols use different router IDs. To force the new router ID, issue the shutdown and no shutdown commands for BGP or restart the entire router. Use the following CLI syntax to configure the router ID for multiple protocols:ALA-B>config>router# info----------------------------------------------# IP Configuration#------------------------------------------interface "system"address 10.10.10.104/32exitinterface "to-103"address 10.0.0.104/24port 1/1/1exitautonomous-system 100router-id 10.10.10.104
#------------------------------------------...ALA-B>config>router#
1.
2. Configure the BGP confederation members using the confederation command in the config>router context.Figure 30: Confederation Network Diagram ExampleThe following configuration displays the minimum BGP configuration for routers in sub-confederation AS 65001 outlined in Figure 31.ALA-Aconfig routerautonomous-system 65001confederation 100 members 65001 65002 65003bgpgroup confed1peer-as 65001neighbor 2.2.2.2exitneighbor 3.3.3.3exitneighbor 4.4.4.4exitexitgroup external_confedneighbor 5.5.5.5peer-as 65002exitneighbor 9.9.9.9peer-as 65003exitexitexitexitALA-Dconfig routerautonomous-system 65001confederation 100 members 65001 65002 65003bgpgroup confed1peer-as 65001neighbor 1.1.1.1exitneighbor 2.2.2.2exitneighbor 3.3.3.3exitexitexitexitROUTER 1config routerautonomous-system 65003confederation 100 members 65001 65002 65003bgpgroup confed1peer-as 65001neighbor 1.1.1.1exitneighbor 5.5.5.5peer-as 65002exitexitexitexitAutonomous systems using route reflection arrange BGP routers into groups called clusters. Each cluster contains at least one route reflector which is responsible for redistributing route updates to all clients. Route reflector clients do not need to maintain a full peering mesh between each other. They only require a peering to the route reflector(s) in their cluster. The route reflectors must maintain a full peering mesh between all non-clients within the AS.Figure 31: Route Reflection Network Diagram ExampleThe following configuration displays the minimum BGP configuration for routers in Cluster 1.1.1.1 outlined in Figure 31.ALA-Aconfig router bgpgroup cluster1peer-as 100cluster 1.1.1.1neighbor 2.2.2.2exitneighbor 3.3.3.3exitneighbor 4.4.4.4exitexitgroup RRspeer-as 100neighbor 5.5.5.5exitneighbor 9.9.9.9exitexitexitALA-Bconfig router bgpgroup cluster1peer-as 100neighbor 1.1.1.1exitexitexitALA-Cconfig router bgpgroup cluster1peer-as 100neighbor 1.1.1.1exitexitexitALA-Dconfig router bgpgroup cluster1peer-as 100neighbor 1.1.1.1exitexitexitALA-B>config>router>bgp# info----------------------------------------------...group "headquarters1"description "HQ execs"local-address 10.0.0.104disable-communities standard extendedttl-security 255exitexit...----------------------------------------------ALA-B>config>router>bgp#ALA-B>config>router>bgp# info----------------------------------------------...group "headquarters1"description "HQ execs"local-address 10.0.0.104disable-communities standard extendedttl-security 255neighbor 10.0.0.5passivepeer-as 300exitneighbor 10.0.0.106peer-as 100exitneighbor 17.5.0.2hold-time 90keepalive 30min-as-origination 15local-preference 170peer-as 10701exitneighbor 17.5.1.2hold-time 90keepalive 30min-as-origination 15local-preference 100min-route-advertisement 30preference 170peer-as 10702exitexit...----------------------------------------------ALA-B>config>router>bgp#Route reflection can be implemented in autonomous systems with a large internal BGP mesh to reduce the number of IBGP sessions required. One or more routers can be selected to act as focal points for internal BGP sessions. Several BGP speaking routers can peer with a route reflector. A route reflector forms peer connections to other route reflectors. A router assumes the role as a route reflector by configuring the cluster cluster-id command. No other command is required unless you want to disable reflection to specific peers.If you configure the cluster command at the global level, then all subordinate groups and neighbors are members of the cluster. The route reflector cluster ID is expressed in dotted decimal notation. The ID should be a significant topology-specific value. No other command is required unless you want to disable reflection to specific peers.If a route reflector client is fully meshed, the disable-client-reflect command can be enabled to stop the route reflector from reflecting redundant route updates to a client.ALA-B>config>router>bgp# info---------------------------------------------cluster 0.0.0.100
group "Santa Clara"
local-address 10.0.0.103
neighbor 10.0.0.91
peer-as 100
exitneighbor 10.0.0.92
peer-as 100
exitneighbor 10.0.0.93
disable-client-reflect
peer-as 100
exitexit---------------------------------------------ALA-B>config>router>bgp#ALA-B>config>router# info#------------------------------------------# IP Configuration#------------------------------------------interface "system"address 10.10.10.103/32exitinterface "to-104"shutdownaddress 10.0.0.103/24port 1/1/1exitautonomous-system 100confederation 1000 members 100 200 300router-id 10.10.10.103#------------------------------------------ALA-B>config>router#Since the AS number is defined in the config>router context, not in the BGP configuration context, the BGP instance is not aware of the change. Re-examine the plan detailing the autonomous sytem(s), the SRs belonging to each group, group names, and peering connections. Changing an AS number on a router could cause configuration inconsistencies if associated peer-as values are not also modified as required. At the group and neighbor levels, BGP will re-establish the peer relationships with all peers in the group with the new AS number.CLI Syntax: config>router# bgpgroup nameExample: config>router# autonomous-system 400
config>router# bgp
config>router>bgp# group headquarters1
config>router>bgp>group# neighbor 10.10.10.103
config>router>bgp>group# peer-as 400
config>router>bgp>group# exitALA-B>config>router>bgp# info detail----------------------------------------------no shutdownno descriptionno always-compare-medibgp-multipath. . .router-id 10.0.0.123----------------------------------------------ALA-B>config>router>bgp#Changing the router ID number in the config>router context causes the new value to overwrite the router ID derive from the system interface address, or the value inherited from the MAC address.When configuring a new router ID, protocols are not automatically restarted with the new router ID. The next time a protocol is (re) initialized the new router ID is used. An interim period of time can occur when different protocols use different router IDs. To force the new router ID, issue the shutdown and no shutdown commands for each protocol that uses the router ID or restart the entire router.CLI Syntax: config>router# router-id router-idExample: config>router# router-id 10.10.10.104
config>router# no shutdown
config>router>bgp# shutdown
config>router>bgp# no shutdownALA-A>config>router# info#------------------------------------------# IP Configuration#------------------------------------------interface "system"address 10.10.10.104/32exitinterface "to-103"address 10.0.0.104/24port 1/1/1exitautonomous-system 100router-id 10.10.10.104
#------------------------------------------ALA-B>config>router#In order to delete a neighbor, you must shut down the neighbor before issuing the no neighbor ip-addr command.CLI Syntax: config>router# bgpgroup nameno neighbor ip-addressExample: config>router# bgp
config>router>bgp# group headquarters1
config>router>bgp>group# neighbor 10.0.0.103
config>router>bgp>group>neighbor# shutdown
config>router>bgp>group>neighbor# exit
config>router>bgp>group# no neighbor 10.0.0.103The following example displays the “headquarters1” configuration with the neighbor 10.0.0.103 removed.ALA-B>config>router>bgp# info----------------------------------------------group "headquarters1"description “HQ execs”local-address 10.0.0.104neighbor 10.0.0.5passivepeer-as 300exitexit----------------------------------------------ALA-B>config>router>bgp#In order to delete a group, the neighbor configurations must be shut down first. After each neighbor is shut down, you must shut down the group before issuing the no group name command.CLI Syntax: config>router# bgpno group nameno neighbor ip-addressExample: config>router# bgp
config>router>bgp# group headquarters1
config>router>bgp>group# neighbor 10.0.0.105