CN107612702A - A kind of method for configuring routers and device - Google Patents
A kind of method for configuring routers and device Download PDFInfo
- Publication number
- CN107612702A CN107612702A CN201610546029.9A CN201610546029A CN107612702A CN 107612702 A CN107612702 A CN 107612702A CN 201610546029 A CN201610546029 A CN 201610546029A CN 107612702 A CN107612702 A CN 107612702A
- Authority
- CN
- China
- Prior art keywords
- interface
- physical
- virtual
- virtual interface
- service configuration
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 230000006855 networking Effects 0.000 claims abstract description 49
- 230000008859 change Effects 0.000 claims abstract description 8
- 238000013507 mapping Methods 0.000 claims description 99
- 238000012545 processing Methods 0.000 claims description 9
- 238000012423 maintenance Methods 0.000 abstract description 8
- 238000005516 engineering process Methods 0.000 abstract description 3
- 238000010295 mobile communication Methods 0.000 abstract description 2
- 230000008569 process Effects 0.000 description 13
- 101710092886 Integrator complex subunit 3 Proteins 0.000 description 6
- 102100025254 Neurogenic locus notch homolog protein 4 Human genes 0.000 description 6
- 238000012360 testing method Methods 0.000 description 5
- 102100028043 Fibroblast growth factor 3 Human genes 0.000 description 4
- 108050002021 Integrator complex subunit 2 Proteins 0.000 description 4
- 101710092887 Integrator complex subunit 4 Proteins 0.000 description 4
- 102100037075 Proto-oncogene Wnt-3 Human genes 0.000 description 4
- 102100024061 Integrator complex subunit 1 Human genes 0.000 description 3
- 101710092857 Integrator complex subunit 1 Proteins 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000003252 repetitive effect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本发明涉及移动通讯技术,特别涉及一种与路由器设备物理接口无关的配置方法及装置。The present invention relates to mobile communication technology, in particular to a configuration method and device independent of the physical interface of router equipment.
背景技术Background technique
为了维护网络的正常运作,通常需要对网络中的路由器设备进行恰当的配置,这些配置通常与物理接口有关联,且配置繁多,物理接口变化后需要重新对设备进行配置。在实际运维中,现网中原有的路由器设备由于容量或功能等方面的原因需要扩容或者更换成性能更强、容量更大的设备,或者随着网络规模的急剧增加,网络中的路由器设备数量也在不断的增加,都会导致网络物理连接和拓扑产生变化,此时网络维护人员需要重新规划接口,修改设备对应接口的配置。In order to maintain the normal operation of the network, it is usually necessary to properly configure the router devices in the network. These configurations are usually associated with physical interfaces, and there are many configurations. After the physical interface changes, the device needs to be reconfigured. In actual operation and maintenance, the original router equipment in the current network needs to be expanded or replaced with a device with stronger performance and larger capacity due to capacity or function reasons, or as the network scale increases sharply, the router equipment in the network The number is also increasing, which will lead to changes in the physical connection and topology of the network. At this time, network maintenance personnel need to re-plan the interface and modify the configuration of the corresponding interface of the device.
相关技术中的路由器系统的接口配置都是只能配置在已经存在的相应物理接口下面,若系统配置时,物理接口由于某些原因(例如,板卡不在线等)不存在时,则无法对接口进行业务配置;若板卡由于某些原因更换槽位时需要先删除原槽位的接口配置,然后再对新槽位接口进行业务配置;The interface configuration of the router system in the related art can only be configured under the existing corresponding physical interface. If the physical interface does not exist due to some reasons (for example, the board card is not online, etc.) interface for business configuration; if the board is replaced for some reason, it is necessary to delete the interface configuration of the original slot first, and then perform business configuration for the new slot interface;
若需要在网络中新增路由器设备,则需要规划该路由器设备与其他网络中的设备的连接端口,然后再对这些端口做出相应的配置规划,并形成配置文件,此后若实际实施过程中物理端口有变化,则需要更改配置规划和配置文件的相应内容,包括删除原接口的IP地址及业务功能,对新规划的端口再次进行配置。此过程中存在着诸多重复性工作,若接口频繁变动则会增加大量的修改工作。If it is necessary to add a new router device in the network, it is necessary to plan the connection ports between the router device and other devices in the network, and then make corresponding configuration plans for these ports and form a configuration file. After that, if the physical If the port changes, you need to change the corresponding content of the configuration plan and configuration file, including deleting the IP address and service function of the original interface, and reconfiguring the newly planned port. There are many repetitive tasks in this process, and if the interface changes frequently, a lot of modification work will be added.
发明内容Contents of the invention
本发明公开了一种路由器配置方法及装置,可以减小实际组网中设备的物理接口的更改和变动对设备接口配置的影响,减少网络维护人员的工作量,提高路由器设备接口配置的灵活性。The invention discloses a router configuration method and device, which can reduce the influence of changes and changes of physical interfaces of equipment in actual networking on equipment interface configuration, reduce the workload of network maintenance personnel, and improve the flexibility of router equipment interface configuration .
本发明公开了一种路由器配置方法,包括:The invention discloses a router configuration method, comprising:
路由器设备启动后,根据组网规划创建一个或多个虚拟接口,在所创建的每个虚拟接口上分别进行业务配置;After the router device is started, create one or more virtual interfaces according to the networking plan, and perform service configuration on each created virtual interface;
实际组网中确定各业务实际使用的物理接口后,按照每个虚拟接口上的业务配置将所述虚拟接口分别映射到对应的物理接口上。After determining the actual physical interface used by each service in the actual networking, the virtual interface is mapped to the corresponding physical interface according to the service configuration on each virtual interface.
可选地,上述方法中,所述按照每个虚拟接口上的业务配置将所述虚拟接口分别映射到对应的物理接口上包括:Optionally, in the above method, mapping the virtual interfaces to corresponding physical interfaces according to the service configuration on each virtual interface includes:
在根据组网规划创建一个或多个虚拟接口后,将所创建的每个虚拟接口添加至映射表;After creating one or more virtual interfaces according to the networking plan, add each created virtual interface to the mapping table;
实际组网中确定各业务实际使用的物理接口后,根据网络规划和每个虚拟接口上的业务配置将所述映射表中的虚拟接口分别映射到对应的物理接口,路由器设备根据所述映射表中虚拟接口与物理接口的映射关系在物理接口上启用与其对应的虚拟接口上配置的业务。After determining the actual physical interface used by each service in the actual networking, map the virtual interfaces in the mapping table to the corresponding physical interfaces according to the network planning and the service configuration on each virtual interface, and the router device according to the mapping table In the mapping relationship between virtual interface and physical interface, the services configured on the corresponding virtual interface are enabled on the physical interface.
可选地,上述方法中,所述根据网络规划和每个虚拟接口上的业务配置将所述映射表中的虚拟接口分别映射到对应的物理接口指:Optionally, in the above method, the mapping of virtual interfaces in the mapping table to corresponding physical interfaces according to network planning and service configuration on each virtual interface refers to:
根据网络规划和每个虚拟接口上的业务配置将所述映射表中的每个虚拟接口分别映射到对应的一个物理接口上。Each virtual interface in the mapping table is mapped to a corresponding physical interface according to network planning and service configuration on each virtual interface.
可选地,上述方法还包括:Optionally, the above method also includes:
当实际组网中需要删除物理接口的业务配置时,在所述映射表中查找该物理接口映射的虚拟接口,删除所查找到的虚拟接口上的业务配置。When the service configuration of the physical interface needs to be deleted in actual networking, the virtual interface mapped to the physical interface is searched in the mapping table, and the service configuration on the found virtual interface is deleted.
可选地,上述方法还包括:Optionally, the above method also includes:
当实际组网中需要更改某一个或多个物理接口的业务配置时,在所述映射表中查找待更改的物理接口对应的虚拟接口,修改所查找到的虚拟接口的业务配置,路由器设备更改对应的物理接口的业务配置。When the service configuration of one or more physical interfaces needs to be changed in the actual networking, the virtual interface corresponding to the physical interface to be changed is searched in the mapping table, the service configuration of the found virtual interface is modified, and the router device changes Service configuration of the corresponding physical interface.
可选地,上述方法还包括:Optionally, the above method also includes:
当实际组网中需要更换某一个或多个物理接口时,在完成物理接口的物理连线后,在所述映射表中查找待更换的物理接口对应的虚拟接口,删除所查找到的虚拟接口对应的物理接口,删除该物理接口上的业务配置,在所述映射表中将所述查找到的虚拟接口映射到更换后的新的物理接口,并将所查找到的虚拟接口上的业务配置到更换后的新的物理接口上。When one or more physical interfaces need to be replaced in the actual networking, after the physical connection of the physical interfaces is completed, the virtual interface corresponding to the physical interface to be replaced is searched in the mapping table, and the found virtual interface is deleted Corresponding to the physical interface, delete the service configuration on the physical interface, map the found virtual interface to the replaced new physical interface in the mapping table, and configure the service on the found virtual interface to the new physical interface after replacement.
本文还提供了一种路由器配置装置,包括:This article also provides a router configuration device, including:
虚拟接口创建单元,在路由器设备启动后,根据组网规划创建一个或多个虚拟接口,在所创建的每个虚拟接口上分别进行业务配置;The virtual interface creation unit, after the router device is started, creates one or more virtual interfaces according to the networking plan, and performs service configuration on each created virtual interface;
映射单元,在实际组网中确定实际使用的物理接口后,按照每个虚拟接口上的业务配置将所述虚拟接口分别映射到对应的物理接口上。The mapping unit maps the virtual interfaces to corresponding physical interfaces according to the service configuration on each virtual interface after determining the actually used physical interfaces in the actual networking.
可选地,上述装置中,所述映射单元按照每个虚拟接口上的业务配置将所述虚拟接口分别映射到对应的物理接口上包括:Optionally, in the above device, the mapping unit mapping the virtual interfaces to corresponding physical interfaces according to the service configuration on each virtual interface includes:
所述映射单元,在所述虚拟接口创建单元根据组网规划创建一个或多个虚拟接口后,将所创建的每个虚拟接口添加至映射表;The mapping unit, after the virtual interface creation unit creates one or more virtual interfaces according to the networking plan, adds each created virtual interface to the mapping table;
实际组网中确定各业务实际使用的物理接口后,根据网络规划和每个虚拟接口上的业务配置将所述映射表中的虚拟接口分别映射到对应的物理接口,路由器设备根据所述映射表中虚拟接口与物理接口的映射关系在物理接口上启用与其对应的虚拟接口上配置的业务。After determining the actual physical interface used by each service in the actual networking, map the virtual interfaces in the mapping table to the corresponding physical interfaces according to the network planning and the service configuration on each virtual interface, and the router device according to the mapping table In the mapping relationship between virtual interface and physical interface, the services configured on the corresponding virtual interface are enabled on the physical interface.
可选地,上述装置中,所述映射单元根据网络规划和每个虚拟接口上的业务配置将所述映射表中的虚拟接口分别映射到对应的物理接口上指:Optionally, in the above device, the mapping unit maps the virtual interfaces in the mapping table to corresponding physical interfaces according to the network planning and the service configuration on each virtual interface:
所述映射单元根据网络规划和每个虚拟接口上的业务配置将所述映射表中的每个虚拟接口分别映射到对应的一个物理接口上。The mapping unit maps each virtual interface in the mapping table to a corresponding physical interface according to network planning and service configuration on each virtual interface.
可选地,上述装置,还包括:Optionally, the above-mentioned device also includes:
业务处理单元,在实际组网中需要删除物理接口的业务配置时,在所述映射表中查找该物理接口映射的虚拟接口,删除所查找到的虚拟接口上的业务配置。The service processing unit, when it is necessary to delete the service configuration of the physical interface in the actual networking, searches the virtual interface mapped to the physical interface in the mapping table, and deletes the service configuration on the found virtual interface.
可选地,上述装置中,所述业务处理单元,在实际组网中需要更改某一个或多个物理接口的业务配置时,在所述映射表中查找待更改的物理接口对应的虚拟接口,修改所查找到的虚拟接口的业务配置,关联更改对应的物理接口的业务配置。Optionally, in the above device, when the service processing unit needs to change the service configuration of one or more physical interfaces in actual networking, it searches the mapping table for the virtual interface corresponding to the physical interface to be changed, Modify the service configuration of the found virtual interface, and change the service configuration of the corresponding physical interface accordingly.
可选地,上述装置中,所述业务处理单元,在实际组网中需要更换某一个或多个物理接口时,在完成物理接口的物理连线后,在所述映射表中查找待更换的物理接口对应的虚拟接口,删除所查找到的虚拟接口对应的物理接口,删除该物理接口上的业务配置,将所述查找到的虚拟接口映射到更换后的新的物理接口,并将所查找到的虚拟接口上的业务配置到更换后的新的物理接口上。Optionally, in the above device, when the service processing unit needs to replace one or more physical interfaces in actual networking, after completing the physical connection of the physical interfaces, it searches the mapping table for the The virtual interface corresponding to the physical interface, delete the physical interface corresponding to the found virtual interface, delete the service configuration on the physical interface, map the found virtual interface to the new physical interface after replacement, and transfer the found Configure the services on the virtual interface to the new physical interface after replacement.
与相关技术相比,本申请技术方案可预先使用虚拟接口完成网络规划中接口的各项业务配置,物理组网连接完成后只需在路由器设备系统上将虚拟接口的业务配置映射到实际组网中的物理接口上,即可将虚拟接口上相应的业务在物理接口上启用,配置方便,当由于某些原因需要更换物理接口时,操作更加简单快捷,减少网络维护人员的工作量,降低网络维护的复杂度,在不增加系统业务流程复杂度的情况下提高了路由器设备对物理接口的使用的灵活性。Compared with related technologies, the technical solution of this application can use the virtual interface in advance to complete various service configurations of the interface in the network planning. After the physical networking connection is completed, it is only necessary to map the service configuration of the virtual interface to the actual networking on the router device system. On the physical interface in the virtual interface, the corresponding services on the virtual interface can be enabled on the physical interface. The configuration is convenient. When the physical interface needs to be replaced due to some reasons, the operation is simpler and faster, reducing the workload of network maintenance personnel and reducing the network cost. The complexity of maintenance improves the flexibility of the use of physical interfaces by router devices without increasing the complexity of system business processes.
在路由器设备的系统测试过程中,采用本申请技术方案可有效的提高测试效率。如测试过程中某业务测试需要覆盖多个槽位的多个端口,此时在路由器系统上使用虚拟接口做一次配置,并将该虚拟接口的配置映射到实际物理接口上,后续更换不同槽位的不同物理接口测试时只需删除原有的映射配置,再将该虚拟接口映射到新的物理接口上即可,省去了诸多的重复性工作。In the system testing process of the router equipment, the testing efficiency can be effectively improved by adopting the technical solution of the present application. If a certain service test needs to cover multiple ports in multiple slots during the test, at this time, use a virtual interface on the router system to do a configuration, and map the configuration of the virtual interface to the actual physical interface, and then replace different slots When testing different physical interfaces, you only need to delete the original mapping configuration, and then map the virtual interface to a new physical interface, which saves a lot of repetitive work.
附图说明Description of drawings
图1是本发明实施例中路由器配置方法流程图;Fig. 1 is a flowchart of a router configuration method in an embodiment of the present invention;
图2是本发明实施例中系统使用虚拟接口进行配置映射的流程图;Fig. 2 is the flow chart that the system uses virtual interface to carry out configuration mapping in the embodiment of the present invention;
图3是本发明实施例中系统删除虚拟接口到物理接口的配置映射的流程图;Fig. 3 is a flow chart of the system deleting the configuration mapping from a virtual interface to a physical interface in an embodiment of the present invention;
图4是本发明实施例中更改物理接口的业务配置的流程图;Fig. 4 is a flowchart of changing the service configuration of a physical interface in an embodiment of the present invention;
图5是本发明实施例中更改映射关系中的物理接口的流程图。Fig. 5 is a flowchart of changing a physical interface in a mapping relationship in an embodiment of the present invention.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚明白,下文将结合具体实施方式对本发明技术方案作进一步详细说明。需要说明的是,在不冲突的情况下,本申请的实施例和实施例中的特征可以任意相互组合。In order to make the object, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be further described in detail below in conjunction with specific embodiments. It should be noted that, in the case of no conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.
本申请发明人提出,可以利用虚拟接口预先完成各项业务的规划和配置,形成网络规划图及相应的配置文件,等实际组网确定后,将虚拟接口的配置映射到实际的物理接口上,此后若设备的物理接口由于各种原因需要更换时,不需要修改设备配置文件中的接口配置,只需更改虚拟接口所映射的物理接口即可,这样可以减少网络维护人员的工作量,降低网络维护的复杂度,在不增加系统业务流程复杂度的情况下提高路由器设备对物理接口的使用的灵活性。The inventor of the present application proposes that the planning and configuration of various services can be completed in advance by using the virtual interface to form a network planning diagram and corresponding configuration files. After the actual networking is confirmed, the configuration of the virtual interface is mapped to the actual physical interface. Afterwards, if the physical interface of the device needs to be replaced due to various reasons, it is not necessary to modify the interface configuration in the device configuration file, but only to change the physical interface mapped to the virtual interface, which can reduce the workload of network maintenance personnel and reduce network The complexity of maintenance improves the flexibility of router devices in using physical interfaces without increasing the complexity of system business processes.
基于上述思想,本实施例提供一种路由器配置方法,如图1所示,包括如下操作S100和S200:Based on the above ideas, this embodiment provides a router configuration method, as shown in Figure 1, including the following operations S100 and S200:
S100、路由器设备系统启动后,根据组网规划创建一个或多个虚拟接口,在所创建的每个虚拟接口上分别进行业务配置;S100. After the router device system is started, create one or more virtual interfaces according to the networking plan, and perform service configuration on each created virtual interface;
S200、实际组网中确定各业务实际使用的物理接口后,按照每个虚拟接口上的业务配置将所述虚拟接口分别映射到对应的物理接口上。S200. After determining the physical interfaces actually used by each service in actual networking, map the virtual interfaces to corresponding physical interfaces according to the service configuration on each virtual interface.
可选地,将每个虚拟接口分别映射到对应的物理接口上时,将每个虚拟接口分别映射到对应的一个物理接口上,即对于每个虚拟接口而言,其仅对应映射到一个物理接口上。Optionally, when each virtual interface is mapped to a corresponding physical interface, each virtual interface is mapped to a corresponding physical interface, that is, for each virtual interface, it is only mapped to one physical interface interface.
可选地,将虚拟接口分别映射到对应的物理接口上的过程,可以通过映射表来实现,即创建好虚拟接口后,系统自动将创建的每个虚拟接口加入到映射表中,初始状态虚拟接口不映射到任何物理接口上,之后在系统中对这些虚拟接口进行所需的各种业务配置。Optionally, the process of mapping the virtual interfaces to the corresponding physical interfaces can be realized through the mapping table, that is, after the virtual interface is created, the system automatically adds each created virtual interface to the mapping table, and the initial state virtual Interfaces are not mapped to any physical interfaces, and then various required service configurations are performed on these virtual interfaces in the system.
待实际组网中确定好各路由器设备的实际使用的物理接口完成相应的物理接口的连线后,在路由器设备系统中配置虚拟接口到物理接口的映射,此时系统根据该映射配置自动将虚拟接口上的业务配置在对应的物理接口上启用,在映射表中为该虚拟接口添加所映射的物理接口即可。路由器设备在实际运行过程中各项业务及转发仍然正常使用物理接口,即本发明实施例采用的配置映射不影响设备原有的各业务流程,只是完成单纯的配置映射。实际应用中,此可选方案的映射配置过程如图2所示。After the actual physical interface of each router device is determined in the actual networking and the connection of the corresponding physical interface is completed, the mapping from the virtual interface to the physical interface is configured in the router device system. At this time, the system automatically configures the virtual interface according to the mapping configuration. The service configuration on the interface is enabled on the corresponding physical interface, just add the mapped physical interface to the virtual interface in the mapping table. During the actual operation of the router device, various services and forwarding still use the physical interface normally, that is, the configuration mapping adopted in the embodiment of the present invention does not affect the original service processes of the device, and only completes the simple configuration mapping. In practical applications, the mapping configuration process of this optional solution is shown in Figure 2.
在一个可选实施例中,当组网中需要删除某物理接口的业务配置时,在映射表中查找该物理接口映射的虚拟接口,删除查找到的虚拟接口上的业务配置,系统根据此操作自动删除该物理接口对应的业务配置。实际应用中,此过程如图3所示。In an optional embodiment, when the service configuration of a physical interface needs to be deleted in the networking, the virtual interface mapped to the physical interface is searched in the mapping table, and the service configuration on the found virtual interface is deleted. Automatically delete the service configuration corresponding to the physical interface. In practical applications, this process is shown in Figure 3.
在一个可选实施例中,当需要更改一个或多个物理接口的业务配置时,则在映射表中查找待更改的物理接口对应的虚拟接口,在查找到的虚拟接口上做相应的业务配置修改,路由器设备系统接收到虚拟接口的业务配置更新后查找映射表,自动更新映射表中该虚拟接口所映射的物理接口的业务配置。实际应用中,此过程如图4所示。In an optional embodiment, when the service configuration of one or more physical interfaces needs to be changed, the virtual interface corresponding to the physical interface to be changed is searched in the mapping table, and the corresponding service configuration is performed on the found virtual interface In the modification, the router device system searches the mapping table after receiving the service configuration update of the virtual interface, and automatically updates the service configuration of the physical interface mapped to the virtual interface in the mapping table. In practical applications, this process is shown in Figure 4.
在一个可选实施例中,当实际组网中需要更换某一个或多个物理接口时,完成物理连线后,在系统上删除原有的虚拟接口到被更换的物理接口的映射配置,此时系统将自动删除被更换的物理接口上的所有业务配置,并在映射表中查找待更换的物理接口对应的虚拟接口,删除查找到的该虚拟接口对应的物理接口,然后在系统中重新配置虚拟接口到新的物理接口的映射,系统根据该映射配置自动将虚拟接口上的业务配置在新的物理接口上启用,并在映射表中将该虚拟接口映射到新的物理接口。实际应用中,此过程如图5所示。In an optional embodiment, when one or more physical interfaces need to be replaced in the actual networking, after the physical connection is completed, the mapping configuration from the original virtual interface to the replaced physical interface is deleted on the system. At this time, the system will automatically delete all service configurations on the physical interface to be replaced, and search the virtual interface corresponding to the physical interface to be replaced in the mapping table, delete the physical interface corresponding to the found virtual interface, and then reconfigure it in the system Mapping from a virtual interface to a new physical interface, the system automatically enables the service configuration on the virtual interface on the new physical interface according to the mapping configuration, and maps the virtual interface to the new physical interface in the mapping table. In practical applications, this process is shown in Figure 5.
下面结合实际应用场景说明本发明实施例的实施过程。假设,路由器设备中利用虚拟接口进行配置映射时,包括虚拟接口、物理接口、映射表。The implementation process of the embodiment of the present invention will be described below in combination with actual application scenarios. Assume that when the virtual interface is used in the router device to perform configuration mapping, it includes a virtual interface, a physical interface, and a mapping table.
其中,虚拟接口:设备创建的虚拟接口,预先配置有各项业务。Among them, virtual interface: the virtual interface created by the device, which is pre-configured with various services.
物理接口:设备板卡上的用于实际组网物理连接的接口。Physical interface: The interface on the device board used for physical connection of the actual networking.
映射表:虚拟接口到物理接口的映射表。Mapping table: the mapping table from virtual interface to physical interface.
路由器配置的完整过程如下:The complete process of router configuration is as follows:
路由器设备系统初始启动后,系统中无虚拟接口,可有0个或N个物理接口,映射表为空,假设该设备在网络中的规划需要使用到3个物理接口INT1、INT2、INT3:After the initial startup of the router device system, there is no virtual interface in the system, and there can be 0 or N physical interfaces, and the mapping table is empty. Assume that the device needs to use three physical interfaces INT1, INT2, and INT3 in the network planning:
系统首先创建3个虚拟接口,分别为A、B、C,并根据网络规划为这3个虚拟接口配置所需的业务,包括接口IP地址、网络路由协议以及各种业务应用等(此时系统中是否存在物理接口都不影响虚拟接口的业务配置);The system first creates three virtual interfaces, namely A, B, and C, and configures the required services for these three virtual interfaces according to the network plan, including interface IP addresses, network routing protocols, and various business applications (at this time, the system Whether there is a physical interface in the virtual interface does not affect the service configuration of the virtual interface);
将该设备放置到实际组网环境中,根据组网规划连接好各物理链路;Place the device in the actual networking environment, and connect the physical links according to the networking plan;
根据网络规划,系统配置虚拟接口到物理接口的配置映射,例如:虚拟接口A的配置映射到物理接口INT1,虚拟接口B的配置映射到物理接口INT2,虚拟接口C的配置映射到物理接口INT3,并将该配置映射写入映射表,此时系统在物理接口INT1、INT2、INT3上就启用与其对应的虚拟接口的配置,设备在实际运行过程中各项业务及转发仍然正常使用物理接口,即不影响设备原有的各业务流程,该配置只是完成单纯的配置映射;According to the network planning, the system configures the configuration mapping from virtual interface to physical interface. For example, the configuration of virtual interface A is mapped to physical interface INT1, the configuration of virtual interface B is mapped to physical interface INT2, and the configuration of virtual interface C is mapped to physical interface INT3. And write the configuration mapping into the mapping table. At this time, the system enables the configuration of the corresponding virtual interfaces on the physical interfaces INT1, INT2, and INT3. During the actual operation of the device, various services and forwarding still use the physical interfaces normally, that is, It does not affect the original business processes of the device, and this configuration is only a simple configuration mapping;
由于某些原因,需要将物理接口INT3更换为INT4,则需要在系统上删除原有的虚拟接口C到物理接口INT3的映射配置,改为将虚拟接口C的配置映射到物理接口INT4上。此时系统更新映射表中虚拟接口C的映射物理接口为INT4,同时删除INT3接口的各项业务配置,然后在INT4接口上配置虚拟接口C的所有业务;For some reasons, if the physical interface INT3 needs to be replaced with INT4, the original mapping configuration from virtual interface C to physical interface INT3 needs to be deleted on the system, and the configuration of virtual interface C should be mapped to physical interface INT4 instead. At this time, the system updates the mapping physical interface of the virtual interface C in the mapping table to INT4, deletes the various service configurations of the INT3 interface at the same time, and then configures all services of the virtual interface C on the INT4 interface;
由于某些原因,需要为物理接口INT2新增某项业务配置时,则在与其对应的虚拟接口B上完成该项业务配置,系统自动在虚拟接口B关联的物理接口上启用该项业务。For some reason, when a service configuration needs to be added to the physical interface INT2, the service configuration is completed on the corresponding virtual interface B, and the system automatically enables the service on the physical interface associated with the virtual interface B.
本发明实施例还提供一种路由器配置装置,可实现上述配置方法,该装置主要包括如下单元。The embodiment of the present invention also provides a router configuration device, which can implement the above configuration method, and the device mainly includes the following units.
虚拟接口创建单元,在路由器设备启动后,根据组网规划创建一个或多个虚拟接口,在所创建的每个虚拟接口上分别进行业务配置;The virtual interface creation unit, after the router device is started, creates one or more virtual interfaces according to the networking plan, and performs service configuration on each created virtual interface;
映射单元,在实际组网中确定实际使用的物理接口后,按照每个虚拟接口上的业务配置将所述虚拟接口分别映射到对应的物理接口上。The mapping unit maps the virtual interfaces to corresponding physical interfaces according to the service configuration on each virtual interface after determining the actually used physical interfaces in the actual networking.
可选地,映射单元按照每个虚拟接口上的业务配置将所述虚拟接口分别映射到对应的物理接口上包括:Optionally, the mapping unit respectively mapping the virtual interfaces to corresponding physical interfaces according to the service configuration on each virtual interface includes:
在虚拟接口创建单元根据组网规划创建一个或多个虚拟接口后,将所创建的每个虚拟接口添加至映射表;After the virtual interface creation unit creates one or more virtual interfaces according to the networking plan, each created virtual interface is added to the mapping table;
实际组网中确定各业务实际使用的物理接口后,根据网络规划和每个虚拟接口上的业务配置将所述映射表中的虚拟接口分别映射到对应的物理接口,路由器设备根据所述映射表中虚拟接口与物理接口的映射关系在物理接口上启用与其对应的虚拟接口上配置的业务。After determining the actual physical interface used by each service in the actual networking, map the virtual interfaces in the mapping table to the corresponding physical interfaces according to the network planning and the service configuration on each virtual interface, and the router device according to the mapping table In the mapping relationship between virtual interface and physical interface, the services configured on the corresponding virtual interface are enabled on the physical interface.
可选地,映射单元根据网络规划和每个虚拟接口上的业务配置将映射表中的每个虚拟接口分别映射到对应的一个物理接口上。Optionally, the mapping unit maps each virtual interface in the mapping table to a corresponding physical interface according to network planning and service configuration on each virtual interface.
在一个可选实施例中,上述装置还可以包括业务处理单元,该单元在实际组网中需要删除物理接口的业务配置时,在映射表中查找该物理接口映射的虚拟接口,删除所查找到的虚拟接口上的业务配置。In an optional embodiment, the above-mentioned device may also include a service processing unit. When the service configuration of the physical interface needs to be deleted in the actual networking, the unit searches the mapping table for the virtual interface mapped to the physical interface, and deletes the found service configuration on the virtual interface.
可选地,业务处理单元,在实际组网中需要更改某一个或多个物理接口的业务配置时,在映射表中查找待更改的物理接口对应的虚拟接口,修改所查找到的虚拟接口的业务配置,更改对应的物理接口的业务配置。Optionally, when the service processing unit needs to change the service configuration of one or more physical interfaces in the actual networking, it searches the mapping table for the virtual interface corresponding to the physical interface to be changed, and modifies the value of the found virtual interface. Service configuration, change the service configuration of the corresponding physical interface.
可选地,业务处理单元,在实际组网中需要更换某一个或多个物理接口时,在完成物理接口的物理连线后,在所述映射表中查找待更换的物理接口对应的虚拟接口,删除所查找到的虚拟接口对应的物理接口,删除该物理接口上的业务配置,将所述查找到的虚拟接口映射到更换后的新的物理接口,并将所查找到的虚拟接口上的业务配置到更换后的新的物理接口上。Optionally, when one or more physical interfaces need to be replaced in actual networking, the service processing unit searches the mapping table for the virtual interface corresponding to the physical interface to be replaced after completing the physical connection of the physical interface , delete the physical interface corresponding to the found virtual interface, delete the service configuration on the physical interface, map the found virtual interface to the replaced new physical interface, and set the The service is configured on the new physical interface after replacement.
由于本实施例中的装置可实现上述路由器配置方法,故针对此装置的其他说明可参见上述方法的相应内容,在此不再赘述。Since the device in this embodiment can implement the above-mentioned router configuration method, other descriptions of this device can refer to the corresponding content of the above-mentioned method, which will not be repeated here.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本申请不限制于任何特定形式的硬件和软件的结合。Those skilled in the art can understand that all or part of the steps in the above method can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, and the like. Optionally, all or part of the steps in the foregoing embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiments may be implemented in the form of hardware, or may be implemented in the form of software function modules. This application is not limited to any specific form of combination of hardware and software.
以上所述,仅为本发明的较佳实例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred examples of the present invention, and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (12)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610546029.9A CN107612702A (en) | 2016-07-12 | 2016-07-12 | A kind of method for configuring routers and device |
PCT/CN2017/092160 WO2018010601A1 (en) | 2016-07-12 | 2017-07-07 | Method and apparatus for configuring router |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610546029.9A CN107612702A (en) | 2016-07-12 | 2016-07-12 | A kind of method for configuring routers and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107612702A true CN107612702A (en) | 2018-01-19 |
Family
ID=60952258
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610546029.9A Pending CN107612702A (en) | 2016-07-12 | 2016-07-12 | A kind of method for configuring routers and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107612702A (en) |
WO (1) | WO2018010601A1 (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109634678A (en) * | 2019-01-07 | 2019-04-16 | 烽火通信科技股份有限公司 | A kind of method and system for flexibly supporting a variety of boards |
CN110830295A (en) * | 2019-11-08 | 2020-02-21 | 迈普通信技术股份有限公司 | Equipment management method and system |
CN110958165A (en) * | 2019-11-21 | 2020-04-03 | 深圳市共进电子股份有限公司 | Network interface establishing and managing method and device |
CN110958665A (en) * | 2018-09-27 | 2020-04-03 | 九阳股份有限公司 | Method for accessing household appliance to router network and household appliance |
CN111585796A (en) * | 2020-04-27 | 2020-08-25 | 青岛海信宽带多媒体技术有限公司 | Interface switching method, message transmission method and gateway equipment |
CN112463255A (en) * | 2020-12-10 | 2021-03-09 | 广州极飞科技有限公司 | Virtual interface loading method and device, physical network card and storage medium |
CN115633077A (en) * | 2022-09-02 | 2023-01-20 | 珠海格力电器股份有限公司 | A kind of Internet of things interface control method, device, computer equipment and system |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1655522A (en) * | 2005-02-24 | 2005-08-17 | 港湾网络有限公司 | Pre-configuration realization method for cradle type network apparatus service board |
CN101340340A (en) * | 2007-07-31 | 2009-01-07 | 杭州华三通信技术有限公司 | Access point configuring management method and access controller |
CN101453399A (en) * | 2007-11-30 | 2009-06-10 | 华为技术有限公司 | Virtual network configuration, section switching method, apparatus and system |
CN103369060A (en) * | 2013-07-10 | 2013-10-23 | 华为技术有限公司 | Management method and device for virtual port |
CN103746886A (en) * | 2013-12-13 | 2014-04-23 | 北京邮电大学 | FiWi node and FiWi fusion networking method |
CN103825826A (en) * | 2014-02-28 | 2014-05-28 | 杭州华三通信技术有限公司 | Method and device for implementing dynamic routing |
WO2015152659A1 (en) * | 2014-04-02 | 2015-10-08 | 삼성전자 주식회사 | Method and apparatus for steering traffic between cellular network and wireless local area network (lan) network in mobile communication system |
US20150326506A1 (en) * | 2014-05-06 | 2015-11-12 | International Business Machines Corporation | Virtual port support in a logical switch architecture |
CN105721566A (en) * | 2016-01-29 | 2016-06-29 | 华为技术有限公司 | Method for redirecting port, server and system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101577647B (en) * | 2009-06-15 | 2011-07-13 | 中兴通讯股份有限公司 | Alarm box in support of multi-VLAN and processing method of alarming thereof |
CN102594660B (en) * | 2012-01-19 | 2015-09-09 | 华为技术有限公司 | A kind of virtual interface exchange method, Apparatus and system |
CN104219159B (en) * | 2013-05-31 | 2017-12-05 | 国际商业机器公司 | Virtual interface based on VLAN carries out link aggregation method and device |
-
2016
- 2016-07-12 CN CN201610546029.9A patent/CN107612702A/en active Pending
-
2017
- 2017-07-07 WO PCT/CN2017/092160 patent/WO2018010601A1/en active Application Filing
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1655522A (en) * | 2005-02-24 | 2005-08-17 | 港湾网络有限公司 | Pre-configuration realization method for cradle type network apparatus service board |
CN101340340A (en) * | 2007-07-31 | 2009-01-07 | 杭州华三通信技术有限公司 | Access point configuring management method and access controller |
CN101453399A (en) * | 2007-11-30 | 2009-06-10 | 华为技术有限公司 | Virtual network configuration, section switching method, apparatus and system |
CN103369060A (en) * | 2013-07-10 | 2013-10-23 | 华为技术有限公司 | Management method and device for virtual port |
CN103746886A (en) * | 2013-12-13 | 2014-04-23 | 北京邮电大学 | FiWi node and FiWi fusion networking method |
CN103825826A (en) * | 2014-02-28 | 2014-05-28 | 杭州华三通信技术有限公司 | Method and device for implementing dynamic routing |
WO2015152659A1 (en) * | 2014-04-02 | 2015-10-08 | 삼성전자 주식회사 | Method and apparatus for steering traffic between cellular network and wireless local area network (lan) network in mobile communication system |
US20150326506A1 (en) * | 2014-05-06 | 2015-11-12 | International Business Machines Corporation | Virtual port support in a logical switch architecture |
CN105721566A (en) * | 2016-01-29 | 2016-06-29 | 华为技术有限公司 | Method for redirecting port, server and system |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110958665A (en) * | 2018-09-27 | 2020-04-03 | 九阳股份有限公司 | Method for accessing household appliance to router network and household appliance |
CN109634678A (en) * | 2019-01-07 | 2019-04-16 | 烽火通信科技股份有限公司 | A kind of method and system for flexibly supporting a variety of boards |
CN110830295A (en) * | 2019-11-08 | 2020-02-21 | 迈普通信技术股份有限公司 | Equipment management method and system |
CN110830295B (en) * | 2019-11-08 | 2022-07-29 | 迈普通信技术股份有限公司 | Equipment management method and system |
CN110958165A (en) * | 2019-11-21 | 2020-04-03 | 深圳市共进电子股份有限公司 | Network interface establishing and managing method and device |
CN110958165B (en) * | 2019-11-21 | 2021-09-10 | 深圳市共进电子股份有限公司 | Network interface establishing and managing method and device |
CN111585796A (en) * | 2020-04-27 | 2020-08-25 | 青岛海信宽带多媒体技术有限公司 | Interface switching method, message transmission method and gateway equipment |
CN111585796B (en) * | 2020-04-27 | 2022-06-21 | 青岛海信宽带多媒体技术有限公司 | Interface switching method, message transmission method and gateway equipment |
CN112463255A (en) * | 2020-12-10 | 2021-03-09 | 广州极飞科技有限公司 | Virtual interface loading method and device, physical network card and storage medium |
CN112463255B (en) * | 2020-12-10 | 2024-06-07 | 广州极飞科技股份有限公司 | Virtual interface loading method and device, physical network card and storage medium |
CN115633077A (en) * | 2022-09-02 | 2023-01-20 | 珠海格力电器股份有限公司 | A kind of Internet of things interface control method, device, computer equipment and system |
Also Published As
Publication number | Publication date |
---|---|
WO2018010601A1 (en) | 2018-01-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107612702A (en) | A kind of method for configuring routers and device | |
CN114172802B (en) | Container network configuration method, device, computing node, master node and storage medium | |
CN107580083B (en) | Method and system for allocating IP addresses of containers | |
CN104639372B (en) | The correlating method and system of overlay network and physical network based on SDN | |
US9979645B2 (en) | Hardware and software methodologies for creating and managing portable service function chains | |
CN112087379B (en) | Service chain arranging method and device, storage medium and electronic device | |
US20170078114A1 (en) | Network system, inter-site network cooperation control apparatus, network control method, and program | |
CN107332775B (en) | Cross-host machine inter-visit system based on docker container and control method thereof | |
US20110231543A1 (en) | Network management control program, network management control device, and network management control method | |
US20160315809A1 (en) | METHODS, SYSTEMS, AND COMPUTER READABLE MEDIA FOR MULTI-LAYER ORCHESTRATION IN SOFTWARE DEFINED NETWORKS (SDNs) | |
US12261749B2 (en) | Automatically managing a mesh network based on dynamically self-configuring node devices | |
CN108123819B (en) | A Simulation Method for Seamless Integration of Virtual and Real Networks | |
CN106664261A (en) | Method, device, and system for configuring flow entries | |
CN103763129A (en) | PCIe equipment management method and device | |
Feng et al. | Enabling in-situ programmability in network data plane: From architecture to language | |
CN107547242B (en) | The acquisition methods and device of VM configuration information | |
CN105282003B (en) | Establish the method and system and tunnel control device and virtual switch in tunnel | |
CN105635332A (en) | A method for multiple virtual machines to share a single external network IP | |
CN109150638A (en) | A kind of route management method and device | |
CN108259218A (en) | A kind of IP address distribution method and device | |
CN108494607A (en) | The design method and system of big double layer network framework based on container | |
CN105794158B (en) | Method and system for processing internet protocol packets | |
CN108400922B (en) | Virtual local area network configuration system and method and computer readable storage medium thereof | |
CN114024886B (en) | Cross-resource-pool network intercommunication method, electronic equipment and readable storage medium | |
CN112217655B (en) | Network equipment configuration method and device in SD-WAN system and computer equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180119 |