Routing device configuration method and routing device

By creating multiple virtual bridge interfaces on the routing device and configuring corresponding uplink and downlink interfaces, the problem of only one device being connected in the bridge mode in the existing technology is solved, and the networking of multiple devices in the bridge mode is realized, improving the user experience.

WO2025102933A1PCT designated stage expired Publication Date: 2025-05-22HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/116972
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-11-15
Filing Date
2024-09-04
Publication Date
2025-05-22

AI Technical Summary

Technical Problem

Existing routing devices can only connect one device to the Internet at the same time in bridge mode, and cannot meet the needs of accessing multiple devices.

Method used

By setting up multiple virtual bridge interfaces on the routing device, each virtual bridge interface is configured with an uplink interface and a downlink interface, and the WAN IP address of the uplink interface is configured on the downlink interface to realize the networking of multiple devices in bridge mode.

Benefits of technology

It realizes that routing devices can connect multiple devices to the Internet in bridge mode, meeting the needs of multiple devices access and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024116972_22052025_PF_FP_ABST
    Figure CN2024116972_22052025_PF_FP_ABST
Patent Text Reader

Abstract

A routing device configuration method and a routing device, relating to the technical field of communications. The method comprises: when first configuration information received by a routing device instructs configuring N downlink interfaces of the routing device to be in a bridge mode, creating N virtual bridge interfaces; configuring the N downlink interfaces and N uplink interfaces of the routing device onto the N virtual bridge interfaces; and configuring the wide area network IP addresses of the N uplink interfaces onto the N downlink interfaces. Thus, by providing the multiple virtual bridge interfaces, each interface of the N downlink interfaces is bridged to a corresponding uplink interface, so that the routing device connects in the bridge mode a plurality of devices.
Need to check novelty before this filing date? Find Prior Art

Description

Routing device configuration method and routing device

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on November 15, 2023, with application number 202311532343.8 and application name “A Routing Device Configuration Method and Routing Device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The embodiments of the present application relate to the field of communication technology, and in particular to a routing device configuration method and a routing device. Background Art

[0004] Routing devices, such as customer premises equipment (CPE), can be used to establish network connections in homes and offices. They support two networking modes: routing mode and bridging mode. In routing mode, the routing device assigns new IP addresses to connected devices, and data exchanged between the devices and upper-layer servers is forwarded through the routing device. In bridging mode, the routing device directly forwards the public IP address assigned by the server to a connected device, allowing the device to exchange data directly with the server.

[0005] In bridge mode, the router only acts as a transfer device and does not process data. At the same time, only one device connected to the router can connect to the Internet, which cannot meet the needs of multiple devices accessing the router in bridge mode.

[0006] Summary of the Invention

[0007] The embodiments of the present application provide a routing device configuration method and a routing device for connecting multiple devices in bridge mode.

[0008] In a first aspect, a method for configuring a routing device is provided, which can be executed by the routing device or by a module, unit, or chip in the routing device. The method includes: receiving first configuration information, wherein the first configuration information indicates that N downstream interfaces of the routing device are configured as bridge mode, where N is a positive integer greater than 1; creating N virtual bridge interfaces according to the first configuration information; configuring the N downstream interfaces and the N upstream interfaces of the routing device on the N virtual bridge interfaces, wherein each of the N virtual bridge interfaces is configured with an upstream interface and a downstream interface, and the upstream interfaces configured on different virtual bridge interfaces are different, and the downstream interfaces configured on different virtual bridge interfaces are different; configuring the wide area network IP addresses of the N upstream interfaces on the N downstream interfaces, and the wide area network IP addresses configured on different downstream interfaces are different.

[0009] Optionally, the first configuration information indicates an access point name (APN) corresponding to each of the N downstream interfaces, and different downstream interfaces correspond to different APNs, and each APN corresponds to an upstream interface. Taking the first downstream interface of the N downstream interfaces as an example, configuring the N upstream interfaces of the routing device on the N virtual bridge interfaces includes: configuring the first upstream interface corresponding to the APN on the first virtual bridge interface based on the APN corresponding to the first downstream interface.

[0010] In the above implementation, multiple virtual bridge interfaces are set on the routing device, an uplink interface is set on each virtual bridge interface and a downlink interface (such as a LAN interface or a Wi-Fi interface) is mounted, so that the uplink interface and the downlink interface are bridged, thereby supporting the routing device to be connected to multiple CPE devices in bridge mode.

[0011] In one possible implementation, the N downlink interfaces include N local area network (LAN) interfaces, or the N downlink interfaces include N Wi-Fi interfaces, or the N downlink interfaces include at least one LAN interface and at least one W-Fi interface.

[0012] In a possible implementation, the routing device includes a CPE.

[0013] In one possible implementation, the method also includes: respectively configuring routing rules corresponding to the N virtual bridge interfaces; wherein the N virtual bridge interfaces include a first virtual bridge interface, and the data transmission between the upstream interface and the downstream interface configured on the first virtual bridge interface follows the routing rules corresponding to the first virtual bridge interface.

[0014] In one possible implementation, the first configuration information also indicates that the M downstream interfaces of the routing device are configured as routing mode, the M downstream interfaces are different from the N downstream interfaces, and M is a positive integer; a second virtual bridge interface is created according to the first configuration information, and the second virtual bridge interface is different from the N virtual bridge interfaces; the M downstream interfaces and the first upstream interface are configured on the second virtual bridge interface, and the first upstream interface is the upstream interface corresponding to the M downstream interfaces; and a LAN IP address is configured for each of the M downstream interfaces.

[0015] Through the above implementation method, some downlink interfaces on the routing device can be configured as bridge mode, while other downlink interfaces can be configured as routing mode. This allows the routing device to support both bridge mode and routing mode, thereby meeting the needs of more scenarios and improving user experience.

[0016] In one possible implementation, the method further includes: configuring an address mapping rule on the second virtual bridge interface, wherein the address mapping rule indicates a mapping relationship between the LAN IP addresses configured on the M downstream interfaces and the WAN IP address configured on the first upstream interface.

[0017] In one possible implementation, the method also includes: receiving second configuration information, the second configuration information indicating that the bridge mode of the first downstream interface among the N downstream interfaces is changed to the routing mode, and the first downstream interface is configured on the first virtual bridge interface among the N virtual bridge interfaces; according to the second configuration information, deleting the configuration information of the first downstream interface from the first virtual bridge, and configuring the first downstream interface on the second virtual bridge interface; deleting the WAN IP address configured on the first downstream interface, and configuring a LAN IP address for the first downstream interface; configuring the second virtual bridge interface to indicate the mapping relationship between the LAN IP address configured on the first downstream interface and the WAN IP address configured on the first upstream interface.

[0018] Through the above implementation, the configuration of the routing device can be flexibly modified according to user needs.

[0019] In a second aspect, a method for configuring a routing device is provided, which can be executed by the routing device or by a module, unit, or chip in the routing device. The method includes: receiving first configuration information, wherein the first configuration information indicates that N downstream interfaces of the routing device are configured in bridge mode and another M downstream interfaces of the routing device are configured in routing mode, where N and M are both positive integers; creating N virtual bridge interfaces and a second virtual bridge interface according to the first configuration information; configuring the N downstream interfaces and N upstream interfaces of the routing device on the N virtual bridge interfaces, and configuring the M downstream interfaces and a first upstream interface on the second virtual bridge interface, where the first upstream interface is the upstream interface corresponding to the M downstream interfaces; wherein each of the N virtual bridge interfaces is configured with an upstream interface and a downstream interface, and different virtual bridge interfaces have different upstream interfaces and different downstream interfaces; configuring the wide area network (WAN) IP addresses of the N upstream interfaces on the N downstream interfaces, and configuring different WAN addresses on different downstream interfaces, and configuring a local area network (LAN) IP address for each of the M downstream interfaces.

[0020] In one possible implementation, the N downlink interfaces include N local area network (LAN) interfaces, or the N downlink interfaces include N Wi-Fi interfaces, or the N interfaces include at least one LAN interface and at least one W-Fi interface.

[0021] In a possible implementation, the routing device includes a CPE.

[0022] In one possible implementation, the method also includes: respectively configuring routing rules corresponding to the N virtual bridge interfaces; wherein the N virtual bridge interfaces include a first virtual bridge interface, and the data transmission between the upstream interface and the downstream interface configured on the first virtual bridge interface follows the routing rules corresponding to the first virtual bridge interface.

[0023] In one possible implementation, the method further includes: configuring an address mapping rule on the second virtual bridge interface, wherein the address mapping rule indicates a mapping relationship between the LAN IP addresses configured on the M downstream interfaces and the WAN IP address configured on the first upstream interface.

[0024] In a third aspect, a routing device is provided, comprising a unit or module for executing any method as described in the first aspect, or comprising a unit or module for executing any method as described in the second aspect.

[0025] In a fourth aspect, a routing device is provided, comprising: at least one processor, the at least one processor being coupled to at least one memory, the at least one processor being used to read a program stored in the at least one memory to execute a method as described in any one of the first aspects, or to execute a method as described in any one of the second aspects.

[0026] In a fifth aspect, a readable storage medium is provided, wherein a program is stored in the readable storage medium. When the program is executed by a routing device, the method as described in any one of the first aspects above or the method as described in any one of the second aspects above is implemented.

[0027] In a sixth aspect, a chip system is provided, comprising: at least one processor coupled to at least one memory, the at least one processor configured to read a program stored in the at least one memory to execute the method described in any one of the first aspect or the method described in any one of the second aspect. It should be understood that the chip system may be a standalone chip device or a system composed of multiple discrete chip devices.

[0028] In a seventh aspect, a program product is provided. When the program product runs on a routing device, the device executes the method as described in any one of the first aspects, or executes the method as described in any one of the second aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] FIG1 is a schematic diagram of a network topology of a CPE in routing mode and bridge mode in the related art;

[0030] FIG2 is a schematic diagram of a network architecture applicable to an embodiment of the present application;

[0031] FIG3 is a schematic diagram of the functional structure of a routing device provided in an embodiment of the present application;

[0032] FIG4 is a flow chart of a method for configuring a routing device according to an embodiment of the present application;

[0033] FIG5 is a schematic diagram of a routing device configuration interface provided in an embodiment of the present application;

[0034] FIG6 is a schematic diagram of the interaction flow between the functional modules in the routing device according to an embodiment of the present application;

[0035] FIG7 is a schematic diagram of a CPE network topology in Example 1 of an embodiment of the present application;

[0036] FIG8 is a schematic diagram of a CPE network topology in Example 2 of an embodiment of the present application;

[0037] FIG9 is a schematic structural diagram of a routing device provided in an embodiment of the present application;

[0038] FIG10 is a schematic structural diagram of another routing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] Routing devices are used to establish network connections in homes or offices. Routing devices support two networking modes: routing mode and bridge mode. For example, CPE is a routing device that can connect various smart devices in the home to achieve networking functions. CPE can support wireless connection to the 5G network, such as through a subscriber identity module (SIM); it can also support wired connection, such as through broadband access. It should be understood that routing devices include but are not limited to CPE, routers, mobile routers, or mobile phones, tablets, laptops, etc. with routing functions. Taking CPE as an example, (a) in Figure 1 exemplifies a networking mode of routing mode, and (b) in Figure 1 exemplifies a networking topology of bridge mode.

[0040] As shown in Figure 1 (a), in routing mode, after a CPE obtains a WAN IP address (also known as a public IP address), it does not directly assign the WAN IP address to devices connected to the CPE. Instead, it assigns a new IP address (such as a LAN IP address, also known as a private IP address) to the device connected to the CPE. Data exchange between the device and the server is forwarded through the CPE. A single WAN IP address can be mapped to multiple LAN IP addresses, allowing multiple devices to connect to the CPE.

[0041] As shown in (b) of Figure 1, in bridge mode, the CPE acts as a bridge pipe. The CPE directly sends the WAN IP address assigned to it by the server to the device connected to the CPE, and the device and the server exchange data directly.

[0042] As shown in Figure 1, the CPE has only one virtual bridge interface (Virtual Bridge Interface 0). In routing mode, the CPE's local area network (LAN) and Wi-Fi interfaces are both configured on this virtual bridge interface. In bridge mode, the LAN interface is configured on this virtual bridge interface. In bridge mode, only one device connected to the CPE can connect to the Internet at a time.

[0043] In some scenarios, multiple devices connected to a routing device need to communicate using a wide area network IP address, which means that the routing device needs to use a bridge mode networking method to connect these multiple devices to the network. For example, cameras or Internet Protocol Television (IPTV) are connected to the routing device in bridge mode at the same time. Taking cameras as an example, a residence is equipped with multiple cameras, and users need to remotely view the images captured by these multiple cameras. Since only one device connected to the routing device can connect to the Internet at the same time when the current routing device is in bridge mode, the current routing device cannot meet the above requirements.

[0044] To this end, embodiments of the present application provide a routing device configuration method and related apparatus to support networking of multiple devices in bridge mode.

[0045] The embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0046] See Figure 2, which is a schematic diagram of the system architecture provided in an embodiment of the present application.

[0047] As shown in the figure, the system architecture 200 includes a routing device 210, a server 220, a device 230a, a device 230b, and a device 230c.

[0048] The routing device 210 is provided with one or more uplink interfaces and one or more downlink interfaces. The uplink interface may include a wired interface and / or a wireless interface. The wired interface may be an interface generated after a successful wired dial-up via an Ethernet cable, and the wireless interface may be a virtual interface generated after a successful cellular wireless dial-up. The downlink interface may include a wired interface and / or a wireless interface. The wired interface may be a LAN interface, such as an Ethernet cable interface or a universal serial bus (USB) interface, and the wireless interface may be a Wi-Fi interface.

[0049] The uplink interface may also be referred to as an uplink interface, and the downlink interface may also be referred to as a downlink interface.

[0050] The routing device 210 includes a CPE, a router, a mobile router, or other devices with similar functions (such as a mobile phone, a tablet, a laptop), which is not limited in this application.

[0051] The server 220 can be connected to the uplink interface of the routing device 210 via a wired or wireless connection. For example, the server 220 can be connected to the uplink interface of the routing device 210 via a wired connection (e.g., a network cable), or the server 220 can be connected to the uplink interface of the routing device 210 via a wireless connection.

[0052] It should be understood that the server 220 includes a business server. Exemplarily, the server 220 includes a hypertext transfer protocol (HTTP) business server or a virtual private network (VPN) business server.

[0053] Device 230a, device 230b and device 230c can be wirelessly or wiredly connected to the downlink interface of routing device 210. For example, device 230a, device 230b and device 230c can be connected to the LAN interface via a network cable, or can be wirelessly connected to the Wi-Fi interface of the routing device.

[0054] Optionally, device 230a, device 230b, and device 230c may include devices that provide voice and / or data connectivity to a user, specifically, devices that provide voice to a user, devices that provide data connectivity to a user, or devices that provide voice and data connectivity to a user. For example, the device may be a handheld device with wireless connectivity, or a processing device connected to a wireless modem. For example, it may include a mobile phone (or "cellular" phone), a computer with mobile device, a portable, pocket-sized, handheld, personal computer, etc. Another example may include a personal communication service (PCS) phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), and the like.

[0055] Optionally, the downlink interface of the routing device 210 can also be connected to another routing device, and the other routing device can be connected to one or more devices. In other words, the networking of devices can be achieved by cascading multiple routing devices.

[0056] It should be understood that the system architecture shown in FIG. 2 is merely an example. In other system architectures, the routing device may be connected to more or fewer devices, or to more servers, and this application does not limit this.

[0057] See FIG3 , which is a schematic structural diagram of a routing device provided in an embodiment of the present application.

[0058] As shown in FIG. 3 , the routing device 300 may include the following functional modules: a configuration parsing module 310 , a dialing module 320 , a networking module 330 , and a routing module 340 .

[0059] The configuration parsing module 310 is used to parse the received configuration information of the routing device and distribute the parsed information to the dialing module 320 and the networking module 330. The configuration information sent to the dialing module 320 includes the access point name (APN), and the configuration information sent to the networking module 330 includes the mode type of the downlink interface. For a downlink interface, its mode type includes routing mode or bridge mode.

[0060] The dialing module 320 is responsible for performing multi-way or single-way dialing according to the APN set by the user. After the dialing is successful, the WAN IP address information, such as the WAN IP address and its subnet mask, can be obtained.

[0061] The networking module 330 is responsible for creating and configuring a virtual bridge interface according to the received mode type of the downlink interface.

[0062] The routing module 340 is responsible for setting corresponding routing rules according to relevant configurations after the dialing is successful.

[0063] For the specific configuration operations of the routing device 300, please refer to the following description.

[0064] It should be understood that the above structure of the routing device 300 is only one possible example. In other examples, the above two or more functional modules may be combined, or the above functional modules may be further split, which is not limited in this application.

[0065] Referring to Figure 4, there is shown a flowchart illustrating a method for configuring a routing device according to an embodiment of the present application. This method enables a routing device to support networking of multiple devices in bridge mode. The method according to an embodiment of the present application is performed by a routing device, such as routing device 210 in Figure 2. It should be understood that this process may also be implemented by a chip, unit, or module having routing device functionality, and this application is not limited thereto.

[0066] As shown in FIG4 , the method 400 may include the following steps:

[0067] Step 401: A routing device receives first configuration information, where the first configuration information indicates that N downlink interfaces of the routing device are configured as bridge mode, where N is a positive integer greater than or equal to 1.

[0068] Optionally, the N downlink interfaces include N LAN interfaces, or the N downlink interfaces include N Wi-Fi interfaces, or the N downlink interfaces include at least one LAN interface and at least one W-Fi interface.

[0069] Optionally, the first configuration information may include information, a mode type, and a corresponding APN of each downlink interface among the N downlink interfaces.

[0070] The APN is the name used by wireless network service providers to provide wireless access to devices. In mobile communication networks, the APN is used to identify and locate the packet data network (PDN) required by mobile devices. The APN can be understood as a unique identifier through which mobile devices can connect to the corresponding PDN. The PDN includes, for example, private networks such as corporate intranets, the Internet, wireless application protocol (WAP) websites, and industry intranets.

[0071] The information of a downstream interface may be the identifier and / or address information of the downstream interface. The identifier of a downstream interface is generally pre-configured in the routing device, and the address information of the downstream interface may be configured by the routing device. The mode type of a downstream interface includes bridge mode or routing mode. In an embodiment of the present application, the mode type of the N interfaces is set to bridge mode. The APN corresponding to a downstream interface may be a default APN or a user-specified (or user-set) APN. When N is greater than 1 (or when multiple downstream interfaces are configured as bridge mode), different downstream interfaces correspond to different APNs, and each APN corresponds to an upstream interface. It should be understood that the APN or the WAN IP address obtained after the APN dialing is successful is configured on the upstream interface of the routing device, so it can be considered that there is a corresponding relationship between the APN and the upstream interface.

[0072] Optionally, the first configuration information is configuration information set by a user, and the first configuration information is used to set a networking mode of the routing device.

[0073] In the embodiment of the present application, the networking mode of the routing device can be configured through an application or a world wide web (Web) configuration interface or other methods. In the embodiment of the present application, multiple downlink interfaces of the routing device can be configured as a bridge mode.

[0074] For example, taking the configuration of a routing device through a Web configuration interface as an example, the configuration process may include the following steps: connecting a mobile phone, tablet computer or other device to the default Wi-Fi of the routing device (the name of the default Wi-Fi is generally printed on the nameplate of the routing device); after the mobile phone or other device is connected to the default Wi-Fi, the Web configuration page of the routing device is displayed on the screen of the device; the user can select the downlink interface of the routing device, the APN corresponding to the downlink interface and the mode type of the downlink interface (the mode type includes bridge mode or routing mode) through the Web configuration page; after the user submits the configuration information to the routing device, the routing device can complete the networking configuration according to the received configuration information.

[0075] Figure 5 illustrates a schematic diagram of a configuration interface for a routing device. Figure 5 uses the example of a routing device with four downlink interfaces: LAN1, LAN2, LAN3, and 5GHz Wi-Fi. As shown in Figure 5, the routing device's web configuration page provides configuration options for at least four downlink interfaces for the user to select or set. As shown in the figure, the configuration items for a downlink interface may include the following: an interface selection item, a mode type selection item, and a dial-up APN configuration item. The interface selection item provides a drop-down menu containing a list of the routing device's downlink interfaces, such as LAN1, LAN2, LAN3, and 5GHz Wi-Fi, allowing the user to select a downlink interface from the drop-down menu for configuration. The mode type selection item includes a bridge mode switch button and a router mode switch button for the user to select the mode type (or networking mode) of the downlink interface. The APN configuration item is used to configure the APN corresponding to the downlink interface. This embodiment of the present application allows for the configuration of a default APN for the downlink interface. For example, the "AUTO" item shown in Figure 5 indicates that the user has requested that the routing device configure a default APN for the LAN1 interface. The default APN is pre-configured on the routing device. The embodiment of the present application also allows the user to specify a specific APN for the downlink interface. For example, the "APN1" shown in FIG. 5 is the APN specified for the "LAN2" interface.

[0076] Optionally, in the configuration interface shown in Figure 5, APN1 can be displayed as an identifier, or it can be displayed as information that is easy for users to understand and remember (referred to as APN information in the embodiment of this application), such as the abbreviation of the name of the network operator or the abbreviation of the name of the network provided by the network operator, etc., which is not limited in this application.

[0077] It should be understood that for an APN, its identifier and APN information have a one-to-one correspondence and both can identify the APN. In some embodiments of the present application, the APN and the APN information can be replaced with each other.

[0078] Based on the web configuration page shown in Figure 5, you can configure the downstream interfaces LAN1, LAN2, LAN3, and 5GHz Wi-Fi to bridge mode.

[0079] It should be understood that FIG5 is only an example diagram of a possible routing device web configuration page, and the embodiment of the present application is not limited thereto.

[0080] Step 402: The routing device creates N virtual bridge interfaces according to the received first configuration information.

[0081] In this step, since the first configuration information indicates that the N downstream interfaces are configured as bridge mode, the routing device configures a virtual bridge interface for each downstream interface.

[0082] The virtual bridge interface can be understood as a logical interface, a functional module, a functional unit, an instance, a process, a thread, etc. The virtual bridge interface corresponding to a downlink interface can be configured with information about the downlink interface (such as the downlink interface identifier) ​​and the APN information corresponding to the downlink interface (or the uplink interface information and / or WAN IP address information corresponding to the APN). During data transmission, the virtual bridge interface can forward data from the downlink interface to the uplink interface corresponding to the APN configured on the virtual bridge interface, thereby transmitting data from the device connected to the downlink interface to the corresponding network via the uplink interface.

[0083] Step 403: The routing device configures the N downlink interfaces and the N uplink interfaces of the routing device on the N virtual bridge interfaces.

[0084] The routing device may configure the information of the N downlink interfaces and the information of the N uplink interfaces on the N virtual bridge interfaces, thereby implementing the configuration of the virtual bridge interfaces.

[0085] Each of the N virtual bridge interfaces is configured with information about an uplink interface and information about a downlink interface, and different virtual bridge interfaces have different uplink interface information and different downlink interface information. By configuring the information about a downlink interface and the information about an uplink interface on a virtual bridge interface, bridging of the downlink interface and the uplink interface can be achieved.

[0086] Optionally, the downlink interface information may be an identifier and / or address information of the downlink interface, which is not limited in this application. The identifier of the downlink interface may be pre-configured in the routing device, and the address information of the downlink interface may be configured by the routing device.

[0087] Optionally, the downlink interface information may be at least one of an identifier of the downlink interface, APN information, wide area network IP address information obtained after successful dialing using the APN, or a pseudo address corresponding to the wide area network IP address information. The pseudo address has a one-to-one correspondence with the wide area network IP address.

[0088] Taking Figure 5 as an example, in the first configuration information of the routing device shown in the figure, the LAN1 interface is configured in bridge mode and the corresponding APN is the default APN. On this routing device, the default APN is configured on the WAN1 interface, which means that the uplink interface corresponding to the default APN is WAN1. Based on this first configuration information, in step 402, the routing device creates four virtual bridge interfaces, represented as Virtual Bridge Interface 1, Virtual Bridge Interface 2, Virtual Bridge Interface 3, and Virtual Bridge Interface 4. In step 403, the routing device configures the LAN1 identifier and default APN information (or the WAN interface identifier corresponding to the default APN) on Virtual Bridge Interface 1, the LAN2 identifier and APN1 information (or the WAN interface identifier corresponding to APN1) on Virtual Bridge Interface 2, the LAN3 identifier and APN2 identifier (or the WAN interface identifier corresponding to APN2) on Virtual Bridge Interface 3, and the 5GHz Wi-Fi port identifier and APN3 information (or the WAN interface identifier corresponding to APN3) on Virtual Bridge Interface 4.

[0089] Optionally, the routing device may also configure address information for each virtual bridge interface. The address identifies the virtual bridge interface and is used to configure routing rules.

[0090] Step 404: The routing device configures the WAN IP addresses of the N upstream interfaces on the N downstream interfaces, and the WAN IP addresses configured on different downstream interfaces are different.

[0091] Optionally, the routing device can use the set APN to execute the dialing process. After the dialing is successful, the routing device obtains the WAN IP address information corresponding to the APN, such as the WAN IP address (WAN IP address) and subnet mask. The routing device configures the WAN IP address information on the corresponding downstream interface.

[0092] Taking Figure 5 as an example, the routing device uses the default APN to dial to obtain WAN IP address 1, uses APN1 to dial to obtain WAN IP address 2, uses APN2 to dial to obtain WAN IP address 3, and uses APN3 to dial to obtain WAN IP address 4; the routing device configures WAN IP address 1 on the LAN1 interface, WAN IP address 2 on the LAN2 interface, WAN IP address 3 on the LAN3 interface, and WAN IP address 4 on the 5GHz Wi-Fi interface.

[0093] In a possible implementation, the above method may further include the following steps: the routing device configures the routing rules corresponding to the N virtual bridge interfaces respectively. Taking the first virtual bridge interface among the N virtual bridge interfaces as an example, the routing rules corresponding to the first virtual bridge interface are used for data transmission between the uplink interface and the downlink interface configured on the first virtual bridge interface. In other words, the routing rules corresponding to the first virtual bridge interface are used to guide the data transmission between the uplink interface and the downlink interface configured on the first virtual bridge interface, or in other words, the data transmission between the uplink interface and the downlink interface follows the routing rules.

[0094] Exemplarily, the routing rules configured on the first virtual bridge interface instruct the first virtual bridge interface not to perform address conversion on the data from the downstream interface configured on the first virtual bridge interface, that is, the source address remains as the WAN IP address, and the WAN IP address is the WAN IP address configured on the downstream interface. The first virtual bridge interface directly routes the data to the upstream interface configured on the first virtual bridge interface and sends it out, or the first virtual bridge interface directly sends the data to the network corresponding to the APN configured on the first virtual bridge interface.

[0095] By using the above-described embodiments of the present application, multiple downlink interfaces of a routing device can be configured in bridge mode, so that the routing device can simultaneously support multiple devices connected to the routing device in bridge mode for networking, or support multiple devices to simultaneously use bridge mode to connect to the routing device through the routing device. This makes the routing device suitable for more complex scenarios, thereby improving the user experience. For example, it can be applied to scenarios where multiple devices need to be accessed using wide area network IP addresses.

[0096] For example, if a residence is equipped with multiple (e.g., two or more) cameras, these cameras can be connected to multiple downlink interfaces of a routing device, and the multiple downlink interfaces of the routing device can be configured in bridge mode using the method provided in the embodiments of the present application. In this way, these multiple cameras can use the WAN IP address to simultaneously transmit uplink data through the routing device, allowing users to remotely view images captured by these N cameras simultaneously.

[0097] In some embodiments of the present application, while configuring one or more downstream interfaces to bridge mode, the routing device may also configure one or more other downstream interfaces to routing mode, thereby enabling the routing device to support both bridge mode and routing mode.

[0098] For example, in one possible implementation, the above-mentioned first configuration information also indicates that the M (M is a positive integer greater than or equal to 1) downstream interfaces of the routing device are configured as routing mode, and the M downstream interfaces are different from the N downstream interfaces; the routing device creates a second virtual bridge interface according to the first configuration information, and the second virtual bridge interface is different from the N virtual bridge interfaces; the routing device configures the M downstream interfaces and the first upstream interface on the second virtual bridge interface, and the first upstream interface is the upstream interface corresponding to the M downstream interfaces.

[0099] The routing device further configures a LAN IP address for each of the M downstream interfaces. In one possible implementation, the routing device may configure the LAN IP address for the M downstream interfaces based on the LAN IP address set by the user. In another possible implementation, the routing device may configure the LAN IP address for the M downstream interfaces on its own, such as by enabling a Dynamic Host Configuration Protocol (DHCP) service function to automatically configure the LAN IP address for the M downstream interfaces through the DHCP service. This application is not limited to this.

[0100] Optionally, the routing device may further configure an address mapping rule on the second virtual bridge interface, where the address mapping rule indicates a mapping relationship between the LAN IP addresses configured on the M downstream interfaces and the WAN IP address configured on the first upstream interface.

[0101] Optionally, the routing device may further configure address information for the second virtual bridge interface. The address information of the second virtual bridge interface may be the gateway address of the IP address range corresponding to the downstream interface configured on the virtual bridge interface. For example, if the IP address range corresponding to the downstream interface is 192.168.8.0 / 24, the corresponding gateway address is 192.168.8.1.

[0102] Optionally, the routing device may also configure routing rules corresponding to the second virtual bridge interface. The routing rules corresponding to the second virtual bridge interface are used for data transmission between the uplink interface and the downlink interface configured on the second virtual bridge interface; or in other words, the routing rules corresponding to the second virtual bridge interface are used to guide data transmission between the uplink interface and the downlink interface configured on the second virtual bridge interface; or in other words, the data transmission between the uplink interface and the downlink interface configured on the second virtual bridge interface follows the routing rules corresponding to the second virtual bridge interface.

[0103] For example, virtual bridge interface br0 corresponds to APN1, virtual bridge interface br1 corresponds to APN2, APN1 corresponds to uplink interface eht_x1, and APN2 corresponds to uplink interface eth_x2. In this case, the routing module in the routing device can configure routing rules by executing the following instructions:

[0104] (1) Configure the default routing rules:

[0105] ip route add default via 10.xx.xx.1dev eth_x1;

[0106] 10.xx.xx.1 represents a pseudo address configured on the uplink interface eth_x1. This pseudo address corresponds to APN1, or the WAN IP address obtained by dialing using APN1, and is used to send packets received by the routing device from the outside to the uplink interface eth_x1. For example, based on this routing rule, upon receiving a packet from the server, the routing device can modify the source address of the packet to the pseudo address configured on the uplink interface eth_x1.

[0107] ip route add default via 10.xx.xx.2dev eth_x2;

[0108] 10.xx.xx.2 represents a pseudo address configured on the uplink interface eth_x2. This pseudo address corresponds to APN2, or the WAN IP address obtained by dialing using APN2. It is used to send packets received by the routing device from the outside to the uplink interface eth_x2. For example, based on this routing rule, upon receiving a packet from the server, the routing device can modify the source address of the packet to the pseudo address configured on the uplink interface eth_x2.

[0109] (2) Configure the routing rules from the downlink interface to the virtual bridge interface:

[0110] ip route add 192.168.8.0 / 24 dev br0 proto kernel scope link src 192.168.8.1;

[0111] 192.168.8.1 is the gateway address configured on virtual bridge interface br0, or in other words, 192.168.8.1 is the address of virtual bridge interface br0. 192.168.8.0 / 24 represents the IP address range. This routing rule sends packets from the downstream interface with source addresses within the 192.168.8.0 / 24 address range to virtual bridge interface br0.

[0112] ip route add 192.168.9.0 / 24 dev br1 proto kernel scope link src 192.168.9.1;

[0113] 192.168.9.1 is the gateway address configured on virtual bridge interface br1, or in other words, 192.168.9.1 is the address of virtual bridge interface br1. 192.168.9.0 / 24 represents the IP address range. This routing rule allows packets originating from the downstream interface with source addresses within the 192.168.9.0 / 24 address range to be sent to virtual bridge interface br1.

[0114] (3) For the downlink interface and uplink interface configured on the virtual bridge interface, configure routing rules between the uplink interface and the downlink interface.

[0115] Similarly, the routing device can also configure a routing rule between the uplink interface eth_x1 and the downlink interface (address range 192.168.8.0 / 24) configured on the virtual bridge interface br0. This routing rule works in conjunction with the routing rule configured above, forwarding packets from the downlink interface with an address range of 192.168.8.0 / 24 to the uplink interface eth_x1.

[0116] Similarly, the routing device can also configure a routing rule between the uplink interface eth_x2 and the downlink interface (address range 192.168.9.0 / 24) configured on the virtual bridge interface br1. This routing rule works in conjunction with the previously configured routing rule to forward packets from the downlink interface with an address range of 192.168.9.0 / 24 to the uplink interface eth_x2.

[0117] Exemplarily, the routing rules configured on the second virtual bridge interface instruct the second virtual bridge interface to perform address conversion on the data from the downlink interface configured on the second virtual bridge interface according to the mapping relationship between the LAN IP address and the WAN IP address, that is, the source address is converted from the LAN IP address to the corresponding WAN IP address according to the mapping relationship, and the second virtual bridge interface routes the address-converted data to the uplink interface configured on the second virtual bridge interface and sends it out, or the second virtual bridge interface sends the data to the network corresponding to the APN configured on the second virtual bridge interface according to the APN configured on the second virtual bridge interface.

[0118] Optionally, the routing device can also configure some data filtering rules (such as a firewall) on the second virtual bridge interface. When the second virtual bridge interface receives data from the downlink interface configured on the second virtual interface, it can process the data according to the data filtering rules and route the processed data to the uplink interface configured on the second virtual bridge interface and send it out.

[0119] In some other embodiments, after configuring N downstream interfaces to bridge mode according to the first configuration information, the routing device may further configure M downstream interfaces of the routing device to routing mode according to the received new configuration information. In other words, the configuration information for configuring the N interfaces to bridge mode and the configuration information for configuring the M downstream interfaces to routing mode are submitted to the routing device separately. Whether the same configuration information instructs the routing device to configure the N interfaces to bridge mode and the M interfaces to routing mode, or different configuration information instructs the routing device to configure the N interfaces to bridge mode and the M interfaces to routing mode, the configuration method of the routing device is the same as the configuration method described in the above embodiment and will not be repeated here.

[0120] By adopting the above-mentioned embodiments of the present application, some of the downlink interfaces of the routing device can be configured as bridge mode, and other downlink interfaces can be configured as routing mode, so that the routing device can support both bridge mode and routing mode at the same time, thereby making the routing device suitable for more complex scenarios, thereby improving the user experience.

[0121] For example, the method provided in the embodiment of the present application can achieve the following requirements: when a user is outdoors, his mobile phone can be connected to a CPE installed outdoors and connected to the Internet through the Wi-Fi provided by the CPE; the CPE is also connected to a router installed indoors, and when the user is indoors, his mobile phone can be connected to the Internet through the Wi-Fi provided by the indoor router, so that the user's mobile phone can be connected to the Internet whether indoors or outdoors. The specific implementation method is: a CPE is installed outdoors, one downlink interface of the CPE (for example, a first downlink interface) is configured in bridge mode and connected to a router installed indoors, one or more downlink interfaces of the router can be configured in routing mode, so that devices connected to the one or more downlink interfaces can be connected to the Internet through the Wi-Fi provided by the router; another downlink interface of the CPE (for example, a second downlink interface) is configured in routing mode, so that devices connected to the second downlink interface of the CPE can be connected to the Internet through the Wi-Fi provided by the CPE.

[0122] Some embodiments of the present application can also modify the mode type of the downlink interface of the routing device. When a user requests to change the bridge mode of a downlink interface to the routing mode through configuration information, the routing device removes the downlink interface from the original virtual bridge interface (or deletes the configuration of the downlink interface on the virtual bridge interface) and bridges the downlink interface to the existing virtual bridge interface (or configures the downlink interface to the existing virtual bridge interface). The existing virtual bridge interface is a virtual bridge interface of a downlink interface configured with routing mode.

[0123] Specifically, the routing device receives second configuration information, and the second configuration information indicates that the bridge mode of the first downstream interface among the above-mentioned N downstream interfaces is modified to the routing mode, and the first downstream interface is configured on the first virtual bridge interface among the N virtual bridge interfaces; the routing device deletes the configuration information of the first downstream interface from the first virtual bridge according to the second configuration information, and configures the first downstream interface on the second virtual bridge interface; the routing device deletes the WAN IP address configured on the first downstream interface, and configures a LAN IP address for the first downstream interface; the routing device configures address mapping relationship information on the second virtual bridge interface, and the address mapping relationship information is used to indicate the mapping relationship between the LAN IP address configured on the first downstream interface and the WAN IP address configured on the first upstream interface.

[0124] For example, the networking module in the routing device can implement the operation of removing the second downlink interface LAN2 of the routing device from the original virtual bridge interface br0 by executing the following instructions:

[0125] brctl delif br0 eth0.2; br0 indicates the identifier of virtual bridge interface 0, eth0.2 indicates that the uplink interface eht0 and the second downlink interface LAN2 on the routing device are configured on the virtual bridge interface, and delif indicates the operator for the bridge removal operation.

[0126] For example, the networking module in the routing device can implement a bridge operation of mounting the downlink interface LAN2 to the virtual bridge interface br1 by executing the following instructions:

[0127] brctl addif br1 eth0.2; br1 is the identifier of virtual bridge interface 1, eth0.2 indicates that the uplink interface eht0 and the second downlink interface LAN2 on the routing device are configured on the virtual bridge interface; addif is the operator of the bridge operation.

[0128] Optionally, if there is no virtual bridge interface with a downstream interface configured in routing mode, the routing device can first create a virtual bridge interface, then configure the first downstream interface on the newly created virtual bridge interface, and configure address mapping relationship information on the newly created virtual bridge interface. The address mapping relationship information indicates the mapping relationship between the LAN IP address configured on the first downstream interface and the WAN IP address configured on the first upstream interface.

[0129] In some other embodiments of the present application, it is also possible to modify the routing mode of the downstream interface of the routing device to a bridge mode. The specific implementation method is similar to the above-mentioned modification of the bridge mode of the downstream interface to the routing mode. When a user requests to modify the routing mode of a downstream interface to a bridge mode through configuration information, the routing device removes the downstream interface from the original virtual bridge interface and creates a new virtual bridge interface, connects the downstream interface to the newly created virtual bridge interface, and configures the WAN IP address on the downstream interface and / or the new virtual bridge interface.

[0130] Based on the functional module structure of the routing device shown in FIG3 , a possible implementation process of the method shown in FIG4 above may be shown in FIG6 .

[0131] As shown in FIG6 , the method 600 may include the following steps:

[0132] Step 601: A configuration parsing module in a routing device receives configuration information from an application or a web configuration page used to configure the routing device.

[0133] In this step, the user sends configuration information through the web configuration interface or through the application. The configuration information includes the identifier, mode type and corresponding APN of each downlink interface in one or more downlink interfaces. An example of the configuration information is the first configuration information in Figure 4 above.

[0134] Step 602 and step 603: The configuration parsing module sends the identifier and mode type of the downstream interface to the networking module, and sends the APN of the downstream interface to the dialing module.

[0135] In this step, the routing device parses the received configuration information and sends the relevant information to the corresponding module, such as sending the identifier and mode type of the downlink interface to the networking module and sending the APN to the dialing module.

[0136] Step 604: After receiving the identifier and mode type of the downlink interface, the networking module creates a virtual bridge interface and configures the virtual interface.

[0137] After the networking module receives the identifier and mode type of the downstream interface, it determines the number of virtual bridge interfaces based on the mode type of the downstream interface and creates a corresponding number of virtual bridge interfaces. For example, if the configuration information indicates that the LAN1 interface, LAN2 interface, and 2.4GHz Wi-Fi interface are in routing mode, and the LAN3 interface, LAN4 interface, and 5GHz Wi-Fi interface are in bridge mode, then four virtual bridge interfaces need to be created. Among them, the LAN1 interface, LAN2 interface, and 2.4GHz Wi-Fi interface are configured on virtual bridge interface 1, the LAN3 interface is configured on virtual bridge interface 2, the LAN4 interface is configured on virtual bridge interface 3, and the 5GHz Wi-Fi interface is configured on virtual bridge interface 4. In other words, the downstream interfaces in routing mode can be configured on the same virtual bridge interface, and each downstream interface in bridge mode is configured on the corresponding virtual bridge interface.

[0138] The specific implementation of this step can refer to the above embodiment.

[0139] Step 605: After receiving the APN, the dialing module dials according to the APN.

[0140] In this step, after receiving the APN, the dial-up module uses the APN to trigger the dial-up process. After the dial-up is successful, the WAN IP address and subnet mask corresponding to the APN can be obtained.

[0141] Step 606: The dialing module sends a notification message to the routing module after the dialing is successful. Optionally, the notification message may include information such as the WAN IP address and subnet mask obtained after the dialing is successful.

[0142] Step 607: After the networking module completes configuring the virtual bridge interface, it sends a notification message to the routing module.

[0143] Step 608: The routing module configures routing rules after receiving the networking success notification from the networking module and the dialing success notification from the dialing module.

[0144] In this step, after receiving the notification message of successful dialing and networking, the routing module starts the routing rule setting and sets the corresponding routing rules according to the WAN IP address and networking topology to route the data of the corresponding downlink interface to the specified uplink interface.

[0145] It should be understood that the order of steps in the process shown in FIG6 is only a possible example and is not limited in this application.

[0146] Based on the process of the method shown in FIG. 4 or FIG. 6 , FIG. 7 and FIG. 8 respectively show schematic diagrams of CPE networking topologies implemented according to the method shown in FIG. 4 or FIG. 6 .

[0147] In the example shown in Figure 7, the configuration information received by the CPE is shown in Table 1:

[0148] Table 1: Configuration information received by the CPE

[0149] It should be understood that the data structure of the configuration information received by the CPE may also be in other data structure forms. The table form is used here for easier understanding.

[0150] Based on the above configuration information, the CPE creates a virtual bridge interface bridge1 for the LAN1 interface in routing mode and the Wi-Fi interface. The LAN1 interface and the Wi-Fi interface are configured on this virtual bridge interface. Device 1 is connected to the LAN1 interface, and Device 2 is connected to the Wi-Fi interface.

[0151] Based on the above configuration, the CPE creates a virtual bridge interface for each downstream interface in bridge mode. Specifically, virtual bridge interfaces bridge2 and bridge3 are created. LAN2 is configured on virtual bridge interface bridge2, and LAN3 is configured on virtual bridge interface bridge3. Device 3 is connected to LAN2, and Device 4 is connected to LAN3.

[0152] The virtual bridge interface bridge1 is also configured with an uplink interface eth_x1, the virtual bridge interface bridge2 is also configured with an uplink interface eth_x2, and the virtual bridge interface bridge3 is also configured with an uplink interface eth_x3.

[0153] After the CPE successfully dials using APN1, it obtains the WAN IP address 10.xx.xx.10 and configures the WAN IP address on the virtual bridge interface bridge1 and / or the uplink interface eth_x1.

[0154] After the CPE successfully dials using APN2, it obtains the WAN IP address 5.xx.xx.5 and configures the WAN IP address on the LAN2 interface. Furthermore, it can also be configured on the virtual bridge interface bridge2 and / or the uplink interface eth_x2.

[0155] After the CPE successfully dials using APN3, it obtains the WAN IP address 6.xx.xx.6 and configures the WAN IP address on the LAN3 interface. Furthermore, it can also be configured on the virtual bridge interface bridge3 and / or the uplink interface eth_x3.

[0156] The CPE configures LAN IP addresses for the LAN1 interface and the Wi-Fi interface in routing mode, respectively. For example, 192.168.xx.2 is configured for the LAN1 interface, and 192.168.xx.3 is configured for the Wi-Fi interface.

[0157] In the example shown in Figure 8, the configuration information received by the CPE is shown in Table 2:

[0158] Table 2: Configuration information received by the CPE

[0159] It should be understood that the data structure of the configuration information received by the CPE may also be in other data structure forms. The table form is used here for easier understanding.

[0160] Based on the above configuration information, the CPE creates a virtual bridge interface bridge1 for the LAN1 interface in routing mode and the Wi-Fi interface. The LAN1 interface and the Wi-Fi interface are configured on this virtual bridge interface. Device 1 is connected to the LAN1 interface, and Device 2 is connected to the Wi-Fi interface.

[0161] Based on the above configuration, the CPE creates a virtual bridge interface for each downstream interface in bridge mode. Specifically, virtual bridge interfaces bridge2 and bridge3 are created. LAN2 is configured on virtual bridge interface bridge2, and LAN3 is configured on virtual bridge interface bridge3. Device 3 is connected to LAN2, and Device 4 is connected to LAN3.

[0162] Virtual bridge interfaces bridge1 and bridge2 are also configured with uplink interface eth_x1, and virtual bridge interface bridge3 is also configured with uplink interface eth_x3. In other words, a virtual bridge interface used to configure a downlink interface in routing mode and a virtual bridge interface used to configure a downlink interface in bridge mode can be configured with the same uplink interface, or in other words, use the same APN. For example, as shown in Table 2, the Wi-Fi interface in routing mode and the LAN2 interface in bridge mode can use the same APN1. Accordingly, virtual bridge interfaces bridge1 and bridge2 are configured with the same uplink interface eth_x1.

[0163] After the CPE successfully dials using APN1, it obtains the WAN IP address 10.xx.xx.10 and configures the WAN IP address on virtual bridge interfaces bridge1 and bridge2, and also on the uplink interface eth_x1.

[0164] After the CPE successfully dials using APN3, it obtains the WAN IP address 6.xx.xx.6 and configures the WAN IP address on the virtual bridge interface bridge3 and / or the uplink interface eth_x3.

[0165] The CPE configures LAN IP addresses for the LAN1 interface and the Wi-Fi interface in routing mode, respectively. For example, 192.168.xx.2 is configured for the LAN1 interface, and 192.168.xx.3 is configured for the Wi-Fi interface.

[0166] It is understood that in order to implement the functions in the above embodiments, the routing device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should readily appreciate that, in combination with the various exemplary units and method steps described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and software. Whether the first function is executed in hardware or software-driven hardware depends on the specific application scenario and design constraints of the technical solution.

[0167] Figures 9 and 10 are schematic diagrams of possible devices provided in embodiments of the present application. These devices can be used to implement the functions of the routing device in the above-described method embodiments, thereby also achieving the beneficial effects of the above-described method embodiments. In the embodiments of the present application, the device can be a routing device (such as a CPE) as shown in Figure 2, or a module (such as a chip) applied to a routing device.

[0168] As shown in Figure 9 , a device 900 includes a processing unit 910 and a transceiver unit 920. The device 900 is used to implement the function of the routing device in the method embodiment shown in Figure 4 above.

[0169] For example, when the device 900 is used to implement the function of the routing device in the method embodiment shown in Figure 4: the transceiver unit 920 is used to receive the first configuration information, and the first configuration information indicates that the N downstream interfaces of the routing device are configured as bridge mode, and N is a positive integer greater than 1; the processing unit 910 is used to create N virtual bridge interfaces according to the first configuration information, and configure the N downstream interfaces and the N upstream interfaces of the routing device on the N virtual bridge interfaces, wherein each of the N virtual bridge interfaces is configured with an upstream interface and a downstream interface, and the upstream interfaces configured on different virtual bridge interfaces are different, and the downstream interfaces configured on different virtual bridge interfaces are different; the WAN IP addresses of the N upstream interfaces are configured on the N downstream interfaces, and the WAN IP addresses configured on different downstream interfaces are different.

[0170] A more detailed description of the processing unit 910 and the transceiver unit 920 can be directly obtained by referring to the relevant description in the method embodiment shown in FIG4 , and is not repeated here.

[0171] As shown in Figure 10, device 1000 includes a processor 1010 and an interface circuit 1020. Processor 1010 and interface circuit 1020 are coupled to each other. It is understood that interface circuit 1020 can be a transceiver or an input / output interface. Optionally, device 1000 may also include a memory 1030 for storing programs / instructions executed by processor 1010, or storing input data required by processor 1010 to run programs / instructions, or storing data generated after processor 1010 runs programs / instructions.

[0172] When the device 1000 is used to implement the method shown in FIG. 4 , the processor 1010 is used to implement the functions of the processing unit 910 , and the interface circuit 1020 is used to implement the functions of the transceiver unit 920 .

[0173] When the above device is a chip used in a routing device, the chip implements the functions of the routing device in the above method embodiment. The chip receives information from other modules in the routing device; or the chip sends information to other modules in the routing device.

[0174] It is understood that the processor in the embodiments of the present application may be a central processing unit (CPU), or may be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.

[0175] In this application, another example of a device is provided, which includes at least one processor and at least one memory, the at least one processor and the at least one memory being coupled, the at least one memory being used to store programs or instructions. When the programs or instructions are executed by the at least one processor, the device performs the methods in the above-described embodiments. For example, as shown in FIG10 , a device 1000 includes a processor 1010 and a memory 1030. The processor 1010 and the memory 1030 are coupled, and the memory 1030 stores programs or instructions. When the programs or instructions stored in the memory 1030 are executed by the processor 1010, the device 1000 performs the methods performed by the routing device in the above-described embodiments.

[0176] The method steps in the embodiments of the present application can be implemented in hardware or in software instructions that can be executed by a processor. The software instructions can be composed of corresponding software modules, which can be stored in random access memory, flash memory, read-only memory, programmable read-only memory, erasable programmable read-only memory, electrically erasable programmable read-only memory, registers, hard disk, mobile hard disk, CD-ROM or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. The storage medium can also be an integral part of the processor. The processor and storage medium can be located in an ASIC. In addition, the ASIC can be located in a routing device. The processor and storage medium can also exist in the device as discrete components.

[0177] In the above embodiments, all or part of the embodiments may be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a program product. The program product includes one or more programs or instructions. When the programs or instructions are loaded and executed on a computer or device, the processes or functions described in the embodiments of the present application are performed in whole or in part.

[0178] In the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced by each other. The technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.

[0179] In this application, "at least one" means one or more, and "more" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. In the text description of this application, the character " / " generally indicates that the previous and next associated objects are in an "or" relationship; in the formula of this application, the character " / " indicates that the previous and next associated objects are in a "division" relationship. "Including at least one of A, B and C" can mean: including A; including B; including C; including A and B; including A and C; including B and C; including A, B and C.

[0180] It is understood that the various numbers used in the embodiments of this application are merely for ease of description and are not intended to limit the scope of the embodiments of this application. The order of the sequence numbers of the above-mentioned processes does not necessarily imply a specific order of execution; the order of execution of the processes should be determined by their functions and inherent logic.

Claims

1. A method for configuring a routing device, applied to a routing device, characterized in that: include: Receive first configuration information, where the first configuration information indicates that N downlink interfaces of the routing device are configured as bridge mode, where N is a positive integer greater than 1; Creating N virtual bridge interfaces according to the first configuration information; The N downstream interfaces and the N upstream interfaces of the routing device are configured on the N virtual bridge interfaces, wherein each of the N virtual bridge interfaces is configured with an upstream interface and a downstream interface, and the upstream interfaces configured on different virtual bridge interfaces are different, and the downstream interfaces configured on different virtual bridge interfaces are different; The WAN IP addresses of the N upstream interfaces are configured on the N downstream interfaces, and the WAN IP addresses configured on different downstream interfaces are different.

2. The method according to claim 1, characterized in that Also includes: respectively configuring routing rules corresponding to the N virtual bridge interfaces; The N virtual bridge interfaces include a first virtual bridge interface, and data transmission between an uplink interface and a downlink interface configured on the first virtual bridge interface follows a routing rule corresponding to the first virtual bridge interface.

3. The method according to any one of claims 1 to 2, characterized in that: The first configuration information further indicates that M downlink interfaces of the routing device are configured as routing mode, the M downlink interfaces are different from the N downlink interfaces, and M is a positive integer; Creating a second virtual bridge interface according to the first configuration information, where the second virtual bridge interface is different from the N virtual bridge interfaces; Configuring the M downstream interfaces and a first upstream interface on the second virtual bridge interface, wherein the first upstream interface is an upstream interface corresponding to the M downstream interfaces; A local area network IP address is configured for each of the M downstream interfaces.

4. The method according to claim 3, characterized in that Also includes: An address mapping rule is configured on the second virtual bridge interface, where the address mapping rule indicates a mapping relationship between the LAN IP addresses configured on the M downstream interfaces and the WAN IP address configured on the first upstream interface.

5. The method according to claim 3 or 4, characterized in that Also includes: Receive second configuration information, where the second configuration information indicates that a bridge mode of a first downstream interface among the N downstream interfaces is changed to a routing mode, and the first downstream interface is configured on a first virtual bridge interface among the N virtual bridge interfaces; According to the second configuration information, the configuration information of the first downlink interface is deleted from the first virtual bridge, and the first downlink interface is configured on the second virtual bridge interface; Deleting the WAN IP address configured on the first downstream interface, and configuring a LAN IP address for the first downstream interface; The second virtual bridge interface is configured to indicate a mapping relationship between the LAN IP address configured on the first downlink interface and the WAN IP address configured on the first uplink interface.

6. The method according to any one of claims 1 to 5, characterized in that: The N downstream interfaces include N local area network (LAN) interfaces, or the N downstream interfaces include N Wi-Fi interfaces, or the N downstream interfaces include at least one LAN interface and at least one W-Fi interface.

7. A method for configuring a routing device, characterized in that: include: Receive first configuration information, where the first configuration information indicates that N downstream interfaces of a routing device are configured as a bridge mode, and another M downstream interfaces of the routing device are configured as a routing mode, where N and M are both positive integers; Creating N virtual bridge interfaces and a second virtual bridge interface according to the first configuration information; The N downstream interfaces and the N upstream interfaces of the routing device are configured on the N virtual bridge interfaces, and the M downstream interfaces and the first upstream interface are configured on the second virtual bridge interface, wherein the first upstream interface is the upstream interface corresponding to the M downstream interfaces; wherein each of the N virtual bridge interfaces is configured with an upstream interface and a downstream interface, and the upstream interfaces configured on different virtual bridge interfaces are different, and the downstream interfaces configured on different virtual bridge interfaces are different; The WAN IP addresses of the N upstream interfaces are configured on the N downstream interfaces, and the WAN addresses configured on different downstream interfaces are different. A LAN IP address is configured for each of the M downstream interfaces.

8. The method according to claim 7, characterized in that Also includes: respectively configuring routing rules corresponding to the N virtual bridge interfaces; The N virtual bridge interfaces include a first virtual bridge interface, and data transmission between an uplink interface and a downlink interface configured on the first virtual bridge interface follows a routing rule corresponding to the first virtual bridge interface.

9. The method according to any one of claims 7 to 8, characterized in that: Also includes: An address mapping rule is configured on the second virtual bridge interface, where the address mapping rule indicates a mapping relationship between the LAN IP addresses configured on the M downstream interfaces and the WAN IP address configured on the first upstream interface.

10. The method according to any one of claims 7 to 9, characterized in that: The N downstream interfaces include N local area network (LAN) interfaces, or the N downstream interfaces include N Wi-Fi interfaces, or the N interfaces include at least one LAN interface and at least one W-Fi interface.

11. A routing device, characterized in that: The method comprises a unit or a module for executing the method according to any one of claims 1 to 6, or comprises a unit or a module for executing the method according to any one of claims 7 to 10.

12. A routing device, characterized in that: include: At least one processor, the at least one processor is coupled to at least one memory, and the at least one processor is used to read the program stored in the at least one memory to execute the method as described in any one of claims 1-6, or execute the method as described in any one of claims 7-10.

13. A chip system, characterized in that: include: At least one processor, the at least one processor is coupled to at least one memory, and the at least one processor is used to read the program stored in the at least one memory to execute the method according to any one of claims 1 to 6, or to implement the method according to any one of claims 7 to 10.

14. A readable storage medium, characterized in that: The readable storage medium stores a program, and when the program is executed by the routing device, the method according to any one of claims 1 to 6 is implemented, or the method according to any one of claims 7 to 10 is implemented.

15. A program product, characterized in that When the program product runs on a routing device, the routing device is enabled to execute the method according to any one of claims 1 to 6, or to execute the method according to any one of claims 7 to 10.

Citation Information

Patent Citations

  • Integrated networking method and device, electronic equipment and computer readable medium

    CN113364661A

  • Router, method for router, computer readable medium and device

    CN114024899A

  • IP address allocation method and device

    CN114422473A

  • Bridging Based Upon Media Access Control Address

    US20160094488A1