Professional Documents
Culture Documents
Alu 7750 BGP PDF
Alu 7750 BGP PDF
http://gembuls.wordpress.com 2
R1:
A:R1# configure router interface “system”
A:R1>config>router>if# address 1.1.1.1/32
A:R1>config>router>if# no shutdown
R3:
A:R3# configure router interface “system”
A:R3>config>router>if# address 3.3.3.3/32
A:R3>config>router>if# no shutdown
R2:
A:R2# configure router autonomous-system 12345
http://gembuls.wordpress.com 4
Configuring BGP
R1:
A:R1# configure router bgp group “IBGP”
A:R1>config>router>bgp>group# description “Internal-BGP”
A:R1>config>router>bgp>group# neighbor 172.16.1.2
A:R1>config>router>bgp>group>neighbor# peer-as 12345
A:R1>config>router>bgp>group>neighbor# local-as 12345
A:R1>config>router>bgp>group>neighbor# type internal
A:R1>config>router>bgp>group>neighbor# family ipv4
A:R1>config>router>bgp>group>neighbor# next-hop-self
R3:
A:R3# configure router bgp group “IBGP”
A:R3>config>router>bgp>group# description “Internal-BGP”
A:R3>config>router>bgp>group# neighbor 172.16.1.2
A:R3>config>router>bgp>group>neighbor# peer-as 12345
A:R3>config>router>bgp>group>neighbor# local-as 12345
A:R3>config>router>bgp>group>neighbor# type internal
A:R3>config>router>bgp>group>neighbor# family ipv4
A:R3>config>router>bgp>group>neighbor# next-hop-self
Sample Output:
A:R1# show router bgp summary
============================================================================
BGP Router ID:1.1.1.1 AS:12345 Local AS:12345
============================================================================
BGP Admin State : Up BGP Oper State : Up
Total Peer Groups : 2 Total Peers : 2
Total BGP Paths : 68881 Total Path Memory : 11616056
Total IPv4 Remote Rts : 387104 Total IPv4 Rem. Active Rts : 387104
Total IPv6 Remote Rts : 0 Total IPv6 Rem. Active Rts : 0
Total Supressed Rts : 0 Total Hist. Rts : 0
Total Decay Rts : 0
http://gembuls.wordpress.com 7
Total VPN Peer Groups : 0 Total VPN Peers : 0
Total VPN Local Rts : 0
Total VPN-IPv4 Rem. Rts : 0 Total VPN-IPv4 Rem. Act. Rts: 0
Total VPN-IPv6 Rem. Rts : 0 Total VPN-IPv6 Rem. Act. Rts: 0
Total L2-VPN Rem. Rts : 0 Total L2VPN Rem. Act. Rts : 0
Total VPN Supp. Rts : 0 Total VPN Hist. Rts : 0
Total VPN Decay Rts : 0
Total MVPN-IPv4 Rem Rts : 0 Total MVPN-IPv4 Rem Act Rts : 0
Total MDT-SAFI Rem Rts : 0 Total MDT-SAFI Rem Act Rts : 0
===========================================================================
BGP Summary
===========================================================================
Neighbor
AS PktRcvd InQ Up/Down State|Rcv/Act/Sent (Addr Family)
PktSent OutQ
---------------------------------------------------------------------------
101.101.101.2
12345 102955 0 17d22h13m 1/1/387103 (IPv4)
2995299 0
202.202.202.1
54321 3622510 0 35d13h16m 387103/387103/16 (IPv4)
103119 0
============================================================================
A:R1# show router bgp neighbor
============================================================================
BGP Neighbor
============================================================================
----------------------------------------------------------------------------
Peer : 172.16.1.2
Group : ibgp
----------------------------------------------------------------------------
Peer AS : 12345 Peer Port : 50867
Peer Address : 172.16.1.2
Local AS : 54321 Local Port : 179
Local Address : 172.16.1.1
Peer Type : Internal
State : Established Last State : Established
Last Event : recvKeepAlive
Last Error : Cease
Local Family : IPv4
Remote Family : IPv4
Hold Time : 90 Keep Alive : 30
Active Hold Time : 90 Active Keep Alive : 30
Cluster Id : None
Preference : 170 Num of Update Flaps : 211
Recd. Paths : 17
IPv4 Recd. Prefixes : 1 IPv4 Active Prefixes : 1
IPv4 Suppressed Pfxs : 0 VPN-IPv4 Suppr. Pfxs : 0
VPN-IPv4 Recd. Pfxs : 0 VPN-IPv4 Active Pfxs : 0
http://gembuls.wordpress.com 8
Mc IPv4 Recd. Pfxs. : 0 Mc IPv4 Active Pfxs. : 0
Mc IPv4 Suppr. Pfxs : 0 IPv6 Suppressed Pfxs : 0
IPv6 Recd. Prefixes : 0 IPv6 Active Prefixes : 0
VPN-IPv6 Recd. Pfxs : 0 VPN-IPv6 Active Pfxs : 0
VPN-IPv6 Suppr. Pfxs : 0 L2-VPN Suppr. Pfxs : 0
L2-VPN Recd. Pfxs : 0 L2-VPN Active Pfxs : 0
MVPN-IPv4 Suppr. Pfxs: 0 MVPN-IPv4 Recd. Pfxs : 0
MVPN-IPv4 Active Pfxs: 0 MDT-SAFI Suppr. Pfxs : 0
MDT-SAFI Recd. Pfxs : 0 MDT-SAFI Active Pfxs : 0
Input Queue : 0 Output Queue : 0
i/p Messages : 102967 o/p Messages : 2995531
i/p Octets : 996432 o/p Octets : 149572028
i/p Updates : 498 o/p Updates : 2893036
TTL Security : Disabled Min TTL Value : n/a
Graceful Restart : Disabled Stale Routes Time : n/a
Advertise Inactive : Disabled Peer Tracking : Disabled
Advertise Label : None
Auth key chain : n/a
Bfd Enabled : Disabled L2 VPN Cisco Interop : Disabled
Local Capability : RtRefresh MPBGP 4byte ASN
Remote Capability : RtRefresh MPBGP 4byte ASN
Import Policy : None Specified / Inherited
Export Policy : None Specified / Inherited
----------------------------------------------------------------------------
Peer : 10.100.10.1
Group : ebgp
----------------------------------------------------------------------------
Peer AS : 54321 Peer Port : 179
Peer Address : 202.202.202.1
Local AS : 12345 Local Port : 50316
Local Address : 202.202.202.2
Peer Type : External
State : Established Last State : Active
Last Event : recvKeepAlive
Last Error : Cease
Local Family : IPv4 VPN-IPv4
Remote Family : IPv4
Hold Time : 90 Keep Alive : 30
Active Hold Time : 90 Active Keep Alive : 30
Cluster Id : None
Preference : 170 Num of Update Flaps : 9460526
Recd. Paths : 2512764
IPv4 Recd. Prefixes : 387067 IPv4 Active Prefixes : 387067
IPv4 Suppressed Pfxs : 0 VPN-IPv4 Suppr. Pfxs : 0
VPN-IPv4 Recd. Pfxs : 0 VPN-IPv4 Active Pfxs : 0
Mc IPv4 Recd. Pfxs. : 0 Mc IPv4 Active Pfxs. : 0
Mc IPv4 Suppr. Pfxs : 0 IPv6 Suppressed Pfxs : 0
IPv6 Recd. Prefixes : 0 IPv6 Active Prefixes : 0
VPN-IPv6 Recd. Pfxs : 0 VPN-IPv6 Active Pfxs : 0
http://gembuls.wordpress.com 9
VPN-IPv6 Suppr. Pfxs : 0 L2-VPN Suppr. Pfxs : 0
L2-VPN Recd. Pfxs : 0 L2-VPN Active Pfxs : 0
MVPN-IPv4 Suppr. Pfxs: 0 MVPN-IPv4 Recd. Pfxs : 0
MVPN-IPv4 Active Pfxs: 0 MDT-SAFI Suppr. Pfxs : 0
MDT-SAFI Recd. Pfxs : 0 MDT-SAFI Active Pfxs : 0
Input Queue : 0 Output Queue : 0
i/p Messages : 3622840 o/p Messages : 103132
i/p Octets : 352757880 o/p Octets : 1968148
i/p Updates : 3511304 o/p Updates : 425
TTL Security : Disabled Min TTL Value : n/a
Graceful Restart : Disabled Stale Routes Time : n/a
Advertise Inactive : Disabled Peer Tracking : Disabled
Advertise Label : None
Auth key chain : n/a
Bfd Enabled : Disabled L2 VPN Cisco Interop : Disabled
Local Capability : RtRefresh MPBGP 4byte ASN
Remote Capability : RtRefresh MPBGP 4byte ASN
Import Policy : None Specified / Inherited
Export Policy : test
----------------------------------------------------------------------------
Neighbors : 2
============================================================================
http://gembuls.wordpress.com 10