- Idle:
- Trying to initiate a TCP connection and listening for TCP connections from peers
- Admin disabled (neighbor shutdown)
- Router is waiting before next retry
- Connect: BGP initiates the TCP 3-way handshake.
- If successful, send Open msg and change to OpenSent.
- If failed, reset the ConnectRetryTimer and move to active state.
- Active: Trying to establish TCP connection; no BGP messages yet sent
- OpenSent: TCP connection exists and this router has sent the first message to establish the BGP neighbor relationship
- OpenConfirm: TCP connection exists, other router has received an Open message but may still reject the relationship
- Established: After receiving a a keepalive message from peer, the routers are neighbors and can exchange update messages
Do this if you want to advertise a larger prefix than what is in the routing table.
ip route <classful network> <mask> null0
router bgp <asn>
bgp router-id <rid>
neighbor <ip addr> remote-as <asn> !-- define a BGP neighbor and its ASN
neighbor <ip addr> shutdown !-- suspend neighborship w/o deleting it
no neighbor <ip addr> shutdown !-- resume neighborship w/o deleting it
network <ip addr> [mask <mask>] !-- route to share. Must be in routing table
-
Configure loopback interface on each router
-
Tell BGP on each router to use the loopback IP address as the source
-
Configure the BGP neighbor command on each router to refer to the other router's loopback IP address
-
Make sure each router has IP routes to the neighbor's loopback interface
-
Configure eBGP multihop
neighbor <neighbor-ip> update-source <loopback if id> neighbor 100.1.1.2 update-source loopback 1 neighbor <neighbor's loopback ip addr> remote-as <asn> neighbor <neighbor ip addr> ebgp-multihop <hops>
show tcp brief !-- TCP connex at this router incl. BGP
show tcp summary !-- a line of info for each TCP connex
show ip bgp !-- BGP table
show ip bgp summary !-- basic config for local RT; 1 ln per BGP peer
show ip bgp neighbors <addr> !-- detailed info about neighbor state
show ip bgp neighbors <addr> received-routes