40 likes | 137 Views
Configure BGP, Define Peer. BXR_Pgh:BXR_Pgh:routing ip bgp-> modify Usage: [[-adminstatus] (enabled|disabled)] Administrative Status [[-localAS] (1..65535)] Local AS Number : BXR_Pgh:routing ip bgp-> peer BXR_Pgh:routing ip bgp peer-> new Usage:
E N D
Configure BGP, Define Peer BXR_Pgh:BXR_Pgh:routing ip bgp-> modify Usage: [[-adminstatus] (enabled|disabled)] Administrative Status [[-localAS] (1..65535)] Local AS Number : BXR_Pgh:routing ip bgp-> peer BXR_Pgh:routing ip bgp peer-> new Usage: [-peerAddr] <IP Address> Peer IP Address [-peerAS] (1..65535) Peer AS number [[-adminstatus] (enabled|disabled)] Administrative Status (default: enabled) [[-localAddr] <IP Address>] Local IP Address : BXR_Pgh:routing ip bgp peer-> new -peerAddr 1.1.1.2 -peerAS 150 -adminstatus enabled -localAddr 1.1.1.1 BXR_Pgh:routing ip bgp peer-> show PeerAddr PeerAS PeerType AdminStatus PeerState OperStatus ----------------- --------- ----------- ------------ ------------- ---------- 1.1.1.2 150 Ext enabled established up
BGP Display BXR_Pgh:routing ip bgp-> show Router Id : 10.10.91.23 Local AS Number : 100 Confederation Id <none OR (1..65535)> : none Cluster Id <none OR IP-Address OR (1..4294967295)> : none Administrative Status : enabled Operational Status : up Always Compare MED : no Never use MED in decision process : no Start Time : WED DEC 18 11:36:44 2003 Total Path Attribute : 0 Total Enabled Peer(s) : 1 Total Disabled Peer(s) : 0 Total Established Peer(s) : 1 Total Peer(s) In Bringup : 0 Max Peer(s) In Bringup : 0 Total Peer(s) In Bringdown : 0 Total Configured Peer(s) : 1 Internal Hold : 0 Total Route Count : 0 Suppress Intra-Cluster Reflection : no
Route Export Example BXR_Pgh:routing ip bgp-> rpcl (routing ip policy rpcl) Entering the RPCL interpreter shell Type 'exit' to return to AMI BXR_Pgh:RPCL% table insert export-direct-bgp {to any announce any} 10 BXR_Pgh:RPCL% table BXR_Pgh:RPCL% changes commit BXR_Pgh:RPCL% table export-direct-bgp { 10 : on-the-fly { 10: to any-peer announce any } } ==================== BXR_Pgh:RPCL% save rpcl.cfg BXR_Pgh:RPCL% exit Any direct routes will be given to BGP, including new or changed direct routes. Any instance of BGP will receive these advertised prefixes.
View from BGP Peer BXR_Atlanta:routing ip bgp-> pathAttr Prefix Peer Next Hop Best AS Path --------------------- ---------------- ---------------- ---- ------------------ 5.2.2.2 /32 1.1.1.1 1.1.1.1 yes [100] 10.10.0.0 /16 1.1.1.1 1.1.1.1 yes [100] 11.11.11.0 /24 1.1.1.1 1.1.1.1 yes [100] 11.11.11.11 /32 1.1.1.1 1.1.1.1 yes [100] 11.11.12.0 /24 1.1.1.1 1.1.1.1 yes [100] 11.11.12.11 /32 1.1.1.1 1.1.1.1 yes [100] 110.110.120.0 /24 1.1.1.1 1.1.1.1 yes [100] 110.110.120.110 /32 1.1.1.1 1.1.1.1 yes [100] BXR_Atlanta:routing ip bgp-> rout Policy/ Damp Local Prefix NextHop NH-State State Proto Pref MED ------------------ --------------- ------------- ---------- ------ ----- ---- 5.2.2.2 /32 1.1.1.1 ResolvedNoLsp UnDamped EBGP 100 0 10.10.0.0 /16 1.1.1.1 ResolvedNoLsp UnDamped EBGP 100 0 11.11.11.0 /24 1.1.1.1 ResolvedNoLsp UnDamped EBGP 100 0 11.11.11.11 /32 1.1.1.1 ResolvedNoLsp UnDamped EBGP 100 0 11.11.12.0 /24 1.1.1.1 ResolvedNoLsp UnDamped EBGP 100 0 11.11.12.11 /32 1.1.1.1 ResolvedNoLsp UnDamped EBGP 100 0 110.110.120.0 /24 1.1.1.1 ResolvedNoLsp UnDamped EBGP 100 0 110.110.120.110/32 1.1.1.1 ResolvedNoLsp UnDamped EBGP 100 0