注入默认路由优化局域网接入Internet的配置效率和网络稳定性
2020-06-21汪海涛杜红涛戴宏明
汪海涛 杜红涛 戴宏明



摘 要:局域网接入到Internet网络系统中,客户端访问Internet的数据包先转到三层交换机,三层交换机设置默认路由转到出口路由器,再由出口路由器转向Internet。如果局域网的三层交换机数量较多,每个三层交换机都需要设置默认路由指向出口路由器,配置上显得比较麻烦。本文针对某一局域网接入Internet的网络方案,论述注入默认路由技术,分析注入默认路由工作过程,实现局域网出口路由器配置默认路由并且将默认路由注入到局域网,提高了网络的稳定性和配置方法的有效性。
关键词:默认路由;数据包;局域网;注入
Abstract: In Local Area Network (LAN) access to the Internet, data packets of client accessing the Internet are transferred to layer-3 switch first, layer-3 switch then sets a default route to an export router, after that data packets are transferred to the Internet from export router. If the number of layer-3 switches in LAN is large, each layer-3 switch would need to set a default route to export router, which makes configuration rather cumbersome. Aiming at a LAN access to the Internet network scheme, the paper discusses a default routing injection technology, analyzes the injection default routing work process, implements the default route with the LAN export router and injects the default route into LAN, which improves the stability and effectiveness of network configuration.
Keywords: default route; packet; LAN; injection
1 引言(Introduction)
很多局域網接入到Internet网络系统环境中,局域网的主机访问外网,必须经过局域网的出口路由器。局域网的主机默认网关是三层交换机的VLAN地址,三层交换机必须配置默认路由将主机访问外网的请求交给出口路由器去处理。局域网的三层交换机台数如果比较多,每台三层交换机都配置默认路由指向出口路由器,就显得配置较复杂,网络的可管理性较差。
注入默认路由,可以简化被注入区域的网络配置,提高网络的转发效率[1]。被注入默认路由的区域网络的三层设备都会增加一条默认路由的指向,引导数据包从注入设备转发[2]。
2 注入默认路由的概念(The concept of injecting default route)
(1)默认路由的概念
默认路由是一种特殊的静态路由。路由器或者网络中的三层设备收到一个数据包,首先在其路由表查看有没有条目匹配到数据包的目的地址网段,如果有就转发到下一跳IP节点处理,如果没有就查看有没有默认路由(即0.0.0.0的网络)条目,若有默认路由,就转发到默认路由所指向的下一跳IP节点[3]。……
