Archive

Posts Tagged ‘BGP’

CCIE SP — BGP 13条选路原则

If the next hop is unreachable, do not consider it.
如果下一跳不可达,是不会参加选举的!

1. weight

Prefer the path that has the largest weight.
思科的专有属性。

2. Local Preference

If the routes have the same weight, use the route with the highest local preference.
The local preference attribute only is local to the autonomous system and does not get passed to EBGP neighbors. The higher the local preference, the more preferred the route is.
默认情况下,从EBGP学来的路由local preference是100,解决本AS域出口路由选择。他不会把此参数传递给EBGP的邻居。

3. Originated

If the routes have the same local preference, prefer the route that was originated by BGP on this router.
Read the rest of this entry »

BGP 地址族分析 – Address-family

概念定义:

所谓地址族,就是把ipv4、ipv6和vpnv4分成不同的“块”,对每个“块”单独进行配置,如下所示:

Rack1R3(config-router)#address-family ?
ipv4   Address family
ipv6   Address family
vpnv4  Address family

由于ipv6现在应用较少,所以暂时不予讨论,如果大家配置过MPLS VPN,那么对ipv4和vpnv4这两个地址族应该有些了解。
其实如果不是有特殊应用(MPLS、Ipv6),也不会用到这些地址族的概念,直接默认建立全局BGP邻居及属性就可以了。所以可以理解地址组是BGP的一个扩展。
Read the rest of this entry »

BGP MPLS-VPN的更新以及数据转发的过程

先来阐述一下BGP MPLS-VPN的更新以及数据转发的过程:

CE(R1)—–PE(R2)——P(R3)——–PE(R4)——-CE(R5)

控制平面:r1———–r5

1. CE和PE之间运行普通的路由协议(RIPV2,OSPF,EBGP,ISIS),将私网的路由发送到PE这个时候,PE(R2)发现路由更新是从某个接口发过来的,所以它就找出与该接口所绑定的VRF,针对VRF来给其打上RD和RT标识以及私网标签。然后更改自己的地址(通常是LOOPBACK地址)为下一跳。

2. 然后把更新发送到对端的PE,当然一定要确保到对端的TCP可达,如果不可达的话,那么这个更新信息将被丢弃。然后按照正常的LSP进行转发到PE(R4);如果没有启用MPLS,那么会按照正常的 Read the rest of this entry »