
The peer group name is only local to the router it is configured on, it is not passed to any other router.
A peer group is a more efficient way to update BGP than configuration individual neighbors
route reflector ?
If BGP synchronization is turned ON, a prefix learned from IBGP neighbor is valid only if a non-BGP (IGP) route exists for that prefix.
A range of AS number, 64512 through 65535, is reserved for private use, much like the private Internet Protocol (IP) addresses defined in RFC 1918.
bgp建立会话使用的四中消息:
open
keepalive
update
notification
前提:要建立一条TCP连接,TCP连接建立后,发送open,收到open之后每隔60秒,发送keepalive。
open:version number;AS number ;holdtime(2byte字段);router id(建议手动设置);optional paramters
keepalive:通常是holdtime的3分之一,如果holdtime是0,则不发送keepalive
update:network-layer reachability information(网络号);path attributes ;withdrawn routes
notification:运行bgp出错误时,发送此包,包含error code
ebgp对等体必须直连,ibgp可以不直连
ibgp要求所有路由器都运行ibgp,且网络结构是全互联,因为一台路由器在收到一个ibgp邻居的路由更新不会发送给其他邻居。
bgp基础配置:
router bgp as-number
bgp router-id x.x.x.x
no synchronization
no autosum
neighbor x.x.x.x remote-as xx
network x.x.x.x mask mask (x.x.x.x只要存在路由表中,就可通告,不一定是直连的,mask必须与路由表中的mask一致)要通告所有的ibgp网络号
open包中的源ip地址必须与邻居neighbor指的ip地址相同,否则不能形成邻居关系 |
|