免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2765 | 回复: 0
打印 上一主题 下一主题

Routing between VLANs with subinterfaces [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-09-21 22:57 |只看该作者 |倒序浏览
Routing between VLANs with subinterfaces
Because VLANs are functionally equal to multiple separate switches each with its own subnet, a router is required to route traffic between them. Networks that have multiple switches connected to a router of course need one physical connection from each switch to a separate port on the router. The same would normally be true of VLANs within a single switch, you would need a separate physical connection from a port in each VLAN on the switch, to multiple ports on the router. This becomes a problem for a number of reasons, but primarily because most routers don't have more than a few Ethernet ports, and even with enough ports this would be an unnecessary waste of resources on the router. The solution to this multiple connection problem is to use what is called a trunk line.
A trunk line aggregates traffic from multiple independent VLANs into a single physical connection between switches, or between a switch and a router. Within this trunk there is a logical division of the connection, by encapsulating each frame with VLAN information, or by using a special frame header marking each frame as belonging to a specific VLAN. Normally this trunk will carry traffic for each VLAN present on the switch.
However routers only have one Ethernet MAC address per port, and normally each port is part of a single IP subnet. This means a solution must be found to allow the router to route traffic on a single port as if it were part of multiple separate IP subnets, and this is where subinterfaces come in.
As an example of what a typical subinterface setup might look like on a cisco router, a single ethernet port such as FastEthernet0/0 will be subdivided into Fa0/0.1 , Fa0/0.2 , Fa0/0.3 and so on, each one performing as if it were a separate interface. Each of these subinterfaces corresponds to a single VLAN on the switch.
Non Broadcast Multiple Access
In an NBMA network,
broadcast
or
multicast
packets are not passed between circuits. This presents problems for traffic using these packets such as routing updates. To solve this problem, subinterfaces are sometimes used to allow for each logical circuit in a physical connection to be considered as its own interface, thus allowing for routing updates and other non-unicast traffic to be passed between them, which is otherwise not possible.


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/12741/showart_2057148.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP