Difference between revisions of "Cisco BGP"

From HackerNet
Jump to: navigation, search
(Created page with "Border Gateway Protocol kommunicerar på TCP port 179. ==States== '''TCP''' ===Idle State=== ConnectRetry timer 120 sekunder ===Connect State=== ===Active State=== BGP spea...")
 
Line 25: Line 25:
 
==Konfiguration==
 
==Konfiguration==
 
  router bgp [ASN]
 
  router bgp [ASN]
!
+
iBGP eller eBGP
 
  neighbor [ip-address] remote-as [ASN]
 
  neighbor [ip-address] remote-as [ASN]
 +
Loopback
 
  neighbor [ip-address] update-source [interface]
 
  neighbor [ip-address] update-source [interface]
 +
eBGP om det ej är directly connected, t.ex. loopback
 
  neighbor [ip-address] ebgp-multihop 2
 
  neighbor [ip-address] ebgp-multihop 2
 
  neighbor [ip-address] next-hop-self
 
  neighbor [ip-address] next-hop-self
  !
+
MD5
  network [ip-address] mask [subnet-mask]
+
  neighbor [ip-address] password cisco
!
+
 
 +
  network [ip-address] mask [subnet-mask]
 +
 
 
  bgp default local-preference 100
 
  bgp default local-preference 100
 
  no synchronization
 
  no synchronization
  
 +
===Show===
 
  show ip bgp summary
 
  show ip bgp summary
 +
show ip bgp neighbor
  
 +
===Reset===
 
  clear ip bgp *
 
  clear ip bgp *

Revision as of 21:44, 16 September 2015

Border Gateway Protocol kommunicerar på TCP port 179.

States

TCP

Idle State

ConnectRetry timer 120 sekunder

Connect State

Active State

BGP speaker försöker nå peer med TCP


BGP

OpenSent State

BGP version, AS number, hold time, BGP ID
Börja skicka keepalives

OpenConfirm State

Established State

Skicka uppdateringar
Neighbor up

Konfiguration

router bgp [ASN]

iBGP eller eBGP

neighbor [ip-address] remote-as [ASN]

Loopback

neighbor [ip-address] update-source [interface]

eBGP om det ej är directly connected, t.ex. loopback

neighbor [ip-address] ebgp-multihop 2
neighbor [ip-address] next-hop-self

MD5

neighbor [ip-address] password cisco 
network [ip-address] mask [subnet-mask]
bgp default local-preference 100
no synchronization

Show

show ip bgp summary
show ip bgp neighbor

Reset

clear ip bgp *