当前位置:网站首页>使用默认路由作为指向Internet的路由
使用默认路由作为指向Internet的路由
2022-07-04 12:48:00 【51CTO】
本案例是默认路由的一个应用场景。
某公司内网有A、B、C和D共4个路由器,有10.1.0.0/24、10.2.0.0/24、10.3.0.0/24、10.4.0.0/24、10.5.0.0/24、10.6.0.0/24共6个网段,网络拓扑和地址规划如图1所示。现在要求在这4个路由器中添加路由,使内网的共 6 个网段之间能够相互通信,同时这 6 个网段也要能够访问Internet。
路由器B和D是网络的末端路由器,直连两个网段,到其他网络都需要转发到路由器C,在这两个路由器中只需要添加一条默认路由即可。
对于路由器C来说,直连了3个网段,到10.1.0.0/24、10.4.0.0/24两个网段的路由需要单独添加,到Internet或10.6.0.0/24网段的数据包,都需要转发给路由器A,再添加一条默认路由即可。
对于路由器A来说,直连3个网段,对于没有直连的几个内网,需要单独添加路由,到Internet的访问只需要添加一条默认路由即可。
到Internet上所有网段的路由,只需要添加一条默认路由即可。
图1 使用默认路由简化路由表
观察图2,看看A路由器中的路由表是否可以进一步简化。企业内网使用的网段可以合并到10.0.0.0/8网段中,因此在路由器A中,到内网网段的路由可以汇总成一条,如图5-13所示。大家想想路由器C中的路由表还能简化吗?
图2路由器路由汇总和默认路由简化路由表
此文章来自于《华为 HCIA-Datacom认证(2021新版HCIA教材)》
京东购买本书
https://item.jd.com/13706744.html
学习计算机网络华为网络工程师 华三网络工程师课程中有问题联系韩老师
华为 HCIA-Datacom认证(2021新版HCIA教材)课程链接 https://edu.51cto.com/course/28956.html
韩老师招收正式学生、门徒级套餐
边栏推荐
- When MDK uses precompiler in header file, ifdef is invalid
- 【Antd】Antd 如何在 Form.Item 中有 Input.Gourp 时获取 Input.Gourp 的每一个 Input 的value
- 2022 Shandong Province safety officer C certificate examination question bank and online simulation examination
- [FAQ] summary of common causes and solutions of Huawei account service error 907135701
- 2022危险化学品经营单位主要负责人练习题及模拟考试
- Interviewer: what is the internal implementation of hash data type in redis?
- 好博医疗冲刺科创板:年营收2.6亿 万永钢和沈智群为实控人
- PostgreSQL 9.1 soaring Road
- Personalized online cloud database hybrid optimization system | SIGMOD 2022 selected papers interpretation
- Web知识补充
猜你喜欢
OpenHarmony应用开发之如何创建DAYU200预览器
7 月数据库排行榜:MongoDB 和 Oracle 分数下降最多
Dgraph: large scale dynamic graph dataset
近日小结(非技术文)
. Net delay queue
逆向调试入门-PE结构-资源表07/07
ASP. Net core introduction I
中邮科技冲刺科创板:年营收20.58亿 邮政集团是大股东
好博医疗冲刺科创板:年营收2.6亿 万永钢和沈智群为实控人
Three schemes to improve the efficiency of MySQL deep paging query
随机推荐
Install Trinity and solve error reporting
字节面试算法题
Doctoral application | West Lake University Learning and reasoning system laboratory recruits postdoctoral / doctoral / research internship, etc
C语言中学生成绩管理系统
Web knowledge supplement
结合案例:Flink框架中的最底层API(ProcessFunction)用法
Fisher信息量检测对抗样本代码详解
XML入门三
逆向调试入门-PE结构-资源表07/07
Oracle 被 Ventana Research 评为数字创新奖总冠军
Source code compilation and installation of MySQL
ASP.NET Core入门一
.NET 使用 redis
Automatic filling of database public fields
C array supplement
Understanding and difference between viewbinding and databinding
C语言程序设计选题参考
C语言宿舍管理查询软件
C foundation in-depth learning II
MySQL 45 lecture - learn the actual combat notes of MySQL in Geek time 45 lecture - 06 | global lock and table lock_ Why are there so many obstacles in adding a field to the table