bgp
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
bgp [2023/04/29 13:06] – created andyb | bgp [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%%/ | |
- | 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 | + | ||show ip bgp vpnv4 vrf //<VRF NAME>// |
+ | ||show ip bgp neighbors //< | ||
+ | ||show ip bgp vpnv4 vrf //<VRF NAME>// neighbors //< | ||
- | show bgp vpnv4 unicast all summary | + | ||show ip bgp vpnv4 vrf //<VRF NAME>// neighbors //< |
+ | |||
+ | ||show ip bgp vpnv4 vrf //<VRF NAME>// neighbors //< | ||
+ | **IOS XR** | ||
- | show bgp vpnv4 unicast all | + | ||show bgp vrf //<VRF NAME>// summary|| |
- | + | ||show bgp vrf //<VRF NAME>// neighbor //< | |
- | show bgp vpnv4 unicast rd [route distinguisher –space- prefix] | + | ||show bgp vrf //<VRF NAME>// neighbor //< |
- | |||
- | 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. | |
- | 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 |
- | + | ! | |
- | 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 | + | 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# | ||
+ | |||
+ | ||Network|| | ||
+ | |||
+ | ||*>|||| 90.203.102.0/ | ||
+ | |||
+ | ||*|||| | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | TF-RMIL0115# | ||
+ | |||
+ | ||Network|| | ||
+ | |||
+ | ||*>|| ||90.203.102.0/ | ||
+ | |||
+ | ||*> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | 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 | ||
+ | |||
+ | neighbor | ||
+ | |||
+ | |||
+ | |||
+ | The local as number on member end will disappear from the AS PATH. The BGP table will look like this: | ||
+ | |||
+ | |||
+ | |||
+ | TF-R004446# | ||
+ | |||
+ | ||Network|| | ||
+ | |||
+ | ||*> || ||90.203.102.0/ | ||
+ | |||
+ | ||*|| ||193.29.91.64/ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | TF-RMIL0115# | ||
+ | |||
+ | ||Network|| | ||
+ | |||
+ | ||*>|| ||90.203.102.0/ | ||
+ | |||
+ | ||*>|| ||i|| ||193.29.91.64/ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | 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# | ||
+ | |||
+ | ||Network|| | ||
+ | |||
+ | ||*>|| ||90.203.102.0/ | ||
+ | |||
+ | ||*|| || 193.29.91.64/ | ||
+ | |||
+ | |||
+ | |||
+ | TF-RMIL0115# | ||
+ | |||
+ | ||Network|| | ||
+ | |||
+ | ||*>|| ||90.203.102.0/ | ||
+ | |||
+ | ||*>|| ||i|| ||193.29.91.64/ | ||
+ | |||
+ |
bgp.1682795217.txt.gz · Last modified: 2023/04/29 13:06 by andyb