Cisco BGP

From HackerNet
Jump to: navigation, search

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 *