摘要: 原理概述: 当一台BGP路由器中存在多条去往同一目标网络的BGP路由时,BGP协议会对这些BGP路由的属性进行比较,以确定去往该目标的最优BGP路由。BGP首先比较的是路由信息 的首选值(PreVal),如果PreVal相同,就会比较本地优先级(Local Preference,缩写为LocPrf) 阅读全文
posted @ 2022-05-12 15:12 bobo哥 阅读(2176) 评论(0) 推荐(0)
摘要: 源文件: #include <stdio.h>#include <stdlib.h>#include <string.h> //写函数 void writetext(FILE *fw){ char str[80]; gets(str); while(strcmp(str,"-1")!=0) { fp 阅读全文
posted @ 2022-05-12 10:08 bobo哥 阅读(84) 评论(0) 推荐(0)