WO2018010601A1 - 一种路由器配置方法及装置 - Google Patents

一种路由器配置方法及装置 Download PDF

Info

Publication number
WO2018010601A1
WO2018010601A1 PCT/CN2017/092160 CN2017092160W WO2018010601A1 WO 2018010601 A1 WO2018010601 A1 WO 2018010601A1 CN 2017092160 W CN2017092160 W CN 2017092160W WO 2018010601 A1 WO2018010601 A1 WO 2018010601A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
virtual
physical
virtual interface
service configuration
Prior art date
Application number
PCT/CN2017/092160
Other languages
English (en)
French (fr)
Inventor
王春艳
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018010601A1 publication Critical patent/WO2018010601A1/zh

Links

Images

Definitions

  • the present disclosure relates to mobile communication technologies, and in particular, to a router configuration method and apparatus that are independent of a physical interface of a router device.
  • the interface configuration of the router system in the related art can only be configured under the corresponding physical interface. If the physical interface does not exist for some reason (for example, the card is not online), the system cannot be configured. Configure the interface for the service. If you need to delete the slot in the original slot for the slot, perform the service configuration on the new slot.
  • the present disclosure relates to a router configuration method and device, which can reduce the impact of changes and changes of physical interfaces of devices in an actual network on device interface configuration, reduce the workload of network maintenance personnel, and improve the flexibility of interface configuration of router devices.
  • the present disclosure relates to a router configuration method, including:
  • the virtual interfaces are mapped to the corresponding physical interfaces according to the service configuration on each virtual interface.
  • mapping the virtual interfaces to the corresponding physical interfaces according to the service configuration on each virtual interface includes:
  • the virtual interfaces in the mapping table are respectively mapped to 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.
  • the mapping between the virtual interface and the physical interface enables the services configured on the corresponding virtual interface on the physical interface.
  • mapping 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 respectively:
  • Each virtual interface in the mapping table is mapped to a corresponding one of the physical interfaces according to the network plan and the service configuration on each virtual interface.
  • the foregoing method further includes:
  • the virtual interface mapped to the physical interface is searched for in the mapping table, and the service configuration on the virtual interface that is found is deleted.
  • the foregoing method further includes:
  • the virtual interface corresponding to the physical interface to be changed is searched in the mapping table, and the service configuration of the discovered virtual interface is modified.
  • the service configuration of the corresponding physical interface is searched in the mapping table, and the service configuration of the discovered virtual interface is modified.
  • the foregoing method further includes:
  • the physical interface of the physical interface is to be replaced, the physical interface corresponding to the physical interface to be replaced is deleted and the virtual interface is deleted.
  • the physical interface corresponding to the physical interface to be replaced is deleted and the virtual interface is deleted.
  • the service configuration on the physical interface deleting the service configuration on the physical interface, mapping the found virtual interface to the replaced new physical interface in the mapping table, and configuring the service on the found virtual interface Go to the new physical interface after the replacement.
  • This article also provides a router configuration device, including:
  • the virtual interface creation unit creates one or more virtual interfaces according to the networking plan after the router device is started, and performs service configuration on each virtual interface that is created.
  • the mapping unit maps the virtual interfaces to the corresponding physical interfaces according to the service configuration on each virtual interface.
  • mapping the mapping, by the mapping unit, mapping the virtual interface to the corresponding physical interface according to the service configuration on each virtual interface includes:
  • each of the created virtual interfaces is added to the mapping table;
  • the virtual interfaces in the mapping table are respectively mapped to 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.
  • the mapping between the virtual interface and the physical interface enables the services configured on the corresponding virtual interface on the physical interface.
  • the mapping unit respectively maps the virtual interfaces in the mapping table to the corresponding physical interfaces according to the network plan and the service configuration on each virtual interface:
  • the mapping unit maps each virtual interface in the mapping table to a corresponding one of the physical interfaces according to the network plan and the service configuration on each virtual interface.
  • the foregoing apparatus further includes:
  • the service processing unit searches for the virtual interface of the physical interface in the mapping table, and deletes the service configuration on the virtual interface that is found.
  • the service processing unit searches for a virtual interface corresponding to the physical interface to be changed in the mapping table when the service configuration of the one or more physical interfaces needs to be changed in the actual networking, Modify the service configuration of the virtual interface that is found, and associate the service configuration of the physical interface corresponding to the change.
  • the service processing unit searches for a to-be-replaced in the mapping table after completing the physical connection of the physical interface.
  • the virtual interface corresponding to the physical interface deletes the physical interface corresponding to the virtual interface that is found, deletes the service configuration on the physical interface, maps the discovered virtual interface to the replaced physical interface, and searches for the new physical interface.
  • the service on the virtual interface is configured to the new physical interface after the replacement.
  • the technical solution of the present application can use the virtual interface to complete the service configuration of the interface in the network planning in advance.
  • the service configuration of the virtual interface needs to be mapped to the actual networking on the router device system.
  • the corresponding service on the virtual interface can be enabled on the physical interface.
  • the configuration is convenient. When the physical interface needs to be replaced for some reason, the operation is simpler and faster, reducing the workload of network maintenance personnel and reducing the network.
  • the complexity of maintenance increases the flexibility of router devices for the use of physical interfaces without increasing the complexity of the system's business processes.
  • the technical solution of the present application can effectively improve the testing efficiency. For example, if a service test needs to cover multiple ports in multiple slots, the virtual interface is configured on the router system and the configuration of the virtual interface is mapped to the actual physical interface. When testing different physical interfaces, you only need to delete the original mapping configuration, and then map the virtual interface to the new physical interface, which saves a lot of repetitive work.
  • FIG. 1 is a flowchart of a router configuration method in an embodiment of the present disclosure
  • FIG. 2 is a flowchart of a system using a virtual interface for configuration mapping in an embodiment of the present disclosure
  • FIG. 3 is a flowchart of a configuration map of deleting a virtual interface to a physical interface by the system in the embodiment of the present disclosure
  • FIG. 4 is a flowchart of changing a service configuration of a physical interface in an embodiment of the present disclosure
  • FIG. 5 is a flow diagram of changing a physical interface in a mapping relationship in an embodiment of the present disclosure.
  • the inventor of the present application proposes that the virtual interface can be used to complete the planning and configuration of each service in advance, and the network planning diagram and the corresponding configuration file are formed. After the actual networking is determined, the configuration of the virtual interface is mapped to the actual physical interface. If the physical interface of the device needs to be replaced for various reasons, you do not need to modify the interface configuration in the device configuration file. You only need to change the physical interface mapped by the virtual interface. This can reduce the workload of network maintenance personnel and reduce the network. The complexity of maintenance increases the flexibility of the router device's use of physical interfaces without increasing the complexity of the system's business processes.
  • the embodiment provides a router configuration method, as shown in FIG. 1, including the following operations S100 and S200:
  • one or more virtual interfaces are created according to the networking plan, and services are configured on each virtual interface.
  • each virtual interface 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 only maps to one physical interface. On the interface.
  • the process of mapping the virtual interface to the corresponding physical interface may be implemented by using a mapping table, that is, after the virtual interface is created, the system automatically adds each virtual interface created to the mapping table, and the initial state is virtualized. The interfaces are not mapped to any physical interfaces, and then the various service configurations required for these virtual interfaces are performed in the system.
  • the mapping between the virtual interface and the physical interface is configured in the router device system.
  • the system automatically virtualizes the mapping according to the mapping configuration.
  • the service configuration on the interface is enabled on the corresponding physical interface.
  • the physical mapping is still performed on the service and forwarding of the router device in the actual running process. That is, the configuration mapping adopted in the embodiment of the present disclosure does not affect the original service flows of the device, but completes the simple configuration mapping. In practical applications, the mapping configuration process of this alternative is shown in Figure 2.
  • the virtual interface mapped by the physical interface is searched in the mapping table, and the service configuration on the discovered virtual interface is deleted, and the system performs the operation according to the operation.
  • the service configuration corresponding to the physical interface is automatically deleted. In practical applications, this process is shown in Figure 3.
  • 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.
  • the router device system searches for the mapping table after receiving the service configuration update of the virtual interface, and automatically updates the service configuration of the physical interface mapped by the virtual interface in the mapping table. In practical applications, this process is shown in Figure 4.
  • the mapping between the original virtual interface and the replaced physical interface is deleted on the system after the physical connection is completed.
  • the system will automatically delete Delete all the service configurations on the physical interface to be replaced, and find the virtual interface corresponding to the physical interface to be replaced in the mapping table. Delete the physical interface corresponding to the virtual interface, and then reconfigure the virtual interface to the new system.
  • the mapping configuration the system automatically enables the service configuration on the virtual interface to be enabled on the new physical interface, 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 virtual interface is a virtual interface created by the device and is pre-configured with various services.
  • Physical interface The interface on the device board for the actual physical connection of the networking.
  • Mapping table A mapping table of virtual interfaces to physical interfaces.
  • the system first creates three virtual interfaces, namely A, B, and C, and configures the required services for the three virtual interfaces according to the network plan, including the interface IP address, network routing protocol, and various service applications. Whether the physical interface exists does not affect the service configuration of the virtual interface);
  • the system configures the configuration mapping of the virtual interface to the physical interface. For example, the configuration of the virtual interface A is mapped to the physical interface INT1, the configuration of the virtual interface B is mapped to the physical interface INT2, and the configuration of the virtual interface C is mapped to the physical interface INT3.
  • the configuration map is written to the mapping table.
  • the system enables the configuration of the corresponding virtual interface on the physical interfaces INT1, INT2, and INT3.
  • the physical interface is still used normally during the actual operation of the device. Does not affect the original business processes of the device, the configuration only completes the simple configuration mapping;
  • the physical interface INT3 needs to be replaced with INT4.
  • the mapping configuration of the original virtual interface C to the physical interface INT3 needs to be deleted on the system, and the configuration of the virtual interface C is mapped to the physical interface INT4.
  • the mapped physical interface of the virtual interface C in the system update mapping table is INT4, and the service configurations of the INT3 interface are deleted, and then all services of the virtual interface C are configured on the INT4 interface;
  • the embodiment of the present disclosure further provides a router configuration apparatus, which can implement the foregoing configuration method, and the apparatus mainly includes the following units.
  • the virtual interface creation unit creates one or more virtual interfaces according to the networking plan after the router device is started, and performs service configuration on each virtual interface that is created.
  • the mapping unit maps the virtual interfaces to the corresponding physical interfaces according to the service configuration on each virtual interface.
  • mapping, by the mapping unit, the virtual interfaces to the corresponding physical interfaces according to the service configuration on each virtual interface includes:
  • each virtual interface created is added to the mapping table
  • the virtual interfaces in the mapping table are respectively mapped to 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.
  • the mapping between the virtual interface and the physical interface enables the services configured on the corresponding virtual interface on the physical interface.
  • the mapping unit respectively maps each virtual interface in the mapping table to a corresponding one of the physical interfaces according to the network plan and the service configuration on each virtual interface.
  • the foregoing apparatus may further include a service processing unit that searches for a virtual interface of the physical interface mapping in the mapping table when the service configuration of the physical interface needs to be deleted in the actual networking, and deletes the found Business configuration on the virtual interface.
  • a service processing unit that searches for a virtual interface of the physical interface mapping in the mapping table when the service configuration of the physical interface needs to be deleted in the actual networking, and deletes the found Business configuration on the virtual interface.
  • the service processing unit searches for the virtual interface corresponding to the physical interface to be changed in the mapping table, and modifies the virtual interface that is found, in the actual networking, when the service configuration of the one or more physical interfaces needs to be changed.
  • Service configuration changing the service configuration of the corresponding physical interface.
  • the service processing unit searches for a virtual interface corresponding to the physical interface to be replaced in the mapping table after the physical connection of the physical interface is completed. Delete the physical interface corresponding to the virtual interface that is found, delete the service configuration on the physical interface, map the discovered virtual interface to the replaced new physical interface, and locate the virtual interface on the virtual interface.
  • the service is configured to the new physical interface after the replacement.
  • the device in this embodiment can implement the foregoing router configuration method.
  • the device can implement the foregoing router configuration method.
  • the device refer to the corresponding content of the foregoing method, and details are not described herein again.
  • the router configuration method provided by the embodiment of the present disclosure is configured to complete the service configuration of the interface in the network planning by using the virtual interface in advance, so that the physical configuration of the virtual interface is mapped to the actual group only after the physical network connection is completed.
  • the corresponding service on the virtual interface can be enabled on the physical interface. The operation is simpler and faster, reducing the workload of network maintenance personnel and reducing the complexity of network maintenance.

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本公开提供了一种与路由器设备物理接口无关的路由器配置方法及装置,涉及移动通讯技术。本公开提供的方法,包括:路由器设备启动后,根据组网规划创建一个或多个虚拟接口,在所创建的每个虚拟接口上分别进行业务配置;实际组网中确定各业务实际使用的物理接口后,按照每个虚拟接口上的业务配置将所述虚拟接口分别映射到对应的物理接口上。本公开还提供了一种路由器配置装置。本申请技术方案配置方便,当由于某些原因需要更换物理接口时,操作更加简单快捷,减少网络维护人员的工作量,降低网络维护的复杂度。

Description

一种路由器配置方法及装置 技术领域
本公开涉及移动通讯技术,特别涉及一种与路由器设备物理接口无关的路由器配置方法及装置。
背景技术
为了维护网络的正常运作,通常需要对网络中的路由器设备进行恰当的配置,这些配置通常与物理接口有关联,且配置繁多,物理接口变化后需要重新对设备进行配置。在实际运维中,现网中原有的路由器设备由于容量或功能等方面的原因需要扩容或者更换成性能更强、容量更大的设备,或者随着网络规模的急剧增加,网络中的路由器设备数量也在不断的增加,都会导致网络物理连接和拓扑产生变化,此时网络维护人员需要重新规划接口,修改设备对应接口的配置。
相关技术中的路由器系统的接口配置都是只能配置在已经存在的相应物理接口下面,若系统配置时,物理接口由于某些原因(例如,板卡不在线等)不存在时,则无法对接口进行业务配置;若板卡由于某些原因更换槽位时需要先删除原槽位的接口配置,然后再对新槽位接口进行业务配置;
若需要在网络中新增路由器设备,则需要规划该路由器设备与其他网络中的设备的连接端口,然后再对这些端口做出相应的配置规划,并形成配置文件,此后若实际实施过程中物理端口有变化,则需要更改配置规划和配置文件的相应内容,包括删除原接口的IP地址及业务功能,对新规划的端口再次进行配置。此过程中存在着诸多重复性工作,若接口频繁变动则会增加大量的修改工作。
发明内容
本公开涉及一种路由器配置方法及装置,可以减小实际组网中设备的物理接口的更改和变动对设备接口配置的影响,减少网络维护人员的工作量,提高路由器设备接口配置的灵活性。
本公开涉及一种路由器配置方法,包括:
路由器设备启动后,根据组网规划创建一个或多个虚拟接口,在所创建的每个虚拟接口上分别进行业务配置;
实际组网中确定各业务实际使用的物理接口后,按照每个虚拟接口上的业务配置将所述虚拟接口分别映射到对应的物理接口上。
可选地,上述方法中,所述按照每个虚拟接口上的业务配置将所述虚拟接口分别映射到对应的物理接口上包括:
在根据组网规划创建一个或多个虚拟接口后,将所创建的每个虚拟接口添加至映射 表;
实际组网中确定各业务实际使用的物理接口后,根据网络规划和每个虚拟接口上的业务配置将所述映射表中的虚拟接口分别映射到对应的物理接口,路由器设备根据所述映射表中虚拟接口与物理接口的映射关系在物理接口上启用与其对应的虚拟接口上配置的业务。
可选地,上述方法中,所述根据网络规划和每个虚拟接口上的业务配置将所述映射表中的虚拟接口分别映射到对应的物理接口指:
根据网络规划和每个虚拟接口上的业务配置将所述映射表中的每个虚拟接口分别映射到对应的一个物理接口上。
可选地,上述方法还包括:
当实际组网中需要删除物理接口的业务配置时,在所述映射表中查找该物理接口映射的虚拟接口,删除所查找到的虚拟接口上的业务配置。
可选地,上述方法还包括:
当实际组网中需要更改某一个或多个物理接口的业务配置时,在所述映射表中查找待更改的物理接口对应的虚拟接口,修改所查找到的虚拟接口的业务配置,路由器设备更改对应的物理接口的业务配置。
可选地,上述方法还包括:
当实际组网中需要更换某一个或多个物理接口时,在完成物理接口的物理连线后,在所述映射表中查找待更换的物理接口对应的虚拟接口,删除所查找到的虚拟接口对应的物理接口,删除该物理接口上的业务配置,在所述映射表中将所述查找到的虚拟接口映射到更换后的新的物理接口,并将所查找到的虚拟接口上的业务配置到更换后的新的物理接口上。
本文还提供了一种路由器配置装置,包括:
虚拟接口创建单元,在路由器设备启动后,根据组网规划创建一个或多个虚拟接口,在所创建的每个虚拟接口上分别进行业务配置;
映射单元,在实际组网中确定实际使用的物理接口后,按照每个虚拟接口上的业务配置将所述虚拟接口分别映射到对应的物理接口上。
可选地,上述装置中,所述映射单元按照每个虚拟接口上的业务配置将所述虚拟接口分别映射到对应的物理接口上包括:
所述映射单元,在所述虚拟接口创建单元根据组网规划创建一个或多个虚拟接口后,将所创建的每个虚拟接口添加至映射表;
实际组网中确定各业务实际使用的物理接口后,根据网络规划和每个虚拟接口上的业务配置将所述映射表中的虚拟接口分别映射到对应的物理接口,路由器设备根据所述映射表中虚拟接口与物理接口的映射关系在物理接口上启用与其对应的虚拟接口上配置的业务。
可选地,上述装置中,所述映射单元根据网络规划和每个虚拟接口上的业务配置将所述映射表中的虚拟接口分别映射到对应的物理接口上指:
所述映射单元根据网络规划和每个虚拟接口上的业务配置将所述映射表中的每个虚拟接口分别映射到对应的一个物理接口上。
可选地,上述装置,还包括:
业务处理单元,在实际组网中需要删除物理接口的业务配置时,在所述映射表中查找该物理接口映射的虚拟接口,删除所查找到的虚拟接口上的业务配置。
可选地,上述装置中,所述业务处理单元,在实际组网中需要更改某一个或多个物理接口的业务配置时,在所述映射表中查找待更改的物理接口对应的虚拟接口,修改所查找到的虚拟接口的业务配置,关联更改对应的物理接口的业务配置。
可选地,上述装置中,所述业务处理单元,在实际组网中需要更换某一个或多个物理接口时,在完成物理接口的物理连线后,在所述映射表中查找待更换的物理接口对应的虚拟接口,删除所查找到的虚拟接口对应的物理接口,删除该物理接口上的业务配置,将所述查找到的虚拟接口映射到更换后的新的物理接口,并将所查找到的虚拟接口上的业务配置到更换后的新的物理接口上。
与相关技术相比,本申请技术方案可预先使用虚拟接口完成网络规划中接口的各项业务配置,物理组网连接完成后只需在路由器设备系统上将虚拟接口的业务配置映射到实际组网中的物理接口上,即可将虚拟接口上相应的业务在物理接口上启用,配置方便,当由于某些原因需要更换物理接口时,操作更加简单快捷,减少网络维护人员的工作量,降低网络维护的复杂度,在不增加系统业务流程复杂度的情况下提高了路由器设备对物理接口的使用的灵活性。
在路由器设备的系统测试过程中,采用本申请技术方案可有效的提高测试效率。如测试过程中某业务测试需要覆盖多个槽位的多个端口,此时在路由器系统上使用虚拟接口做一次配置,并将该虚拟接口的配置映射到实际物理接口上,后续更换不同槽位的不同物理接口测试时只需删除原有的映射配置,再将该虚拟接口映射到新的物理接口上即可,省去了诸多的重复性工作。
附图说明
图1是本公开实施例中路由器配置方法流程图;
图2是本公开实施例中系统使用虚拟接口进行配置映射的流程图;
图3是本公开实施例中系统删除虚拟接口到物理接口的配置映射的流程图;
图4是本公开实施例中更改物理接口的业务配置的流程图;
图5是本公开实施例中更改映射关系中的物理接口的流程图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚明白,下文将结合具体实施方式对本发明技术方案作进一步详细说明。需要说明的是,在不冲突的情况下,本申请的实施例和实施例中的特征可以任意相互组合。
本申请发明人提出,可以利用虚拟接口预先完成各项业务的规划和配置,形成网络规划图及相应的配置文件,等实际组网确定后,将虚拟接口的配置映射到实际的物理接口上,此后若设备的物理接口由于各种原因需要更换时,不需要修改设备配置文件中的接口配置,只需更改虚拟接口所映射的物理接口即可,这样可以减少网络维护人员的工作量,降低网络维护的复杂度,在不增加系统业务流程复杂度的情况下提高路由器设备对物理接口的使用的灵活性。
基于上述思想,本实施例提供一种路由器配置方法,如图1所示,包括如下操作S100和S200:
S100、路由器设备系统启动后,根据组网规划创建一个或多个虚拟接口,在所创建的每个虚拟接口上分别进行业务配置;
S200、实际组网中确定各业务实际使用的物理接口后,按照每个虚拟接口上的业务配置将所述虚拟接口分别映射到对应的物理接口上。
可选地,将每个虚拟接口分别映射到对应的物理接口上时,将每个虚拟接口分别映射到对应的一个物理接口上,即对于每个虚拟接口而言,其仅对应映射到一个物理接口上。
可选地,将虚拟接口分别映射到对应的物理接口上的过程,可以通过映射表来实现,即创建好虚拟接口后,系统自动将创建的每个虚拟接口加入到映射表中,初始状态虚拟接口不映射到任何物理接口上,之后在系统中对这些虚拟接口进行所需的各种业务配置。
待实际组网中确定好各路由器设备的实际使用的物理接口完成相应的物理接口的连线后,在路由器设备系统中配置虚拟接口到物理接口的映射,此时系统根据该映射配置自动将虚拟接口上的业务配置在对应的物理接口上启用,在映射表中为该虚拟接口添加所映射的物理接口即可。路由器设备在实际运行过程中各项业务及转发仍然正常使用物理接口,即本公开实施例采用的配置映射不影响设备原有的各业务流程,只是完成单纯的配置映射。实际应用中,此可选方案的映射配置过程如图2所示。
在一个可选实施例中,当组网中需要删除某物理接口的业务配置时,在映射表中查找该物理接口映射的虚拟接口,删除查找到的虚拟接口上的业务配置,系统根据此操作自动删除该物理接口对应的业务配置。实际应用中,此过程如图3所示。
在一个可选实施例中,当需要更改一个或多个物理接口的业务配置时,则在映射表中查找待更改的物理接口对应的虚拟接口,在查找到的虚拟接口上做相应的业务配置修改,路由器设备系统接收到虚拟接口的业务配置更新后查找映射表,自动更新映射表中该虚拟接口所映射的物理接口的业务配置。实际应用中,此过程如图4所示。
在一个可选实施例中,当实际组网中需要更换某一个或多个物理接口时,完成物理连线后,在系统上删除原有的虚拟接口到被更换的物理接口的映射配置,此时系统将自动删 除被更换的物理接口上的所有业务配置,并在映射表中查找待更换的物理接口对应的虚拟接口,删除查找到的该虚拟接口对应的物理接口,然后在系统中重新配置虚拟接口到新的物理接口的映射,系统根据该映射配置自动将虚拟接口上的业务配置在新的物理接口上启用,并在映射表中将该虚拟接口映射到新的物理接口。实际应用中,此过程如图5所示。
下面结合实际应用场景说明本公开实施例的实施过程。假设,路由器设备中利用虚拟接口进行配置映射时,包括虚拟接口、物理接口、映射表。
其中,虚拟接口:设备创建的虚拟接口,预先配置有各项业务。
物理接口:设备板卡上的用于实际组网物理连接的接口。
映射表:虚拟接口到物理接口的映射表。
路由器配置的完整过程如下:
路由器设备系统初始启动后,系统中无虚拟接口,可有0个或N个物理接口,映射表为空,假设该设备在网络中的规划需要使用到3个物理接口INT1、INT2、INT3:
系统首先创建3个虚拟接口,分别为A、B、C,并根据网络规划为这3个虚拟接口配置所需的业务,包括接口IP地址、网络路由协议以及各种业务应用等(此时系统中是否存在物理接口都不影响虚拟接口的业务配置);
将该设备放置到实际组网环境中,根据组网规划连接好各物理链路;
根据网络规划,系统配置虚拟接口到物理接口的配置映射,例如:虚拟接口A的配置映射到物理接口INT1,虚拟接口B的配置映射到物理接口INT2,虚拟接口C的配置映射到物理接口INT3,并将该配置映射写入映射表,此时系统在物理接口INT1、INT2、INT3上就启用与其对应的虚拟接口的配置,设备在实际运行过程中各项业务及转发仍然正常使用物理接口,即不影响设备原有的各业务流程,该配置只是完成单纯的配置映射;
由于某些原因,需要将物理接口INT3更换为INT4,则需要在系统上删除原有的虚拟接口C到物理接口INT3的映射配置,改为将虚拟接口C的配置映射到物理接口INT4上。此时系统更新映射表中虚拟接口C的映射物理接口为INT4,同时删除INT3接口的各项业务配置,然后在INT4接口上配置虚拟接口C的所有业务;
由于某些原因,需要为物理接口INT2新增某项业务配置时,则在与其对应的虚拟接口B上完成该项业务配置,系统自动在虚拟接口B关联的物理接口上启用该项业务。
本公开实施例还提供一种路由器配置装置,可实现上述配置方法,该装置主要包括如下单元。
虚拟接口创建单元,在路由器设备启动后,根据组网规划创建一个或多个虚拟接口,在所创建的每个虚拟接口上分别进行业务配置;
映射单元,在实际组网中确定实际使用的物理接口后,按照每个虚拟接口上的业务配置将所述虚拟接口分别映射到对应的物理接口上。
可选地,映射单元按照每个虚拟接口上的业务配置将所述虚拟接口分别映射到对应的物理接口上包括:
在虚拟接口创建单元根据组网规划创建一个或多个虚拟接口后,将所创建的每个虚拟接口添加至映射表;
实际组网中确定各业务实际使用的物理接口后,根据网络规划和每个虚拟接口上的业务配置将所述映射表中的虚拟接口分别映射到对应的物理接口,路由器设备根据所述映射表中虚拟接口与物理接口的映射关系在物理接口上启用与其对应的虚拟接口上配置的业务。
可选地,映射单元根据网络规划和每个虚拟接口上的业务配置将映射表中的每个虚拟接口分别映射到对应的一个物理接口上。
在一个可选实施例中,上述装置还可以包括业务处理单元,该单元在实际组网中需要删除物理接口的业务配置时,在映射表中查找该物理接口映射的虚拟接口,删除所查找到的虚拟接口上的业务配置。
可选地,业务处理单元,在实际组网中需要更改某一个或多个物理接口的业务配置时,在映射表中查找待更改的物理接口对应的虚拟接口,修改所查找到的虚拟接口的业务配置,更改对应的物理接口的业务配置。
可选地,业务处理单元,在实际组网中需要更换某一个或多个物理接口时,在完成物理接口的物理连线后,在所述映射表中查找待更换的物理接口对应的虚拟接口,删除所查找到的虚拟接口对应的物理接口,删除该物理接口上的业务配置,将所述查找到的虚拟接口映射到更换后的新的物理接口,并将所查找到的虚拟接口上的业务配置到更换后的新的物理接口上。
由于本实施例中的装置可实现上述路由器配置方法,故针对此装置的其他说明可参见上述方法的相应内容,在此不再赘述。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本申请不限制于任何特定形式的硬件和软件的结合。
以上所述,仅为本公开的较佳实例而已,并非用于限定本公开的保护范围。凡在本公开的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。
工业实用性
本公开实施例提供的路由器配置方法,通过预先使用虚拟接口完成网络规划中接口的各项业务配置,使得物理组网连接完成后只需在路由器设备系统上将虚拟接口的业务配置映射到实际组网中的物理接口上,即可将虚拟接口上相应的业务在物理接口上启用,操作更加简单快捷,减少了网络维护人员的工作量,降低了网络维护的复杂度。

Claims (13)

  1. 一种路由器配置方法,包括:
    路由器设备启动后,根据组网规划创建一个或多个虚拟接口,在所创建的每个虚拟接口上分别进行业务配置;
    实际组网中确定各业务实际使用的物理接口后,按照每个虚拟接口上的业务配置将所述虚拟接口分别映射到对应的物理接口上。
  2. 如权利要求1所述的方法,其中,所述按照每个虚拟接口上的业务配置将所述虚拟接口分别映射到对应的物理接口上包括:
    在根据组网规划创建一个或多个虚拟接口后,将所创建的每个虚拟接口添加至映射表;
    实际组网中确定各业务实际使用的物理接口后,根据网络规划和每个虚拟接口上的业务配置将所述映射表中的虚拟接口分别映射到对应的物理接口,路由器设备根据所述映射表中虚拟接口与物理接口的映射关系在物理接口上启用与其对应的虚拟接口上配置的业务。
  3. 如权利要求2所述的方法,其中,所述根据网络规划和每个虚拟接口上的业务配置将所述映射表中的虚拟接口分别映射到对应的物理接口指:
    根据网络规划和每个虚拟接口上的业务配置将所述映射表中的每个虚拟接口分别映射到对应的一个物理接口上。
  4. 如权利要求2所述的方法,其中,该方法还包括:
    当实际组网中需要删除物理接口的业务配置时,在所述映射表中查找该物理接口映射的虚拟接口,删除所查找到的虚拟接口上的业务配置。
  5. 如权利要求2、3或4所述的方法,其中,所述方法还包括:
    当实际组网中需要更改某一个或多个物理接口的业务配置时,在所述映射表中查找待更改的物理接口对应的虚拟接口,修改所查找到的虚拟接口的业务配置,路由器设备更改对应的物理接口的业务配置。
  6. 如权利要求5所述的方法,其中,所述方法还包括:
    当实际组网中需要更换某一个或多个物理接口时,在完成物理接口的物理连线后,在所述映射表中查找待更换的物理接口对应的虚拟接口,删除所查找到的虚拟接口对应的物理接口,删除该物理接口上的业务配置,在所述映射表中将所述查找到的虚拟接口映射到更换后的新的物理接口,并将所查找到的虚拟接口上的业务配置到更换后的新的物理接口上。
  7. 一种路由器配置装置,包括:
    虚拟接口创建单元,设置为在路由器设备启动后,根据组网规划创建一个或多个虚拟接口,在所创建的每个虚拟接口上分别进行业务配置;
    映射单元,设置为在实际组网中确定实际使用的物理接口后,按照每个虚拟接口上的 业务配置将所述虚拟接口分别映射到对应的物理接口上。
  8. 如权利要求7所述的装置,其中,所述映射单元按照每个虚拟接口上的业务配置将所述虚拟接口分别映射到对应的物理接口上包括:
    所述映射单元,设置为在所述虚拟接口创建单元根据组网规划创建一个或多个虚拟接口后,将所创建的每个虚拟接口添加至映射表;
    实际组网中确定各业务实际使用的物理接口后,根据网络规划和每个虚拟接口上的业务配置将所述映射表中的虚拟接口分别映射到对应的物理接口,路由器设备根据所述映射表中虚拟接口与物理接口的映射关系在物理接口上启用与其对应的虚拟接口上配置的业务。
  9. 如权利要求8所述的装置,其中,所述映射单元根据网络规划和每个虚拟接口上的业务配置将所述映射表中的虚拟接口分别映射到对应的物理接口上指:
    所述映射单元根据网络规划和每个虚拟接口上的业务配置将所述映射表中的每个虚拟接口分别映射到对应的一个物理接口上。
  10. 如权利要求8或9所述的装置,其中,还包括:
    业务处理单元,设置为在实际组网中需要删除物理接口的业务配置时,在所述映射表中查找该物理接口映射的虚拟接口,删除所查找到的虚拟接口上的业务配置。
  11. 如权利要求10所述的装置,其中,
    所述业务处理单元,在实际组网中需要更改某一个或多个物理接口的业务配置时,在所述映射表中查找待更改的物理接口对应的虚拟接口,修改所查找到的虚拟接口的业务配置,关联更改对应的物理接口的业务配置。
  12. 如权利要求11所述的装置,其中,
    所述业务处理单元,在实际组网中需要更换某一个或多个物理接口时,在完成物理接口的物理连线后,在所述映射表中查找待更换的物理接口对应的虚拟接口,删除所查找到的虚拟接口对应的物理接口,删除该物理接口上的业务配置,将所述查找到的虚拟接口映射到更换后的新的物理接口,并将所查找到的虚拟接口上的业务配置到更换后的新的物理接口上。
  13. 一种存储介质,设置为存储程序代码,所述程序代码用于执行权利要求1至6中任一项所述的路由器配置方法。
PCT/CN2017/092160 2016-07-12 2017-07-07 一种路由器配置方法及装置 WO2018010601A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610546029.9 2016-07-12
CN201610546029.9A CN107612702A (zh) 2016-07-12 2016-07-12 一种路由器配置方法及装置

Publications (1)

Publication Number Publication Date
WO2018010601A1 true WO2018010601A1 (zh) 2018-01-18

Family

ID=60952258

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/092160 WO2018010601A1 (zh) 2016-07-12 2017-07-07 一种路由器配置方法及装置

Country Status (2)

Country Link
CN (1) CN107612702A (zh)
WO (1) WO2018010601A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110958165A (zh) * 2019-11-21 2020-04-03 深圳市共进电子股份有限公司 网络接口建立及管理方法和装置

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110958665B (zh) * 2018-09-27 2022-06-14 九阳股份有限公司 一种家电设备接入路由器网络的方法以及家电设备
CN109634678A (zh) * 2019-01-07 2019-04-16 烽火通信科技股份有限公司 一种灵活支持多种板卡的方法及系统
CN110830295B (zh) * 2019-11-08 2022-07-29 迈普通信技术股份有限公司 一种设备管理方法及系统
CN111585796B (zh) * 2020-04-27 2022-06-21 青岛海信宽带多媒体技术有限公司 一种接口切换、报文传输方法和网关设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577647A (zh) * 2009-06-15 2009-11-11 中兴通讯股份有限公司 一种支持多vlan的告警箱及其告警处理方法
CN102594660A (zh) * 2012-01-19 2012-07-18 华为技术有限公司 一种虚拟接口交换方法、装置及系统
CN103746886A (zh) * 2013-12-13 2014-04-23 北京邮电大学 一种FiWi节点和一种FiWi融合组网方法
US20140355445A1 (en) * 2013-05-31 2014-12-04 International Business Machines Corporation Link aggregation based on virtual interfaces of vlans
WO2015152659A1 (ko) * 2014-04-02 2015-10-08 삼성전자 주식회사 이동 통신 시스템에서 셀룰러 망과 무선랜 망 간 트래픽 스티어링 방법 및 장치

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1655522A (zh) * 2005-02-24 2005-08-17 港湾网络有限公司 机架式网络设备业务板预配置实现方法
CN101340340B (zh) * 2007-07-31 2012-07-11 杭州华三通信技术有限公司 接入点配置管理方法及接入控制器
CN101453399B (zh) * 2007-11-30 2012-07-04 华为技术有限公司 虚拟网络配置方法及系统
CN103369060B (zh) * 2013-07-10 2017-07-14 华为技术有限公司 一种虚拟端口的管理方法及装置
CN103825826B (zh) * 2014-02-28 2017-12-08 新华三技术有限公司 一种动态路由的实现方法和装置
US10277422B2 (en) * 2014-05-06 2019-04-30 International Business Machines Corporation Virtual port support in a logical switch architecture
CN105721566B (zh) * 2016-01-29 2019-05-24 华为技术有限公司 一种端口重定向的方法、服务器

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577647A (zh) * 2009-06-15 2009-11-11 中兴通讯股份有限公司 一种支持多vlan的告警箱及其告警处理方法
CN102594660A (zh) * 2012-01-19 2012-07-18 华为技术有限公司 一种虚拟接口交换方法、装置及系统
US20140355445A1 (en) * 2013-05-31 2014-12-04 International Business Machines Corporation Link aggregation based on virtual interfaces of vlans
CN103746886A (zh) * 2013-12-13 2014-04-23 北京邮电大学 一种FiWi节点和一种FiWi融合组网方法
WO2015152659A1 (ko) * 2014-04-02 2015-10-08 삼성전자 주식회사 이동 통신 시스템에서 셀룰러 망과 무선랜 망 간 트래픽 스티어링 방법 및 장치

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110958165A (zh) * 2019-11-21 2020-04-03 深圳市共进电子股份有限公司 网络接口建立及管理方法和装置
CN110958165B (zh) * 2019-11-21 2021-09-10 深圳市共进电子股份有限公司 网络接口建立及管理方法和装置

Also Published As

Publication number Publication date
CN107612702A (zh) 2018-01-19

Similar Documents

Publication Publication Date Title
WO2018010601A1 (zh) 一种路由器配置方法及装置
US9450823B2 (en) Hybrid network management
US10230661B2 (en) Distributed virtual network embedding
US10454708B2 (en) Network system, inter-site network cooperation control apparatus, network control method, and program
Lu et al. Hybnet: Network manager for a hybrid network infrastructure
US8782210B2 (en) Network management control program, network management control device, and network management control method
CN110535766A (zh) 一种生成路由的方法和设备
CN104754025B (zh) 可编程分布式联网
CN108123818B (zh) 一种虚实网络灵活可扩展融合的仿真方法
CN108123819B (zh) 一种虚实网络无缝融合的仿真方法
CN106953848B (zh) 一种基于ForCES的软件定义网络实现方法
US20220150154A1 (en) Automatically managing a mesh network based on dynamically self-configuring node devices
CN106302076B (zh) 建立vxlan隧道的方法、系统及sdn控制器
CN108494607A (zh) 基于容器的大二层网络架构的设计方法及系统
US20230164076A1 (en) Tag-based cross-region segment management
CN108259218A (zh) 一种ip地址分配方法和装置
US9716631B2 (en) End host physical connection on a switch port using multiple ethernet frames
CN108400922B (zh) 虚拟局域网络配置系统与方法及其计算机可读存储介质
CN104205745B (zh) 报文处理的方法与设备
US11799755B2 (en) Metadata-based cross-region segment routing
CN103428252A (zh) 一种云计算虚拟机迁移的方法、设备及系统
US9996335B2 (en) Concurrent deployment in a network environment
CN108886493B (zh) 一种具有可插拔流管理协议的基于拓扑结构的虚拟交换模型
US11683228B2 (en) Automatically managing a role of a node device in a mesh network
WO2016173196A1 (zh) 地址映射关系的学习方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17826937

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17826937

Country of ref document: EP

Kind code of ref document: A1