大网数据广告活动
服务器运维问答

I need to connect 2 switches to a router, what's the difference between creating 2 subnets and creating 2 "normal networks" with their own net ip?

· 52CE 我爱测

I'm really confused about subnets right now, basically I have two separate networks that I need to connect to the same router and I need to explain how they are connected together, IPs, et cetera but then I got a doubt: In this i…

问题原文

原帖链接 · Elia Perantoni · CC BY-SA 3.0

I'm really confused about subnets right now, basically I have two separate networks that I need to connect to the same router and I need to explain how they are connected together, IPs, et cetera but then I got a doubt:

In this image I represented a router connected to two networks. What's the difference of giving them one of the 192.168.0.0 to 192.168.128.0 network ip each and using the main router IP to create two subnets?

已采纳解答

原帖链接 · Ron Maupin · CC BY-SA 3.0

The top network in your image is incorrect because you have the same network on both sides of the router. You cannot configure overlapping networks on a router. Routers route between networks, not from a network back to the same network.

Both networks on the right side of the router are part of the network on the left side of the router. A host in the 192.168.5.0/24 network could not send anything to either of the other two networks. The host will compare the destination address to its own address and mask, and it will decide that the destination is on its own network, so it will not send the packets to the router. It will try to find the layer-2 address of the destination, and it will be unable to do so, then drop the traffic.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-12-07)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。