Difference between revisions of "Cisco BGP"
From HackerNet
Helikopter (talk | contribs) |
Helikopter (talk | contribs) |
||
Line 1: | Line 1: | ||
− | Border Gateway Protocol kommunicerar på TCP port 179. | + | Border Gateway Protocol (RFC 4271) är ett path vector routing protokoll. Det kommunicerar på TCP port 179 så routing måste vara på plats, man kan nästan se det som ett L4-protokoll. |
==States== | ==States== | ||
Line 5: | Line 5: | ||
===Idle State=== | ===Idle State=== | ||
ConnectRetry timer 120 sekunder | ConnectRetry timer 120 sekunder | ||
− | |||
− | |||
===Active State=== | ===Active State=== | ||
BGP speaker försöker nå peer med TCP | BGP speaker försöker nå peer med TCP | ||
+ | ===Connect State=== | ||
+ | TCP session established | ||
'''BGP''' | '''BGP''' | ||
Line 18: | Line 18: | ||
===OpenConfirm State=== | ===OpenConfirm State=== | ||
+ | Response recieved | ||
===Established State=== | ===Established State=== | ||
Line 25: | Line 26: | ||
==Konfiguration== | ==Konfiguration== | ||
router bgp [ASN] | router bgp [ASN] | ||
+ | no auto-summary | ||
iBGP eller eBGP | iBGP eller eBGP | ||
neighbor [ip-address] remote-as [ASN] | neighbor [ip-address] remote-as [ASN] | ||
Line 39: | Line 41: | ||
bgp default local-preference 100 | bgp default local-preference 100 | ||
no synchronization | no synchronization | ||
+ | Timers | ||
+ | tim bg 10 30 20 | ||
===Show=== | ===Show=== |
Revision as of 20:51, 16 September 2015
Border Gateway Protocol (RFC 4271) är ett path vector routing protokoll. Det kommunicerar på TCP port 179 så routing måste vara på plats, man kan nästan se det som ett L4-protokoll.
Contents
States
TCP
Idle State
ConnectRetry timer 120 sekunder
Active State
BGP speaker försöker nå peer med TCP
Connect State
TCP session established
BGP
OpenSent State
BGP version, AS number, hold time, BGP ID
Börja skicka keepalives
OpenConfirm State
Response recieved
Established State
Skicka uppdateringar
Neighbor up
Konfiguration
router bgp [ASN] no auto-summary
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
Timers
tim bg 10 30 20
Show
show ip bgp summary show ip bgp neighbor
Reset
clear ip bgp *