04 2022 档案

摘要:OSPF NSSA区域 原理概述 OSPF协议定义了Stub区域和Totally Stub区域这两种特殊的非骨干区域,为的是精简LSDB中LSA的数量,㞱也精简路由表中的路由条目数量, 实现优化设备和网络性能的目的。根据定义,Stub区域和Totally Stub区域中产不允许存在ASBR路由器的。 阅读全文
posted @ 2022-04-29 23:22 bobo哥 阅读(950) 评论(1) 推荐(1) 编辑
摘要:源程序: #include <stdio.h>#include <stdlib.h>typedef struct node{ int data; struct node *next; //定义一个结构体,两部分,一个数据,一个指针}linklist; //主菜单void menu(){ printf 阅读全文
posted @ 2022-04-29 13:59 bobo哥 阅读(79) 评论(0) 推荐(0) 编辑
摘要:网络图: 在R1上查看DR/BDR的选举情况: 在R2上查看DR/BDR的选举情况: 手动改变R1的g0/0/1的优先级,使其值 为 2: 重新启动R1的OSPF进程,再次查看DR和BDR: 修改R2上的g0/0/0的开销值cost值:使其为2000 此时,在R4路由器上跟踪R3: 跟踪结果为数据包 阅读全文
posted @ 2022-04-27 10:14 bobo哥 阅读(446) 评论(0) 推荐(0) 编辑
摘要:一、实验目的: 理解Stub区域和Totally Stub区域的作用与区别 掌握Stub区域和Totally Stub区域的配置方法 二、实验内容: 实验拓扑如下图所示。本实验模拟了一个企业网络场景,R1,R2,R3为公司总部网络的路由器,R4、R5分别为企业分支机构1和分支机构2的路由器,并且都采 阅读全文
posted @ 2022-04-23 19:26 bobo哥 阅读(664) 评论(0) 推荐(0) 编辑
摘要:网络图: 将R5的g0/0/0设置优先及为100,即它是DR 将R2的g0/0/0设置优先及为50,即它是BDR 重启R2的OSPF进程: 同理,R5, R3都重启 在R3上查看邻居状态: R5是DR, R2是BDR 因为DR是抢占式的,所以必须先启动R5, 后启动 R2; 否则R2可能是DR。 查 阅读全文
posted @ 2022-04-21 17:30 bobo哥 阅读(690) 评论(0) 推荐(0) 编辑
摘要:源程序: //编写一个函数print,输出学生的信息,该数组有5个学生的记录,包括://num, sname, score[3],用主函数输入这些记录,用print函数输出这些记录。 #include <stdio.h>#define N 5 //预定义,N代表5个学生 struct student 阅读全文
posted @ 2022-04-21 11:59 bobo哥 阅读(28) 评论(0) 推荐(0) 编辑
摘要:网络图: 查看邻居: 查看LSDB 阅读全文
posted @ 2022-04-15 19:14 bobo哥 阅读(71) 评论(0) 推荐(0) 编辑
摘要:源程序: #include <stdio.h>#include <string.h>#define N 5 struct student //数据类型{ int num; //学号 char sname[25]; //姓名 char sex[4]; //性别 int age; //年龄}; stru 阅读全文
posted @ 2022-04-14 12:36 bobo哥 阅读(1766) 评论(0) 推荐(1) 编辑
摘要:网络图: 配置如下: 阅读全文
posted @ 2022-04-13 14:17 bobo哥 阅读(104) 评论(0) 推荐(0) 编辑
摘要:源程序: #include <iostream>using namespace std;class A{public: virtual void printMe() { cout<<"This is class A printing."<<endl; }} ;class B:public A{pub 阅读全文
posted @ 2022-04-10 10:50 bobo哥 阅读(39) 评论(0) 推荐(0) 编辑
摘要:源程序: #include <iostream>using namespace std; class B;class A{private: int i;public: int set(B&); int get() { return i; } A(int x) { i = x; }}; class B 阅读全文
posted @ 2022-04-10 10:28 bobo哥 阅读(43) 评论(0) 推荐(0) 编辑
摘要:网络图: 作为BGP的路由器是:R13, R14, R22, R31 四个 R11的配置: R13的配置: R14的配置: R22的配置: R31的配置: R24的配置: R33的配置: 电脑ping通情况: 抓包: 阅读全文
posted @ 2022-04-05 21:26 bobo哥 阅读(102) 评论(0) 推荐(0) 编辑
摘要:源程序: #include <stdio.h>#include <string.h>#include <stdlib.h> #define LINEMAX 20 /*定义字符串的最大长度*/ void sort(char** p) /*冒泡法对5个字符串排序函数*/{ int i, j; char 阅读全文
posted @ 2022-04-05 15:46 bobo哥 阅读(925) 评论(0) 推荐(0) 编辑
摘要:源程序: #include <stdio.h>#include <stdlib.h> //输出4个学生5门课程void print(int m[4][5]){ int i, j; for (i = 0; i < 4; i++) { for (j = 0; j < 5; j++) { printf(" 阅读全文
posted @ 2022-04-02 23:34 bobo哥 阅读(391) 评论(0) 推荐(0) 编辑
摘要:源程序: #include <stdio.h> #include <stdlib.h> //在此处定义函数1. //在此处定义函数2. //在此处定义函数3. //在此处定义函数4. //菜单 void menu() { printf("\n***************************** 阅读全文
posted @ 2022-04-02 17:31 bobo哥 阅读(692) 评论(0) 推荐(0) 编辑
摘要:某一个班级有4名学生,每个学生有5门课程。分别编写3个函数实现如下要求: (1)求第一门课程的平均分; (2)找出有两门以上课程不及格的学生,输出他们的学号和全部课程成绩及平均成绩; (3)找出平均成绩在90分以上或全部课程成绩在85分以上的学生; 源代码: #include <stdio.h> / 阅读全文
posted @ 2022-04-01 23:06 bobo哥 阅读(123) 评论(0) 推荐(0) 编辑