当前位置:网站首页>Static routing (detailed)
Static routing (detailed)
2022-07-19 02:31:00 【Song Hui Jiale】
One 、 How routers work
The function of the router : Forward data to the right destination , And choose the best path .
How routers work :

working principle : host 1.1 Want to communicate with the host 4.1 Communications , Data from 1.1 come out , The router receives data , The destination address in the packet is 4.1 Lookup routing table , From... Through the routing table S0 Out of the mouth , The router receives data and finds out from the routing table E0 Out of the mouth .
1.1 Routing table
( When the router is not configured ip when , The routing table is empty , After configuration, the routing table will automatically add the information of the web address )
1 Direct link routing : The network segment connected to yourself
2: Indirect routing
3: Static routing : Manually configured by myself ( Is one-way , Bidirectional configuration needs to continue , Not very flexible but very fast )
4: Dynamic routing : In the network, routers learn the network segments they don't have by themselves through packets
#### Check the routing table on the router :display ip routing-table protocol direct
The priority of the default route is 60, The smaller the better Parameters preference

- The router queries the routing table , Realize data forwarding
- There are two ways to form a routing table: static addition and dynamic learning
- Static route is the route information manually added by the operator
- The default route is a special static route
Without any reason ARP: Detect whether the address exists
Two 、 Comparison between route and switch
| Routing works at the network layer | The switch works at the data link layer |
|---|---|
| Forward data according to routing table | according to MAC Address table forwarding data |
| Routing | Hardware forwarding |
| Routing and forwarding | / |
3、 ... and 、 Network topology

Default route :ip route-static 0.0.0.0 0.0.0.0 Next hop interface address )
Static routing :ip route-static Destination address segment Subnet mask Next hop interface address )
Routers can set up many routes to jump to other places
Four : summary
Make sure the address of the next hop of the static route , In order to better use static routing
边栏推荐
- 面试:接口和抽象类的区别-简洁的总结
- 不会叭不会叭,昨天真有人没写出二进制枚举
- [antv G2] how to add a click event to the line chart (click anywhere to get the value of the point on the line)
- 【工具篇】Unity快速上手制作2D和2.5D游戏的神器TileMap
- Decentralized edge rendering meta universe protocol cadeus was invited to attend the cbaia 2022 summit to enable more Web3 application scenarios with technology
- bugku题解
- Experience in using flow playback tool Gor
- [unity Editor Extension] unity makes its own exclusive editor panel
- 《Visual C#从入门到精通》个人学习整理
- 转载:SQL注入常见绕过
猜你喜欢

Signal and system experiment

Gdb+vscode for debugging 2 - GDB breakpoint related

Detailed explanation of caduceus project of metauniverse public chain (I): project concept and technical framework of caduceus metaverse protocol

【Unity编辑器扩展】查找场景和资源内挂载某脚本的所有对象

bugku---game1

【Unity开发小技巧】Unity打包PC端exe,压缩打包为一个exe文件

Logical vulnerability - authentication vulnerability

Jmeter接口测试之响应断言

STL -- List container (linked list)

第2章-系统控制原理 -> 经典控制理论
随机推荐
Gdb+vscode debugging -- how to debug the release version
[Ruiji takeout ⑩] rough learning of Linux & rough learning of redis
STL -- vector container
【Unity编辑器扩展】Unity制作自己的专属的编辑器面板
简单记录一下并查集
怎么将软件的快捷方式添加到鼠标右键的列表中
SSTI模板注入
剑指 Offer 48. 最长不含重复字符的子字符串
[unity development tips] unity packs the EXE on the PC side and compresses and packs it into an EXE file
STL -- deque container
全链路压测
转载:SQL注入常见绕过
面试:接口和抽象类的区别-简洁的总结
静态路由(详)
Experience in using flow playback tool Gor
STL--vector容器
Chapter 2 - system control principle - > classical control theory
【HSJFramework】Unity时间管理TimeManger计时器
[unity Editor Extension] the pre-processing and post-processing pictures of unity assets are automatically transferred to sprite2d
【工具篇】Unity2D人物控制器,控制2D玩家移动跳跃,四方向和水平方向