Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

什么是二层转发和三层路由? #10

Open
SampsonKY opened this issue Oct 4, 2020 · 0 comments
Open

什么是二层转发和三层路由? #10

SampsonKY opened this issue Oct 4, 2020 · 0 comments

Comments

@SampsonKY
Copy link
Owner

什么是二层转发和三层路由?

  • 二层转发:这里应该用的为OSI分层模型,那么这里的二层指的是数据链路层,则是获取了数据的头部信息后,根据目标的MAC地址,进行本地的转发和广播(根据MAC地址选择发哪)也可指交换机
  • 三层路由:指的是网络层,则是设备工作在IP层,通过分析数据包头部信息,得到IP地址,根据网段范围,进行本地转发或选择下一个网关(也就是判断是否IP处于一个范围,不是就下一个再看)指路由器或者有路由功能的交换机
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant