当前位置:网站首页>HCIP练习03(重发布)
HCIP练习03(重发布)
2022-08-03 07:57:00 【雨天_】
1.配置IP地址和环回
[r1]int lo0
[r1-LoopBack0]ip add 1.1.1.1 24
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 14.1.1.1 24
[r2]int lo0
[r2-LoopBack0]ip add 2.2.2.2 24
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip add 24.1.1.1 24
[r3]int lo0
[r3-LoopBack0]ip add 3.3.3.3 24
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip add 34.1.1.1 24
[r4]int lo0
[r4-LoopBack0]ip add 4.4.4.4 24
[r4]int g0/0/0
[r4-GigabitEthernet0/0/0]ip add 14.1.1.2 24
[r4]int g0/0/1
[r4-GigabitEthernet0/0/1]ip add 24.1.1.2 24
[r4]int g0/0/2
[r4-GigabitEthernet0/0/2]ip add 34.1.1.2 24
(查看)
2.进行OSPF和RIP宣告
[r1]rip 1
[r1-rip-1]ver 2
[r1-rip-1]network 14.0.0.0
[r1-rip-1]network 1.0.0.0
[r2]ospf 1 router-id 2.2.2.2
[r2-ospf-1]area 0
[r2-ospf-1-area-0.0.0.0]network 24.1.1.1 0.0.0.0
[r2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[r3]ospf 1 router-id 3.3.3.3
[r3-ospf-1]area 0 (进程只在本地有用)
[r3-ospf-1-area-0.0.0.0]network 34.1.1.1 0.0.0.0
[r3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[r4]rip 1
[r4-rip-1]ver 2
[r4-rip-1]network 14.0.0.0
[r4]ospf 1
[r4-ospf-1]area 0
[r4-ospf-1-area-0.0.0.0]network 24.1.1.2 0.0.0.0
[r4]ospf 2
[r4-ospf-2]area 0
[r4-ospf-2-area-0.0.0.0]network 34.1.1.2 0.0.0.0
(查看)
3.导入路由(RIP)
(1)重发布动态路由
[r4]rip 1
[r4-rip-1]import-route ospf 1
(定义总度量)
[r4-rip-1]import-route ospf 1 ?
cost Cost of the import route
route-policy Apply the specified route policy to filter route
<cr> Please press ENTER to execute command
[r4-rip-1]import-route ospf 1 cost 2
(2)重发布静态路由
[r4]ip route-static 0.0.0.0 0 LoopBack 0
[r4]ip route-static 99.1.1.0 24 LoopBack 0
[r4]rip 1
[r4-rip-1]import-route static
(3)重发布直连路由
[r4]rip 1
[r4-rip-1]import-route direct cost 6 (重发布直连路由优于其他重发布)
4.导入路由(OSPF)
(1)重发布动态路由
[r4]ospf 1
[r4-ospf-1]import-route rip
[r4-ospf-1]import-route rip cost 2 type 1
(修改种子度量) 修改类型()
(2)重发布静态路由
[r4]ospf 1
[r4-ospf-1]import-route static
[r4-ospf-1]import-route static cost 2 type 1
(3)重发布直连路由
[r4]ospf 1
[r4-ospf-1]import-route direct
[r4-ospf-1]import-route direct cost 2 type 1
边栏推荐
- 《21天精通TypeScript-5》类型注解与原始类型
- How does Mysql query two data tables for the same fields in two tables at the same time
- DSP Trick:向量长度估算
- frp:开源内网穿透工具
- ArcEngine(六)用tool工具实现拉框放大缩小和平移
- 如何在安装GBase 8c数据库的时候,报错显示“Host ips belong to different cluster?
- 用云机器/虚拟机架设方舟游戏?
- Windows安装MySQL(MIS)
- 推荐系统-排序层-模型:Wide&Deep
- Logic Pro X built-in sound library list
猜你喜欢
Windows安装MySQL(MIS)
001-进程与线程
进程的创建
[Kaggle combat] Prediction of the number of survivors of the Titanic (from zero to submission to Kaggle to model saving and restoration)
The use of the database table structure document generation tool screw
Daily practice of PMP | Do not get lost in the exam-8.2 (including agility + multiple choice)
sqlserver2019安装失败
0day_Topsec上网行为管理RCE
Dapr 与 NestJs ,实战编写一个 Pub & Sub 装饰器
PowerShell:执行 Install-Module 时,不能从 URI 下载
随机推荐
智能客服,还有多少AI泡沫?
如何使用电子邮件营销在五个步骤中增加产品评论
酷雷曼上新6大功能,全景营销持续加码
ceph简介
面试介绍项目经验(转)
数仓4.0(二)------ 业务数据采集平台
差分(前缀和的逆运算)
day12---接口和协议
Windows安装MySQL(MIS)
ArcEngine(八)用IWorkspaceFactory加载矢量数据
vs 2022无法安装 vc_runtimeMinmum_x86错误
Pyspark - an empty string is replaced by None
Roson的Qt之旅#106 QML在图片上方放置按钮并实现点击按钮切换图片
IDEA2021.2安装与配置(持续更新)
Docker启动mysql
【Kaggle实战】泰坦尼克号生存人数预测(从零到提交到Kaggle再到模型的保存与恢复)
[ 漏洞复现篇 ] yapi 代码执行 getshell 漏洞复现详解
PostMan使用,访问路径@RequestMapping
面渣逆袭:MySQL六十六问,两万字+五十图详解
pyspark df secondary sorting