当前位置:网站首页>多点双向重发布和路由策略
多点双向重发布和路由策略
2022-07-27 10:03:00 【aweike】
实验要求:

1、使用双点双向重发布
2、所有路由器进行最佳选路
3、存在路由备份,不得出现环路和路由回馈
4、R1除本身环回外,外加几条环回
172.16.1.0/24 deny
172.16.2.0/24 type 1
172.16.3.0/24 cost 6
172.16.4.0/24 type 1 cost 9
更改如上参数
实验步骤:
1.IP地址的规划和拓扑结构的搭建

2.IP地址的配置
R1:
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]ip address 1.1.1.1 24
[r1-GigabitEthernet0/0/0]interface g0/0/1
[r1-GigabitEthernet0/0/1]ip address 3.3.3.1 24
[r1-GigabitEthernet0/0/1]q
[r1]interface LoopBack 0
[r1-LoopBack0]ip address 192.168.1.1 24
[r1-LoopBack0]interface LoopBack 1
[r1-LoopBack1]ip address 172.16.1.1 24
[r1-LoopBack1]interface LoopBack 2
[r1-LoopBack2]ip address 172.16.2.1 24
[r1-LoopBack2]interface LoopBack 3
[r1-LoopBack3]ip address 172.16.3.1 24
[r1-LoopBack3]interface LoopBack 4
[r1-LoopBack4]ip address 172.16.4.1 24R2:
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]ip address 2.2.2.2 24
[r2-GigabitEthernet0/0/0]interface g0/0/1
[r2-GigabitEthernet0/0/1]ip address 1.1.1.2 24
[r2-GigabitEthernet0/0/1]q
[r2]interface LoopBack 0
[r2-LoopBack0]ip address 192.16.2.1 24
R3:
[r3]interface g0/0/1
[r3-GigabitEthernet0/0/1]ip address 2.2.2.1 24
[r3-GigabitEthernet0/0/1]interface g0/0/0
[r3-GigabitEthernet0/0/0]ip address 4.4.4.1 24
[r3-GigabitEthernet0/0/0]q
[r3]interface LoopBack 0
[r3-LoopBack0]ip address 192.168.3.1 24
R4:
[r4]interface g0/0/0
[r4-GigabitEthernet0/0/0]ip address 3.3.3.2 24
[r4-GigabitEthernet0/0/0]interface g0/0/1
[r4-GigabitEthernet0/0/1]ip address 4.4.4.2 24
[r4-GigabitEthernet0/0/1]q
[r4]interface LoopBack 0
[r4-LoopBack0]ip address 192.168.4.1 24
3.RIP和OSPF的配置
R1:
[r1]rip 1
[r1-rip-1]version 2
[r1-rip-1]network 1.0.0.0
[r1-rip-1]network 3.0.0.0
[r1-rip-1]network 192.168.1.0
[r1-rip-1]network 172.16.0.0R2:
[r2]rip 1
[r2-rip-1]version 2
[r2-rip-1]network 1.0.0.0
[r2-rip-1]network 192.168.2.0
[r2-rip-1]q
[r2]ospf 1 router-id 2.2.2.2
[r2-ospf-1]area 0
[r2-ospf-1-area-0.0.0.0]network 2.2.2.0 0.0.0.255R3:
[r3]ospf 1 router-id 3.3.3.3
[r3-ospf-1]area 0
[r3-ospf-1-area-0.0.0.0]network 2.2.2.0 0.0.0.255
[r3-ospf-1-area-0.0.0.0]network 192.168.3.0 0.0.0.255
[r3-ospf-1-area-0.0.0.0]network 4.4.4.0 0.0.0.255R4:
[r4]rip 1
[r4-rip-1]version 2
[r4-rip-1]network 3.0.0.0
[r4-rip-1]q
[r4]ospf 1 router-id 4.4.4.4
[r4-ospf-1]area 0
[r4-ospf-1-area-0.0.0.0]network 192.168.4.0 0.0.0.255
[r4-ospf-1-area-0.0.0.0]network 4.4.4.0 0.0.0.2554.多点双向重发布
R2:
[r2]rip 1
[r2-rip-1]import-route ospf 1
[r2-rip-1]q
[r2]ospf 1
[r2-ospf-1]import-route rip 1
[r2-ospf-1]R4:
[r4]rip 1
[r4-rip-1]import-route ospf 1
[r4-rip-1]q
[r4]ospf 1
[r4-ospf-1]import-route rip 1
[r4-ospf-1]qospf协议传递本地环回接口网段时,为32位主机路由;但若将本地环回通过重发布导入其他路由时,基于本地路由表中的直连路由进行;若本地直连路由为其他长度掩码,将使得该网络出现两条掩码不同的路由来在整个网路传递;
解决:1)环回接口配置32位掩码ip地址 2)修改环回接口的网络类型

修改环回接口的网络类型
[r2]interface LoopBack 0
[r2-LoopBack0]ospf network-type broadcast
[r2-LoopBack0]q
[r4]interface LoopBack 0
[r4-LoopBack0]ospf network-type broadcast
[r4-LoopBack0]q修改后:

5.路由策略的配置
R2:

R4:

查看路由表cost值均已更改

边栏推荐
- Matlab-创建 MATLAB的logo
- [Select] how to write PHP code perfectly?
- Mathematical reasoning: five couples get together and shake hands when they meet
- Ant高级-path和fileset
- open3d库的安装,conda常用指令,导入open3d时报这个错误Solving environment: failed with initial frozen solve. Retrying w
- Matlab-基于短时神经网络的声音分类
- gyp ERR! configure error. gyp ERR! stack Error: gyp failed with exit code: 1
- ORACLE 11g手动内存管理
- 【英雄哥六月集训】第 28天: 动态规划
- NFS 服务器的搭建
猜你喜欢

Data visualization
![Shell中的文本处理工具、cut [选项参数] filename 说明:默认分隔符是制表符、awk [选项参数] ‘/pattern1/{action1}filename 、awk 的内置变量](/img/ed/941276a15d1c4ab67d397fb3286022.png)
Shell中的文本处理工具、cut [选项参数] filename 说明:默认分隔符是制表符、awk [选项参数] ‘/pattern1/{action1}filename 、awk 的内置变量

Decision tree principle and case application - Titanic survival prediction

Understanding of batchnorm2d() function in pytorch

Anaconda安装(非常详细)
![Text processing tool in shell, cut [option parameter] filename Description: the default separator is the built-in variable of tab, awk [option parameter] '/pattern1/{action1}filename and awk](/img/ed/941276a15d1c4ab67d397fb3286022.png)
Text processing tool in shell, cut [option parameter] filename Description: the default separator is the built-in variable of tab, awk [option parameter] '/pattern1/{action1}filename and awk

邮件服务器

NFS 服务器的搭建

Shell流程控制(重点)、if 判断、case 语句、let用法、for 循环中有for (( 初始值;循环控制条件;变量变化 ))和for 变量 in 值 1 值 2 值 3… 、while 循环
![Introduction to regular expressions of shell, general matching, special characters: ^, $,., * Character range (brackets): [], special characters: \, matching mobile phone number](/img/31/ed0d8c1a5327059f2de7493bec1c6c.png)
Introduction to regular expressions of shell, general matching, special characters: ^, $,., * Character range (brackets): [], special characters: \, matching mobile phone number
随机推荐
01_ Movie recommendation (contentbased)_ Object portrait
VS2019+CUDA11.1新建项目里没有CUDA选项
Shell process control (emphasis), if judgment, case statement, let usage, for ((initial value; loop control condition; variable change)) and for variable in value 1 value 2 value 3..., while loop
3D restoration paper: shape painting using 3D generative advantageous networks and recurrent revolutionary networks
文件上传漏洞相关
mount. Nfs: access denied by server while mounting
Matlab-基于短时神经网络的声音分类
Oracle view hard parsing
pytorch中对BatchNorm2d()函数的理解
Echats关系图les-miserables的图表详细解析(和弦图)
ORACLE 11g手动内存管理
如何创建一个带诊断工具的.NET镜像
Vs2019 Community Edition Download tutorial (detailed)
Ant advanced -path and fileset
Stylegan paper notes + modify code to try 3D point cloud generation
Matlab底层源代码实现图像的中值滤波(用于消除图像上一些杂点)
Food safety | is sugar free really sugar free? These truths need to be known
【英雄哥六月集训】第 25天: 树状数组
vs2019社区版下载教程(详细)
【英雄哥六月集训】第 26天: 并查集