路由故障:配置問(wèn)題導(dǎo)致城域網(wǎng)出口流量不均
路由配置問(wèn)題導(dǎo)致城域網(wǎng)出口流量不均的解決辦法如下:
網(wǎng)絡(luò)環(huán)境
在網(wǎng)絡(luò)中,從路由器RouterA和Routerstrong回程流量偏向一邊。
負(fù)載分擔(dān)組網(wǎng)圖
故障分析
因?yàn)榛爻塘髁科蛞贿?,首先考慮strongGP屬性MED值。查看RouterC和RouterD發(fā)向NET網(wǎng)絡(luò)的MED值發(fā)現(xiàn),RouterC發(fā)給EstrongGP鄰居RouterA的MED為1,而RouterD發(fā)給EstrongGP鄰居Routerstrong的MED為0,故導(dǎo)致回程流量偏向RouterD。
操作步驟
步驟 1查看RouterC的路由信息,RouterC上配置了很多靜態(tài)黑洞路由:
- ip route-static 222.184.2.0 255.255.255.0 NULL0 preference 180
- ip route-static 222.184.3.0 255.255.255.0 NULL0 preference 180
- ip route-static 222.184.4.0 255.255.252.0 NULL0 preference 180
- ip route-static 222.184.8.0 255.255.252.0 NULL0 preference 180
- ip route-static 222.184.12.0 255.255.252.0 NULL0 preference 180
步驟 2發(fā)給鄰居的MED值是通過(guò)本路由表中路由的COST值映射得到,默認(rèn)MED為0,但因?yàn)榕渲玫撵o態(tài)路由優(yōu)先級(jí)是180,大于OSPF外部路由,此時(shí)會(huì)優(yōu)選通過(guò)RouterD學(xué)到的OSPF外部路由,但此時(shí)的COST值會(huì)加1,導(dǎo)致發(fā)給RouterA的MED值為1?;謴?fù)默認(rèn)的英臺(tái)路由的優(yōu)先級(jí)為60后,故障排除。
----結(jié)束
案例總結(jié)
流量不均衡的問(wèn)題出現(xiàn)時(shí)要首先考慮路由協(xié)議的屬性。
【編輯推薦】