CN112272244A - Router WAN end IPv6 internet mode configuration method and device - Google Patents

Router WAN end IPv6 internet mode configuration method and device Download PDF

Info

Publication number
CN112272244A
CN112272244A CN202011142211.0A CN202011142211A CN112272244A CN 112272244 A CN112272244 A CN 112272244A CN 202011142211 A CN202011142211 A CN 202011142211A CN 112272244 A CN112272244 A CN 112272244A
Authority
CN
China
Prior art keywords
router
mode
ipv6
internet
response message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011142211.0A
Other languages
Chinese (zh)
Other versions
CN112272244B (en
Inventor
林业
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Ziroom Information Technology Co Ltd
Original Assignee
Beijing Ziroom Information Technology Co Ltd
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 Beijing Ziroom Information Technology Co Ltd filed Critical Beijing Ziroom Information Technology Co Ltd
Priority to CN202011142211.0A priority Critical patent/CN112272244B/en
Publication of CN112272244A publication Critical patent/CN112272244A/en
Application granted granted Critical
Publication of CN112272244B publication Critical patent/CN112272244B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/659Internet protocol version 6 [IPv6] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the invention provides a method and a device for configuring an IPv6 internet mode at a WAN end of a router, which are applied to the router and comprise the following steps: acquiring IPv6 network requirements of a user; sending a DHCPv6Solicit request message to a preset request end, and receiving a DHCPv6 advertisement response message fed back by the preset request end; and determining the IPv6 Internet access mode of the WAN end of the router according to the content of the DHCPv6 advertisement response message and the IPv6 network requirement. By implementing the invention, a user can complete the configuration of the IPv6 internet mode of the WAN end of the router according to the content of the DHCPv6 advertisement response message only by setting the IPv6 network requirement, and the manual configuration of the user is not needed, so that the automatic configuration of the internet mode is realized, the network configuration efficiency is improved, and the internet use experience of the user is enhanced.

Description

Router WAN end IPv6 internet mode configuration method and device
Technical Field
The invention relates to the technical field of communication, in particular to a method and a device for configuring an IPv6 internet surfing mode of a WAN end of a router.
Background
With the wider and wider use of the new generation IP protocol IPv6, intelligent routers from various large vendors have also begun to support the IPv6 protocol.
The existing IPv6 has multiple internet access modes, such as DHCPv6, 6to4, Pass Through, NAT6, PPPOEv6, and STATICv 6. In the prior art, due to the particularity of the IPv6 protocol, when a user needs to use a network service, the user needs to manually configure the internet access mode of the WAN end of the router, that is, manually select one of the multiple internet access modes, and the manual internet access mode configuration has a high requirement on the user, and the user needs to know the characteristics and applicable conditions of each internet access mode to accurately select an available internet access mode. For a common user, if the characteristics and applicable conditions of each internet mode of the IPv6 protocol are not known, the user only can select each internet mode in turn, try to determine whether the internet mode is available, and if the currently selected internet mode is not available, switch to another mode to try again until an available mode is found, which affects the internet experience of the user.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for configuring an IPv6 internet mode at a WAN end of a router, so as to overcome the problem in the prior art that the efficiency of manually configuring the internet mode at the WAN end is low, which affects the internet experience of a user.
The embodiment of the invention provides a router WAN end IPv6 internet mode configuration method, which is applied to a router and comprises the following steps:
acquiring IPv6 network requirements of a user;
sending a DHCPv6Solicit request message to a preset request end, and receiving a DHCPv6 advertisement response message fed back by the preset request end;
and determining an IPv6 internet access mode of a WAN end of the router according to the content of the DHCPv6 advertisement response message and the IPv6 network requirements.
Optionally, the IPv6 internet access mode includes: the method for determining the internet access mode of the WAN end of the router through the IPv6 comprises the following steps of determining a DHCPv6 internet access mode, a 6to4 internet access mode, a PassThrough internet access mode and an NAT6 internet access mode according to the content of the DHCPv6 advertisement response message and the IPv6 network requirement, and comprises the following steps:
acquiring address parameter information in the DHCPv6 advertisement response message;
judging whether the WAN end of the router is allocated with an address or not and whether the LAN end of the router is allocated with an address prefix or not according to the address parameter information;
and when the WAN end of the router is allocated with an address and the LAN end is allocated with an address prefix, determining that the Internet access mode is a DHCPv6 mode.
Optionally, when the WAN end of the router is allocated with an address and the LAN end is not allocated with an address prefix, determining whether the router needs an IPv6 network according to the IPv6 network requirement;
and if the IPv6 network requirement is that the router requires an IPv6 network, determining that the Internet access mode is the NAT6 mode.
Optionally, if the IPv6 network requirement indicates that the router does not need an IPv6 network, determining that the internet access mode is a Pass through mode.
Optionally, when the WAN side of the router does not allocate an address, the method further includes:
sending a router request message to a preset request end, and receiving a router response message fed back by the preset request end;
judging whether the router response message contains address prefix information or not;
when the router response message contains address prefix information, judging whether an address prefix is distributed to the LAN end of the router;
and when the LAN end of the router is distributed with an address prefix, determining that the Internet access mode is a DHCPv6 mode.
Optionally, when the LAN end of the router does not allocate an address prefix, returning to the step of determining whether the router needs an IPv6 network according to the IPv6 network requirement.
Optionally, when the router response message does not include address prefix information, it is determined that the internet access mode is the 6to4 mode.
The embodiment of the invention also provides a router WAN end IPv6 internet mode configuration device, which is applied to a router and comprises:
the acquisition module is used for acquiring the IPv6 network requirements of the user;
the message sending module is used for sending a DHCPv6Solicit request message to a preset request end and receiving a DHCPv6 advertisement response message fed back by the preset request end;
and the internet mode configuration module is used for determining the internet mode of the IPv6 at the WAN end of the router according to the content of the DHCPv6 advertisement response message and the IPv6 network requirements.
An embodiment of the present invention further provides an electronic device, including: the device comprises a memory and a processor, wherein the memory and the processor are connected with each other in a communication mode, the memory stores computer instructions, and the processor executes the computer instructions so as to execute the method provided by the embodiment of the invention.
The embodiment of the invention also provides a computer-readable storage medium, which stores computer instructions for enabling a computer to execute the method provided by the embodiment of the invention.
The technical scheme of the invention has the following advantages:
the embodiment of the invention provides a method and a device for configuring an IPv6 internet mode at a WAN end of a router, which are used for acquiring the IPv6 network requirements of users; sending a DHCPv6Solicit request message to a preset request end, and receiving a DHCPv6 advertisement response message fed back by the preset request end; and determining an IPv6 internet access mode of the WAN end of the router according to the content of the DHCPv6 advertisement response message and the IPv6 network requirements. Therefore, a user can complete the configuration of the IPv6 internet mode of the router WAN end according to the content of the DHCPv6 advertisement response message only by setting the IPv6 network requirement, the manual configuration of the user is not needed, the automatic configuration of the internet mode is realized, the network configuration efficiency is improved, and the internet use experience of the user is enhanced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a method for configuring an IPv6 internet access mode at a WAN end of a router according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a specific application example of the method for configuring the internet access mode of the WAN end IPv6 of the router in the embodiment of the present invention;
fig. 3 is a schematic structural diagram of an IPv6 internet mode configuration apparatus at a WAN end of a router according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The technical features mentioned in the different embodiments of the invention described below can be combined with each other as long as they do not conflict with each other.
With the wider and wider use of the new generation IP protocol IPv6, intelligent routers from various large vendors have also begun to support the IPv6 protocol.
The existing IPv6 has multiple internet access modes, such as DHCPv6, 6to4, Pass Through, NAT6, PPPOEv6, and STATICv 6. In the prior art, due to the particularity of the IPv6 protocol, when a user needs to use a network service, the user needs to manually configure the internet access mode of the WAN end of the router, that is, manually select one of the multiple internet access modes, and the manual internet access mode configuration has a high requirement on the user, and the user needs to know the characteristics and applicable conditions of each internet access mode to accurately select an available internet access mode. For a common user, if the characteristics and applicable conditions of each internet mode of the IPv6 protocol are not known, the user only can select each internet mode in turn, try to determine whether the internet mode is available, and if the currently selected internet mode is not available, switch to another mode to try again until an available mode is found, which affects the internet experience of the user.
First, a brief description is made of an IPv6 internet access mode according to an embodiment of the present invention.
DHCPv6 mode: the IPv6 address may be dynamically configured for the router.
6to4 mode: it is the encapsulation of IPv6 packets into IPv4 packets (6over4 tunneling). 6to4 is an automatic tunnel construction method, which has the advantage that only one globally unique IPv4 address is needed to make the whole site obtain IPv6 connection.
NAT6 mode: like the IPv4 network, both the router and the following sub-devices have IPv6 addresses but belong to the intranet.
Pass through mode: penetration mode, the router has no IPv6 address, but the sub-devices under the router have IPv6 addresses; the child device does not assign IPv6 through the router, but directly assigns an IPv6 address from the upper level of the router.
Based on the above problem, an embodiment of the present invention provides a method for configuring an IPv6 internet access mode at a WAN end of a router, where as shown in fig. 1, the method specifically includes the following steps:
step S101: and acquiring the IPv6 network requirements of the user. Specifically, the IPv6 network requirement is set by the user, and is specifically divided into two types, namely a router requiring no IPv6 network and a router requiring IPv6 network.
Step S102: sending a DHCPv6Solicit request message to a preset request end, and receiving a DHCPv6 advertisement response message fed back by the preset request end. Specifically, the preset request end may be set according to an actual connection condition of the current router, may be an upper-level router connected thereto, or may be a corresponding server, and the present invention is not limited thereto.
Step S103: and determining an IPv6 internet access mode of the WAN end of the router according to the content of the DHCPv6 advertisement response message and the IPv6 network requirements. In the embodiment of the present invention, the IPv6 internet access mode includes: DHCPv6 Internet surfing mode, 6to4 Internet surfing mode, Pass Through Internet surfing mode and NAT6 Internet surfing mode. It should be noted that, for the remaining internet access modes of IPv6, such as PPPOEv6 and STATICv6 internet access modes, since the user-specific attribute needs to be input, automatic configuration cannot be implemented, and therefore, the automatic configuration is not considered in the embodiment of the present invention.
Specifically, in an embodiment, the step S103 includes the following steps:
step S301: and acquiring address parameter information in the DHCPv6 advertisement response message. Specifically, the address parameter information in the DHCPv6 advertisement response message is denoted as IA (identity association, IA for short).
Step S302: and judging whether the WAN end of the router is allocated with an address or not and whether the LAN end of the router is allocated with an address prefix or not according to the address parameter information. Specifically, the message represents the address parameter information in the form of IA _ NA and IA _ PD, wherein IA _ NA (Identity association for non-temporal addresses, abbreviated as IA _ NA) represents that a non-temporary address is allocated in IA; IA _ PD (Identity Association for Prefix deletion, abbreviated as IA _ PD) indicates that an address Prefix is allocated in IA. Because the address parameter information conditions required by different internet access modes are different, the internet access mode can be judged by judging whether the response message has IA _ NA and IA _ PD.
Step S303: and when the WAN end of the router is allocated with an address and the LAN end is allocated with an address prefix, determining that the Internet access mode is the DHCPv6 mode. In practical application, if the response message has IA _ NA and IA _ PD, it indicates that both WAN port and LAN port have IPv6 address, so the Internet mode of IPv6 can select DHCPv6 mode.
Specifically, in an embodiment, the step S103 further includes the following steps:
step S304: when the WAN end of the router is allocated with an address and the LAN end is not allocated with an address prefix, judging whether the router needs an IPv6 network or not according to the IPv6 network requirement.
Step S305: and if the IPv6 network requirement is that the router requires an IPv6 network, determining that the Internet access mode is the NAT6 mode.
Step S306: and if the IPv6 network requirement is that the router does not need the IPv6 network, determining that the Internet access mode is the Pass through mode.
In practical application, if the response message has an IA _ NA without an IA _ PD, it indicates that the WAN port has an IPv6 address and the LAN port does not have an IPv6 address, and at this time, it is determined that the router itself needs an IPv6 network. If the router needs an IPv6 network, the NAT6 mode is selected by the Internet access mode of the IPv 6; if the router does not need the IPv6 network, the Internet mode of the IPv6 selects a Pass through mode Internet mode.
Specifically, in an embodiment, when the WAN side of the router does not assign an address, the method further includes the following steps:
step S104: and sending a router request message to a preset request end, and receiving a router response message fed back by the preset request end. Specifically, because the router response message includes information of the WAN end address prefix, if the internet access mode cannot be obtained through the above steps, the router response message may be further utilized to select the internet access mode. The Router message (Router Solicitation, RS for short), the Router reply message (Router Advertisement, RA for short), the address prefix information in the Router reply message is represented by an Autonomous flag, a for short, a, if the bit value corresponding to a is 0, it indicates that the WAN end does not receive the address prefix, and if the bit value corresponding to a is 1, it indicates that the WAN end receives the address prefix.
Step S105: and judging whether the router response message contains address prefix information.
Step S106: and when the router response message contains the address prefix information, judging whether the LAN end of the router is allocated with the address prefix. When the LAN side of the router does not assign an address prefix, the above step S304 is performed.
Step S107: when the LAN end of the router is distributed with the address prefix, the Internet access mode is determined to be the DHCPv6 mode. Specifically, if the DHCPv6 response message has IA _ PD, it indicates that the RA message obtains the address prefix of the WAN end, and the DHCPv6 response message obtains the address prefix of the LAN end, and at this time, the internet access mode of IPv6 selects the DHCPv6 mode.
Step S108: and when the router response message does not contain the address prefix information, determining that the internet access mode is the 6to4 mode. Specifically, if it is determined that the a bit in the RA message is 0, which indicates that the WAN end does not receive the address prefix, at this time, neither the DHCPv6 nor the RS message obtains the address of the WAN end, so the internet mode of the IPv6 can only select the 6to4 mode.
The method for configuring the internet access mode of the WAN end IPv6 of the router according to the embodiment of the present invention will be described in detail below with reference to specific application examples. The specific implementation is shown in fig. 2.
1. The user first selects the IPv6 auto-configuration mode and selects whether the router itself requires an IPv6 network or whether only devices that need to connect to the router can use an IPv6 network (i.e., the user selects the IPv6 network requirement).
2. The router sends a DHCPv6Solicit message request, receives a DHCPv6 advertisement response message, and judges whether the response message has IA _ NA and IA _ PD.
3. If the answer message has IA _ NA and IA _ PD in step 2, it shows that both WAN port and LAN port have IPv6 address, so the Internet mode of IPv6 can select DHCPv6 mode.
4. If the answer message is judged to have IA _ NA without IA _ PD in the step 2, the WAN port has IPv6 address and the LAN port does not have IPv6 address, and then the router itself needs IPv6 network.
5. If the IPv6 network selected by the user requires that the router needs the IPv6 network in the step 4, the NAT6 mode is selected as the Internet access mode of the IPv 6; if the router does not need the IPv6 network, the Pass through mode Internet mode is selected by the Internet mode of the IPv 6.
6. When the above conditions are not met, the router sends a router request RS (router solicitation) message, receives a router response RA (router advertisement) message, and judges whether the A bit in the RA message is 1 or not.
7. If the a bit in the RA message is determined to be 0 in step 6, which indicates that the WAN end does not receive the address prefix, at this time, neither the DHCPv6 nor the RS message obtains the address of the WAN end, so the internet mode of the IPv6 can only select the 6to4 mode.
8. If the A bit in the RA message is judged to be 1 in the step 6, which indicates that the WAN end receives the address prefix, then the DHCPv6 response message is judged whether to have an IA _ PD.
9. If the DHCPv6 response message is judged to have IA _ PD in step 8, it is indicated that the RA message obtains the address prefix of the WAN end, the DHCPv6 response message obtains the address prefix of the LAN end, and at this time, the Internet access mode of IPv6 selects DHCPv6 mode.
10. If the DHCPv6 response message does not have an IA _ PD in step 8, it indicates that the RA message obtains the address prefix of the WAN end, but the DHCPv6 response message does not obtain the address prefix of the LAN end, at this time, the WAN port has an IPv6 address and the LAN port does not have an IPv6 address, and at this time, it determines that the router itself needs an IPv6 network.
11. If the IPv6 network requirement selected by the user is that the router needs an IPv6 network, the Internet access mode of the IPv6 selects an NAT6 mode; if the router does not need the IPv6 network, the Internet mode of the IPv6 selects a Pass through mode Internet mode.
12. The user can connect to the IPv6 network through the automatically configured Internet access mode.
Through the process, the method for avoiding configuring the IPv6 internet mode at the WAN end is realized, the support condition of the current Internet to the IPv6 is automatically detected by using DHCPv6 and ICMPv6 protocols, the most appropriate internet mode is selected, and the complexity of the setting of the user to the IPv6 is greatly reduced.
By executing the steps, the method for configuring the IPv6 internet surfing mode of the WAN end of the router provided by the embodiment of the invention acquires the IPv6 network requirements of the user; sending a DHCPv6Solicit request message to a preset request end, and receiving a DHCPv6 advertisement response message fed back by the preset request end; and determining an IPv6 internet access mode of the WAN end of the router according to the content of the DHCPv6 advertisement response message and the IPv6 network requirements. Therefore, a user can complete the configuration of the IPv6 internet mode of the router WAN end according to the content of the DHCPv6 advertisement response message only by setting the IPv6 network requirement, the manual configuration of the user is not needed, the automatic configuration of the internet mode is realized, the network configuration efficiency is improved, and the internet use experience of the user is enhanced.
The embodiment of the present invention further provides a router WAN end IPv6 internet mode configuration device, which is applied to a router, and as shown in fig. 3, the router WAN end IPv6 internet mode configuration device includes:
an obtaining module 101, configured to obtain IPv6 network requirements of a user. For details, refer to the related description of step S101 in the above method embodiment, and no further description is provided here.
The message sending module 102 is configured to send a DHCPv6Solicit request message to the preset request end, and receive a DHCPv6 advertisement response message fed back by the preset request end. For details, refer to the related description of step S102 in the above method embodiment, and no further description is provided here.
And the internet mode configuration module 103 is configured to determine an internet mode of an IPv6 at the WAN end of the router according to the content of the DHCPv6 advertisement response message and the IPv6 network requirements. For details, refer to the related description of step S103 in the above method embodiment, and no further description is provided here.
Through the cooperative cooperation of the above components, the device for configuring the internet surfing mode of the WAN end IPv6 of the router provided by the embodiment of the invention acquires the IPv6 network requirements of the user; sending a DHCPv6Solicit request message to a preset request end, and receiving a DHCPv6 advertisement response message fed back by the preset request end; and determining an IPv6 internet access mode of the WAN end of the router according to the content of the DHCPv6 advertisement response message and the IPv6 network requirements. Therefore, a user can complete the configuration of the IPv6 internet mode of the router WAN end according to the content of the DHCPv6 advertisement response message only by setting the IPv6 network requirement, the manual configuration of the user is not needed, the automatic configuration of the internet mode is realized, the network configuration efficiency is improved, and the internet use experience of the user is enhanced.
There is also provided an electronic device according to an embodiment of the present invention, as shown in fig. 4, the electronic device may include a processor 901 and a memory 902, where the processor 901 and the memory 902 may be connected by a bus or in another manner, and fig. 4 takes the example of being connected by a bus as an example.
Processor 901 may be a Central Processing Unit (CPU). The Processor 901 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 902, which is a non-transitory computer readable storage medium, may be used for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the methods in the method embodiments of the present invention. The processor 901 executes various functional applications and data processing of the processor by executing non-transitory software programs, instructions and modules stored in the memory 902, that is, implements the methods in the above-described method embodiments.
The memory 902 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 901, and the like. Further, the memory 902 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 902 may optionally include memory located remotely from the processor 901, which may be connected to the processor 901 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in the memory 902, which when executed by the processor 901 performs the methods in the above-described method embodiments.
The specific details of the electronic device may be understood by referring to the corresponding related descriptions and effects in the above method embodiments, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, and the program can be stored in a computer readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD) or a Solid State Drive (SSD), etc.; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A router WAN end IPv6 internet mode configuration method is applied to a router and is characterized by comprising the following steps:
acquiring IPv6 network requirements of a user;
sending a DHCPv6Solicit request message to a preset request end, and receiving a DHCPv6 advertisement response message fed back by the preset request end;
and determining an IPv6 internet access mode of a WAN end of the router according to the content of the DHCPv6 advertisement response message and the IPv6 network requirements.
2. The method of claim 1, wherein the IPv6 internet mode comprises: the method includes the following steps that a DHCPv6 internet surfing mode, a 6to4 internet surfing mode, a Pass Through internet surfing mode and an NAT6 internet surfing mode are determined, the router WAN end IPv6 internet surfing mode is determined according to the content of the DHCPv6 advertisement response message and the IPv6 network requirements, and the method includes the following steps:
acquiring address parameter information in the DHCPv6 advertisement response message;
judging whether the WAN end of the router is allocated with an address or not and whether the LAN end of the router is allocated with an address prefix or not according to the address parameter information;
and when the WAN end of the router is allocated with an address and the LAN end is allocated with an address prefix, determining that the Internet access mode is a DHCPv6 mode.
3. The method of claim 2,
when the WAN end of the router is allocated with an address and the LAN end is not allocated with an address prefix, judging whether the router needs an IPv6 network or not according to the IPv6 network requirement;
and if the IPv6 network requirement is that the router requires an IPv6 network, determining that the Internet access mode is the NAT6 mode.
4. The method of claim 3,
and if the IPv6 network requirement is that the router does not need the IPv6 network, determining that the Internet access mode is a Pass through mode.
5. The method of claim 2, wherein when the WAN side of the router does not have an address assigned, the method further comprises:
sending a router request message to a preset request end, and receiving a router response message fed back by the preset request end;
judging whether the router response message contains address prefix information or not;
when the router response message contains address prefix information, judging whether an address prefix is distributed to the LAN end of the router;
and when the LAN end of the router is distributed with an address prefix, determining that the Internet access mode is a DHCPv6 mode.
6. The method of claim 5,
and when the LAN end of the router does not distribute address prefixes, returning to the step of judging whether the router needs an IPv6 network according to the IPv6 network requirements.
7. The method of claim 5,
and when the router response message does not contain address prefix information, determining that the internet access mode is a 6to4 mode.
8. A router WAN end IPv6 internet mode configuration device is applied to a router, and is characterized in that the device comprises:
the acquisition module is used for acquiring the IPv6 network requirements of the user;
the message sending module is used for sending a DHCPv6Solicit request message to a preset request end and receiving a DHCPv6 advertisement response message fed back by the preset request end;
and the internet mode configuration module is used for determining the internet mode of the IPv6 at the WAN end of the router according to the content of the DHCPv6 advertisement response message and the IPv6 network requirements.
9. An electronic device, comprising:
a memory and a processor, the memory and the processor being communicatively coupled to each other, the memory having stored therein computer instructions, the processor performing the method of any of claims 1-7 by executing the computer instructions.
10. A computer-readable storage medium having stored thereon computer instructions for causing a computer to thereby perform the method of any one of claims 1-7.
CN202011142211.0A 2020-10-22 2020-10-22 Router WAN end IPv6 internet mode configuration method and device Active CN112272244B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011142211.0A CN112272244B (en) 2020-10-22 2020-10-22 Router WAN end IPv6 internet mode configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011142211.0A CN112272244B (en) 2020-10-22 2020-10-22 Router WAN end IPv6 internet mode configuration method and device

Publications (2)

Publication Number Publication Date
CN112272244A true CN112272244A (en) 2021-01-26
CN112272244B CN112272244B (en) 2023-02-17

Family

ID=74341806

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011142211.0A Active CN112272244B (en) 2020-10-22 2020-10-22 Router WAN end IPv6 internet mode configuration method and device

Country Status (1)

Country Link
CN (1) CN112272244B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114785755A (en) * 2022-04-19 2022-07-22 深圳市吉祥腾达科技有限公司 IPV6 Internet access IAPD self-adaption method and system
CN114938347A (en) * 2021-02-04 2022-08-23 青岛海信宽带多媒体技术有限公司 Router and router ipv6 self-adaption method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101873320A (en) * 2010-06-17 2010-10-27 杭州华三通信技术有限公司 Client information verification method based on DHCPv6 relay and device thereof
CN102158563A (en) * 2010-02-12 2011-08-17 华为技术有限公司 Method, system and device for acquiring IPv6 (Internet Protocol Version 6) configuration information from IPv6 transition network
WO2011144036A1 (en) * 2010-05-19 2011-11-24 Liu Jian Method and device for home gateway obtaining wide area network side information
CN102439918A (en) * 2011-10-11 2012-05-02 华为技术有限公司 Method, device and system for transmittig message
CN102594940A (en) * 2012-02-20 2012-07-18 烽火通信科技股份有限公司 Method for dynamically configuring IPv6 (internet protocol version 6) for home gateway
CN110290230A (en) * 2019-06-10 2019-09-27 普联技术有限公司 Detection method, device and the storage medium for the dial mode that network environment is supported
WO2020132984A1 (en) * 2018-12-26 2020-07-02 华为技术有限公司 Ipv6 address configuration method and router device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158563A (en) * 2010-02-12 2011-08-17 华为技术有限公司 Method, system and device for acquiring IPv6 (Internet Protocol Version 6) configuration information from IPv6 transition network
WO2011144036A1 (en) * 2010-05-19 2011-11-24 Liu Jian Method and device for home gateway obtaining wide area network side information
CN101873320A (en) * 2010-06-17 2010-10-27 杭州华三通信技术有限公司 Client information verification method based on DHCPv6 relay and device thereof
CN102439918A (en) * 2011-10-11 2012-05-02 华为技术有限公司 Method, device and system for transmittig message
CN102594940A (en) * 2012-02-20 2012-07-18 烽火通信科技股份有限公司 Method for dynamically configuring IPv6 (internet protocol version 6) for home gateway
WO2013123763A1 (en) * 2012-02-20 2013-08-29 烽火通信科技股份有限公司 Dynamic ipv6 configuration method for home gateway
WO2020132984A1 (en) * 2018-12-26 2020-07-02 华为技术有限公司 Ipv6 address configuration method and router device
CN110290230A (en) * 2019-06-10 2019-09-27 普联技术有限公司 Detection method, device and the storage medium for the dial mode that network environment is supported

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114938347A (en) * 2021-02-04 2022-08-23 青岛海信宽带多媒体技术有限公司 Router and router ipv6 self-adaption method and device
CN114938347B (en) * 2021-02-04 2024-05-10 青岛海信宽带多媒体技术有限公司 Router and router ipv6 self-adaption method and device
CN114785755A (en) * 2022-04-19 2022-07-22 深圳市吉祥腾达科技有限公司 IPV6 Internet access IAPD self-adaption method and system
CN114785755B (en) * 2022-04-19 2024-03-29 深圳市和为顺网络技术有限公司 IPV6 Internet surfing IAPD self-adaption method and system

Also Published As

Publication number Publication date
CN112272244B (en) 2023-02-17

Similar Documents

Publication Publication Date Title
CN108307002B (en) DHCP message processing method and device
EP3264731B1 (en) Method, relay agent, and system for acquiring internet protocol address in network
EP3070887A1 (en) Communication method, device and system for virtual extensible local area network
US11575592B2 (en) Message processing method and apparatus, control-plane device, and computer storage medium
CN108401037B (en) Binding method, device and system of user terminal and equipment
US10432579B2 (en) Internet protocol address allocation method and router
CN112654049B (en) Method, system, node and medium for configuring a wireless communication coverage extension system
CN112272244B (en) Router WAN end IPv6 internet mode configuration method and device
US10893019B2 (en) Address management method and apparatus
EP2704403A1 (en) Method and device for controlling address configuration manner
US20200274948A1 (en) Service flow configuration method and apparatus
WO2020132984A1 (en) Ipv6 address configuration method and router device
CN113973102A (en) Network address acquisition method, system and network equipment
CN104780229A (en) Method of setting cloud server IP address through cloud terminal, system and cloud system
US11516110B2 (en) Method and apparatus for obtaining cross-domain link
WO2016034006A1 (en) Packet sending method and access device
WO2018006684A1 (en) Message processing method and device, and router
EP3048756A1 (en) Management method and apparatus for dynamic host configuration protocol server and relay
WO2017202034A1 (en) Data packet sending and receiving method and device, and electronic apparatus
CN107360095B (en) Method for realizing port forwarding in router based on client host name
CN107911494B (en) Method, device, computer equipment and storage medium for accessing IPv6 network
CN110636146B (en) User address allocation method and device
WO2015085558A1 (en) Method, device and system for dynamically allocating ip address
CN112543386B (en) Address acquisition method and related equipment
CN107295113B (en) Network configuration method, switch and server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant