当前位置:网站首页>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
边栏推荐
猜你喜欢
如何像用自来水一样使用数据库?|腾讯云数据库TDSQL-C
pyspark df secondary sorting
Charles packet capture tool learning record
请求与响应:响应
The Transformer, BERT, GPT paper intensive reading notes
面渣逆袭:MySQL六十六问,两万字+五十图详解
How to choose a reliable and formal training institution for the exam in September?
Qt5开发从入门到精通——第二篇(控件篇)
《21天精通TypeScript-5》类型注解与原始类型
五、《图解HTTP》报文首部和HTTP缓存
随机推荐
Charles抓包工具学习记录
wordpress: 裁剪您的图片时发生错误
如何使用电子邮件营销在五个步骤中增加产品评论
sqlite 日期字段加一天
【云原生--Kubernetes】Pod容器与镜像拉取策略
pyspark @udf loop using variable problem
【云原生--Kubernetes】kubectl命令详解
ArcEngine(四)MapControl_OnMouseDown的使用
uni-app 顶部选项卡吸附效果 demo(整理)
推荐系统-排序层-精排模型:LR、GBDT、Wide&Deep、DCN、DIN、DIEN、MMOE、PLE
Windows安装MySQL(MIS)
WordPress主题-B2美化通用子主题商业运营版
pyspark df secondary sorting
《21天精通TypeScript-5》类型注解与原始类型
pyspark---low frequency feature processing
热部署系统实现
力扣(LeetCode)214. 打家劫舍 II(2022.08.02)
[Kaggle combat] Prediction of the number of survivors of the Titanic (from zero to submission to Kaggle to model saving and restoration)
安装mysql-workbench
依赖注入(DI),自动配置,集合注入