User Tools

Site Tools


bgp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
bgp [2023/04/29 13:06] – created andybbgp [2023/04/30 20:03] (current) andyb
Line 1: Line 1:
-show ip bgp vpnv4 vrf [vrf name] summary +||show run %%|%% begin bgp|| 
  
- +||show ip bgp||Shows BGP table|| 
  
-show ip bgp vpnv4 vrf [vrf name] neighbors [neighbor IP] routes  +||sho ip bgp summary|| 
  
- +||sho ip bgp all sum %%|%% i //<IP ADDRESS>//||  
  
-show ip bgp vpnv4 vrf [vrf name] neighbors [neighbor IP] received-routes  +||show bgp ipv4 unicast summary|| 
  
- +||show bgp vpnv4 unicast all summary|| 
  
-show ip bgp vpnv4 vrf [vrf name] neighbors [neighbor IP] advertised-routes +||show bgp vpnv4 unicast all|| 
  
- +||show bgp vpnv4 unicast rd //<route distinguisher%%/%%prefix>// ||
  
-show run begin bgp +||show bgp ipv6 unicast //<ipv6 address>// ||
  
- +||clear ip bgp *|| To reset bgp sessions – for lab sims...i.e. don't do this in production environment!|| 
  
-show bgp ipv4 unicast summary +||show ip bgp vpnv4 vrf //<VRF NAME>// summary|| 
  
 +||show ip bgp neighbors //<NEIGHBOR IP>//||
    
 +||show ip bgp vpnv4 vrf //<VRF NAME>// neighbors //<NEIGHBOR IP>// routes||  
  
-show bgp vpnv4 unicast all summary +||show ip bgp vpnv4 vrf //<VRF NAME>// neighbors //<NEIGHBOR IP>// received-routes||   
 + 
 +||show ip bgp vpnv4 vrf //<VRF NAME>// neighbors //<NEIGHBOR IP>// advertised-routes||  
  
    
 +**IOS XR** 
  
-show bgp vpnv4 unicast all +||show bgp vrf //<VRF NAME>// summary|| 
  
- +||show bgp vrf //<VRF NAME>// neighbor //<NEIGHBOR IP>// routes||
  
-show bgp vpnv4 unicast rd [route distinguisher –spaceprefix] +||show bgp vrf //<VRF NAME>// neighbor //<NEIGHBOR IP>// advertised-routes|| 
  
-  
  
-show bgp ipv6 unicast [ipv6 address] +**BGP Local-AS**
  
- +Let’s assume a member would like to use BGP as number 65111 which is already in use by a different member.  In this case Deutsche Boerse will assign a free AS number to that member (in our example 65200) If the member is not willing to use the free AS number he has to use bgp local-as, no-prepend and replace-as. 
  
-clear ip bgp * [to reset bgp sessions – for lab sims...i.e. don't do this in production environment] +BGP  “local-as” only 
  
- +The configuration will look like this: 
  
-sho ip bgp summary +TF-RMIL0115 (AP POP router) 
  
- +  
  
-show ip bgp neighbors [neighbor address] +router bgp 12625 
  
- +
  
-show ip bgp [shows bgp table] +address-family ipv4 vrf M_65200 
  
- +neighbor 10.20.100.38 remote-as 65200 
  
-sho ip bgp all sum | I  +neighbor 10.20.100.38 activate 
  
- +neighbor 10.20.100.38 prefix-list trading_networks_A out 
  
- +neighbor 10.20.100.38 route-map trading_member_in in 
  
-   IOS XR +neighbor 10.20.100.38 maximum-prefix 20 
  
- +
  
-show bgp vrf [vrf name] summary +  
  
- +R004446 (member router) 
  
-show bgp vrf [vrf name] neighbor [neighbor IP] routes +  
  
- +router bgp 65111 
  
-show bgp vrf [vrf name] neighbor [neighbor IP] advertised-routes +address-family ipv4 vrf M_65111  
 + 
 +neighbor 10.20.100.37 remote-as 12625  
 + 
 +neighbor 10.20.100.37 local-as 65200  
 + 
 +   
 + 
 +   
 + 
 +The “Local-as” and “real” as numbers are visible within the AS PATH. The BGP tables will look like this:  
 + 
 +   
 + 
 +TF-R004446#sh ip bgp vpnv4 vrf M_65111  
 + 
 +||Network||          ||Next Hop||            ||Metric|| ||LocPrf|| ||Weight|| ||Path||  
 + 
 +||*>|||| 90.203.102.0/24|| || 0.0.0.0||                  ||0 ||        ||32768|||| i || 
 + 
 +||*||||  193.29.91.64/27||  ||10.20.100.37 ||            ||0|| ||65200|| ||12625|||| i || 
 + 
 +   
 + 
 +   
 + 
 +TF-RMIL0115#sh ip bgp vpnv4 vrf M_65200  
 + 
 +||Network||          ||Next Hop||            ||Metric|||| LocPrf|| ||Weight|| ||Path||  
 + 
 +||*>|| ||90.203.102.0/24||  ||10.20.100.38||            || 0||             ||0 ||||65200|| ||65111|| ||i||  
 + 
 +||*>||||i||||193.29.91.64/27|| || 10.79.1.15||              || 0||   || 100||     || 0|||| i||  
 + 
 +   
 + 
 +   
 + 
 +BGP  “local-as” + “no-prepend”  
 + 
 +The configuration on the POP router will not change. The configuration on the member router will look like this:  
 + 
 +TF-R004446#  
 + 
 +router bgp 65111  
 + 
 +address-family ipv4 vrf M_65111  
 + 
 +neighbor 10.20.100.37 remote-as 12625  
 + 
 +neighbor 10.20.100.37 local-as 65200 no-prepend  
 + 
 +   
 + 
 +The local as number on member end will disappear from the AS PATH. The BGP table will look like this:  
 + 
 +    
 + 
 +TF-R004446#sh ip bgp vpnv4 vrf M_65111  
 + 
 +||Network||          ||Next Hop||            ||Metric|| ||LocPrf|||| Weight|| ||Path || 
 + 
 +||*> || ||90.203.102.0/24||  ||0.0.0.0||                 || 0 ||        ||32768 || ||i||  
 + 
 +||*||  ||193.29.91.64/27||  ||10.20.100.37 ||                         || 0|| ||12625|| || i || 
 + 
 +   
 + 
 +   
 + 
 +TF-RMIL0115#sh ip bgp vpnv4 vrf M_65200  
 + 
 +||Network||         || Next Hop ||           ||Metric||  ||LocPrf|| ||Weight|| ||Path||  
 + 
 +||*>|| ||90.203.102.0/24||  ||10.20.100.38||            ||0 ||           || 0|| ||65200|| ||65111|| ||i||  
 + 
 +||*>|| ||i|| ||193.29.91.64/27||  ||10.79.1.15||               ||0 ||   ||100 ||     ||0|| ||i||  
 + 
 +   
 + 
 +   
 + 
 +BGP  “local-as” + “no-prepend” + “replace-as”  
 + 
 +The configuration on the POP router will not change. The configuration on the member router will look like this:  
 + 
 +TF-R004446#  
 + 
 +router bgp 65111  
 + 
 +address-family ipv4 vrf M_65111  
 + 
 +neighbor 10.20.100.37 remote-as 12625  
 + 
 +neighbor 10.20.100.37 local-as 65200 no-prepend replace-as  
 + 
 +   
 + 
 +The members “real” as number on the POP router will disappear. The BGP tables will look like this:  
 + 
 +TF-R004446#sh ip bgp vpnv4 vrf M_65111  
 + 
 +||Network||          ||Next Hop||            ||Metric|| ||LocPrf|| ||Weight|| ||Path||  
 + 
 +||*>|| ||90.203.102.0/24||  ||0.0.0.0||                || 0 ||        ||32768|| ||i||  
 + 
 +||*|| || 193.29.91.64/27||  ||10.20.100.37||                           ||0|| ||12625|| ||i||  
 + 
 +   
 + 
 +TF-RMIL0115#sh ip bgp vpnv4 vrf M_65200  
 + 
 +||Network||         || Next Hop ||           ||Metric|| ||LocPrf|| ||Weight|| ||Path||  
 + 
 +||*>|| ||90.203.102.0/24||  ||10.20.100.38||            || 0 ||           || 0|| ||65200|| ||i||  
 + 
 +||*>|| ||i|| ||193.29.91.64/27||  ||10.79.1.15||              || 0  || || 100 ||    || 0|| ||i || 
 + 
 + 
bgp.1682795217.txt.gz · Last modified: 2023/04/29 13:06 by andyb

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki