Path Selection
- RIB —— Routing Information Base(Control Plane)
- FIB —— Forwarding Information Base (Data Plane) —— 储存在CEF中
- 路径选择规则
- 最长匹配
- 最小AD 值(不同协议)
- static(1) < eBGP(20) < OSPF(110) < eigrp(170?) < RIP(120) < iBGP(200) < Unknown(255)
- Metric /Cost (同一协议)
Load Balancing
- ECMP : Equal Cost Multi Path
- UECMP : 非等价负载均衡,到dest 的Metric不同,但是也能形成LB,只有EIGRP支持
Recursive Static Route
- 通过B去到A,路由会再继续查到B怎么走
- show ip route destIPAdd
- show ip CEF destIPAdd
Fully Specified Static Route
Floating Static Route
- 通过调整静态路由的AD值,使得动态路由被优先于静态路由被加载
- 路由表补充说明
- 静态路由 metric 固定为0
- traffic share count 标识流量比例
Static Null Route
- Virtual Interface —— Always Up, No IP Address
- 用于防止环路,或者DDOS攻击。不会到CPU处理,直接Drop
- 如何防止环路
R1
ip route 8.8.8.8 255.255.255.255 1.1.1.2
R2
ip route 0.0.0.0 0.0.0.0 1.1.1.1
ip route 8.8.8.8 null0
Check Route Table & CEF
- show ip route
- show ip cef
- show ip cef srcAddr dstAddr
Check Adjacency