CN106888130B - The setting method and device of router - Google Patents

The setting method and device of router Download PDF

Info

Publication number
CN106888130B
CN106888130B CN201710266935.8A CN201710266935A CN106888130B CN 106888130 B CN106888130 B CN 106888130B CN 201710266935 A CN201710266935 A CN 201710266935A CN 106888130 B CN106888130 B CN 106888130B
Authority
CN
China
Prior art keywords
message
address
mouthfuls
wan mouthfuls
access way
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.)
Active
Application number
CN201710266935.8A
Other languages
Chinese (zh)
Other versions
CN106888130A (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.)
New H3C Information Technologies Co Ltd
Original Assignee
New H3C Technologies 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201710266935.8A priority Critical patent/CN106888130B/en
Publication of CN106888130A publication Critical patent/CN106888130A/en
Application granted granted Critical
Publication of CN106888130B publication Critical patent/CN106888130B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/60Router architectures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Abstract

The application provides the setting method and device of a kind of router, wherein the setting method of router includes: to obtain the wide area network WAN mouthfuls of access way for accessing default network;If the access way that the WAN mouth got accesses default network is different from WAN mouthfuls of default access way, WAN mouthfuls of access setting is accessed to the access way of default network from the WAN mouth that default access way is revised as getting;It is retrieved as the address information of WAN mouthfuls of distribution;The address information and local network LAN mouth default address information collision distributed if WAN mouthfuls then update the address information of LAN mouthfuls of setting and the address pool of Dynamic Host Configuration Protocol server.The embodiment of the present application can complete the setting of router, to realize the plug and play of router.

Description

The setting method and device of router
Technical field
This application involves the communication technology more particularly to the setting methods and device of a kind of router.
Background technique
Fiber optic communication rapidly develops the principal mode as the transmission of current information because of its bandwidth, capacity is big the advantages that, Light cat is just receiving more and more attention as the Primary Component of fiber optic communication.Light cat generally uses Ethernet passive optical network (EPON) or gigabit passive optical network (GPON) technology, it is arranged and is managed collectively by operator.Light cat is that one kind is similar to What is accessed unlike the optical transmission terminal equipment and base band MODEM of base-band digital modem (MODEM) is that optical fiber is special Line is optical signal.It belongs to one kind of wide area network access, that is, the intelligent acess usually mentioned, simply by the presence of the ground of optical fiber Side requires light cat and converts to optical signal.Light cat is followed by by the conversion of photosignal and the conversion of interface protocol into routing Device, router are the equipment for connecting each local area network, wide area network in internet, it can make multiple terminal devices such as computer simultaneously Online.In family in use, needing one or more router connecting light cat, to be connected to internet by light cat.
Summary of the invention
In view of this, the application provides the setting method and device of a kind of router.
Specifically, the application is achieved by the following technical solution:
According to a first aspect of the embodiments of the present invention, a kind of setting method of router is provided, which comprises
Obtain the wide area network WAN mouthfuls of access way for accessing default network;
If the WAN mouthfuls the got access ways for accessing default network and described WAN mouthfuls of default access way are not Together, then described WAN mouthfuls of access setting is revised as the WAN mouthfuls got from the default access way and accesses default net The access way of network;
It is retrieved as the address information of the WAN mouthfuls of distribution;
If the address information and local network LAN mouth default address information collision for described WAN mouthfuls distribution, update are set Set the address pool of LAN mouthfuls of the address information and dynamic host configuration protocol DHCP server.
According to a second aspect of the embodiments of the present invention, a kind of setting device of router is provided, described device includes:
First obtains module, for obtaining WAN mouthfuls of the wide area network access ways for accessing default network;
First setup module, if connecing for networks is preset in the WAN mouthfuls of accesses for the first acquisition module to be got It is different from described WAN mouthfuls of default access way to enter mode, then WAN mouthfuls of the access is arranged from the default access way It is revised as the WAN mouthfuls the got access ways for accessing default network;
Second obtains module, obtains the wide area network WAN mouthfuls of access for accessing default network for obtaining module described first After mode, it is retrieved as the address information of the WAN mouthfuls of distribution;
Second setup module, if obtaining the address information and local area network that module is described WAN mouthfuls distribution for described second LAN mouthfuls of default address information collisions then update setting LAN mouthfuls of the address information and dynamic host configuration protocol DHCP clothes The address pool of business device.
In the embodiment of the present application, it accesses the access way of default network for available WAN mouthfuls, and works as the WAN mouth obtained Accessing the access way of default network and WAN mouthful of default access way, (i.e. before network is preset in access, WAN mouthfuls are configured Access way) it is different when, WAN mouthful of access setting can be revised as WAN mouth obtained access from default access way and preset The access way of network, and can be in the address information and local network LAN mouth default address information collision distributed for described WAN mouthfuls When, update the address pool that LAN mouthful of the address information and Dynamic Host Configuration Protocol server are set so that LAN mouthfuls of address information with The address pool of Dynamic Host Configuration Protocol server does not conflict with WAN mouthfuls of address information, to complete the setting of router, and then realizes routing The plug and play of device.
Detailed description of the invention
Figure 1A is a kind of flow chart of the setting method of router shown in one exemplary embodiment of the application;
Figure 1B is the flow chart of the setting method of another router shown in one exemplary embodiment of the application;
Fig. 2 is a kind of hardware structure diagram of router where device is arranged in the application;
Fig. 3 is a kind of block diagram of the setting device of router shown in one exemplary embodiment of the application;
Fig. 4 is the block diagram of the setting device of another router shown in one exemplary embodiment of the application;
Fig. 5 is the block diagram of the setting device of another router shown in one exemplary embodiment of the application.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application. It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
Currently, router connects light cat the following steps are included: by any office of wide area network (WAN) mouth of router and light cat The connection of domain net (LAN) interface;Router is resetted, reset (Reset) button on router is pressed with pin and other items;It opens Browser inputs 192.168.1.1 in address field to open the administration interface of router, inputs account, password logon;It clicks left Side function menu " setting guide ", selects " dynamic IP " and clicks in next step;Service set (SSID) and password are set, and It clicks in next step;It clicks " completion ", router will be restarted automatically.After the completion of router is restarted, user logs on router Administration page, click network parameter in LAN mouth be arranged, input new IP address: 172.168.1.1, to avoid because with light cat Cause user that can not surf the Internet using same network segment, and saves the IP address.
Since the WAN mouth of router is defaulted when leaving the factory using transmission point-to-point protocol (Point-to- on Ethernet Point Protocol Over Ethernet, PPPoE) access way, LAN mouthfuls of default ip address is 192.168.1.1, Therefore, it when connecting light cat, needs to carry out router related setting, and the setting for changing LAN port address is more complicated, for For ordinary user, it is not easy to realize.
In the embodiment of the present application, it accesses the access way of default network for available WAN mouthfuls of router, and works as acquisition (i.e. before accessing default network, WAN mouthfuls are matched for the WAN mouthfuls of access ways for accessing default network and WAN mouthfuls of default access way The access way set) it is different when, WAN mouthful of access setting can be revised as the WAN mouth obtained access from default access way The access way of default network, and can be in the address information and local network LAN mouth default address information collision distributed for WAN mouthfuls When, it updates and LAN mouthfuls of address information and the address pool of Dynamic Host Configuration Protocol server is set, so that LAN mouthfuls of address information and DHCP clothes The address pool of business device does not conflict with WAN mouthfuls of address information, to complete the setting of router, and then realize router is Plug-and-play.The realization process of the application is described in detail combined with specific embodiments below.
Figure 1A is a kind of flow chart of the setting method of router shown in one exemplary embodiment of the application, such as Figure 1A institute Show, the setting method of the router includes:
Step S101 obtains the wide area network WAN mouthfuls of access way for accessing default network.
Router can send message after WAN mouthfuls of successful connections (up) with simulant-client, and by whether receive report Text response message come obtain WAN mouthful access preset network access ways.
In this embodiment it is possible to first simulant-client sends the first message, if receiving the response message of the first message, Then obtaining the access way that WAN mouthfuls are accessed default network is access way corresponding with the first message, if not receiving the first report The response message of text, then simulant-client sends the second message and obtains WAN mouthfuls if receiving the response message of the second message The access way for accessing default network is access way corresponding with the second message.
Wherein, the first message can be DHCP message, and the second message can be PPPoE message.
It, can be with active transmission (DHCP discovery) DHCP-DISCOVER message, according to being for example, router is after WAN mouthfuls of up The no Dynamic Host Configuration Protocol server that can receive sends back the DHCP-OFFER message (i.e. the response message of DHCP-DISCOVER message) come To judge the WAN mouthfuls of access ways for accessing default network, if it is possible to receive DHCP-OFFER message, then obtain WAN mouthfuls and connect The access way for entering default network is DHCP mode, and the WAN of router mouth is automatically set as DHCP mode.If do not connect DHCP-OFFER message is received, then sends transmission point-to-point protocol activity discovery on the Ethernet in PPPoE message and starts (PADI) message, and according to whether can receive PPPoE server sends back PADO message (the i.e. response of PADI message come Message) determine the WAN mouthfuls of access ways for accessing default network, if PADO message can be received, identify WAN mouthful accesses in advance If the access way of network is PPP over Ethernet.
It should be noted that through the above way can usually identify that WAN mouthfuls are currently accessed mode, but if not connecing The response message of the second message is received, then is shown to be other access ways.
Step S102, if access way and WAN mouthfuls of default access way that the WAN mouth got accesses default network are not Together, then WAN mouthfuls of access setting is accessed to the access side of default network from the WAN mouth that default access way is revised as getting Formula.
Wherein, WAN mouthfuls of default access way refers to before the default network of WAN mouthfuls of accesses, the WAN mouthfuls of access sides configured Formula.
It is assumed that WAN mouthfuls of default access way is PPP over Ethernet, if the WAN mouth got accesses the access of default network Mode is DHCP mode, due to the two difference, WAN mouthfuls of access can be arranged from PPP over Ethernet and be revised as DHCP mode.
Step S103 is retrieved as the address information of WAN mouthfuls of distribution.
Wherein, the address information for WAN mouthfuls of distribution includes WAN mouthfuls of IP address, the name server address (DNS) and routing Information.
About the IP address for obtaining WAN mouthfuls, for DHCP mode, router can be based on the mode of IP address application To obtain WAN mouthful of IP address automatically, for PPP over Ethernet, router needs to receive the user name that user inputs and close Code, i.e., will first complete to authenticate, WAN mouthfuls of IP address then can be just got from PPPoE server.
About dns address and routing iinformation, the local routing iinformation for whether preserving dns address and static configuration is judged, The routing iinformation of dns address and static configuration is obtained if having.
Step S104, the address information distributed if WAN mouthfuls and local network LAN mouth default address information collision, then update LAN mouthfuls of address information and the address pool of dynamic host configuration protocol DHCP server are set.
In this embodiment it is possible to by in WAN mouthfuls of IP address, routing iinformation IP address and dns address not The IP address of conflict sets LAN oral replacement for the update of the address pool of Dynamic Host Configuration Protocol server and sets as LAN mouthfuls of current IP address The corresponding network segment of the IP address postponed.
For example, it is assumed that the WAN mouth IP address that router is got is 192.168.1.1, LAN mouthfuls of default ip address is also 192.168.1.1, the IP address due to WAN mouthfuls conflicts with LAN mouthfuls of default ip address, then needs LAN mouthfuls of IP address more It newly is set as 192.168.2.1, and the address pool of Dynamic Host Configuration Protocol server is changed to from the 192.168.1.1/24 of default 192.168.2.1/24, it can be converted in this way to avoid the IP address conflict with WAN mouthfuls, the network address translation (NAT) of router It can just come into force.
Above-described embodiment, by obtaining the WAN mouthfuls of access ways for accessing default network, and when the WAN mouth access obtained is pre- If when the access way of network and WAN mouthfuls of default access way difference, WAN mouthfuls of access can be arranged from default access side Formula is revised as the access way that the WAN mouth obtained accesses default network, and can be in the address information and local distributed for WAN mouthfuls When netting LAN mouthfuls of default address information collisions, updates and LAN mouthfuls of address information and the address pool of Dynamic Host Configuration Protocol server are set, so that LAN mouthfuls of address information and the address pool of Dynamic Host Configuration Protocol server do not conflict with WAN mouthfuls of address information, to complete router Setting, and then realize the plug and play of router.
Figure 1B is the flow chart of the setting method of another router shown in one exemplary embodiment of the application, such as Figure 1B Shown, the setting method of the router includes:
Step S201, simulant-client send DHCP message.
Step S202 receives the response message of DHCP message, obtains the access way that WAN mouthfuls are accessed default network and is DHCP mode.
Step S203, if access way and WAN mouthfuls of default access way that the WAN mouth got accesses default network are not Together, then WAN mouthfuls of access setting is accessed to the access side of default network from the WAN mouth that default access way is revised as getting Formula.
It is assumed that WAN mouthfuls of default access way is PPP over Ethernet, since the WAN mouth got accesses connecing for default network It is different from WAN mouthfuls of default access way to enter mode, therefore WAN mouthfuls of access is arranged from PPP over Ethernet and is revised as DHCP mode.
Step S204 is retrieved as the address information of WAN mouthfuls of distribution.
Wherein, the address information for WAN mouthfuls of distribution includes WAN mouthfuls of IP address, the name server address (DNS) and routing Information.
Step S205, the address information distributed if WAN mouthfuls and local network LAN mouth default address information collision, then update LAN mouthfuls of address information and the address pool of Dynamic Host Configuration Protocol server are set.
In this embodiment it is possible to by in WAN mouthfuls of IP address, routing iinformation IP address and dns address not The IP address of conflict sets LAN oral replacement for the update of the address pool of Dynamic Host Configuration Protocol server and sets as LAN mouthfuls of current IP address The corresponding network segment of the IP address postponed.
For example, it is assumed that the WAN mouth IP address that router is got is 192.168.1.1, the IP address packet in routing iinformation 192.168.1.2 is included, dns address includes primary dns address and spare dns address, it is assumed that primary dns address is 202.96.134.33, spare dns address is 202.96.128.86, and LAN mouthfuls of default ip address is 192.168.1.1, due to IP address in WAN mouthfuls of IP address and routing iinformation conflicts with LAN mouthfuls of default ip address, therefore needs LAN mouthfuls of IP Address, which updates, is set as 192.168.2.1, and the address pool of Dynamic Host Configuration Protocol server is changed to from the 192.168.1.1/24 of default 192.168.2.1/24 in this way can be to avoid the IP address conflict with WAN mouthfuls.
Above-described embodiment sends DHCP message by simulant-client and obtains the WAN mouthfuls of access ways for accessing default network, It, can be by WAN mouthfuls and when the WAN of acquisition mouth accesses the access way and WAN mouthfuls of default access way difference of default network Access setting be revised as the access way that network is preset in WAN mouth obtained access from default access way, and can be for WAN The address information of mouthful distribution and when local network LAN mouth default address information collision, update be arranged LAN mouthfuls address information and The address pool of Dynamic Host Configuration Protocol server, so that LAN mouthfuls of address information and the address pool of Dynamic Host Configuration Protocol server and WAN mouthfuls of address information are equal Do not conflict, to complete the setting of router, and then realizes the plug and play of router.
Corresponding with the embodiment of the setting method of aforementioned router, present invention also provides the setting devices of router Embodiment.
The embodiment that device is arranged in the application can be using on the router.Installation practice can by software realization, It can also be realized by way of hardware or software and hardware combining.Taking software implementation as an example, as the dress on a logical meaning It sets, is that computer program instructions corresponding in nonvolatile memory are read by memory by the processor of router where it What middle operation was formed.For hardware view, as shown in Fig. 2, being that the application is adaptively arranged the one of 200 place router of device Kind hardware structure diagram, in addition to processor 210 shown in Fig. 2, memory 220, network interface 230 and nonvolatile memory 240 Except, the router in embodiment where device can also include other hardware generally according to its actual functional capability, no longer superfluous to this It states.
Fig. 3 is a kind of block diagram of the setting device of router shown in one exemplary embodiment of the application, as shown in figure 3, The setting device of the router includes: the first acquisition module 31, the first setup module 32, second acquisition module 33 and the second setting Module 34.
First acquisition module 31 is used to obtain WAN mouthfuls of the wide area network access ways for accessing default network.
If the first setup module 32 accesses the access way of default network for the WAN mouth that the first acquisition module 31 is got WAN different from WAN mouthfuls of default access way, then being revised as getting from default access way by WAN mouthfuls of access setting Mouth accesses the access way of default network.
Second, which obtains module 33, is used to obtain the access side that module 31 obtains the default network of wide area network WAN mouthfuls of access first After formula, it is retrieved as the address information of WAN mouthfuls of distribution.
If the second setup module 34 obtains the address information and local network LAN mouth that module 33 is WAN mouthfuls of distribution for second Default address information collision then updates the address information of LAN mouthfuls of setting and the ground of dynamic host configuration protocol DHCP server Location pond.
In an optional implementation, the first acquisition module 31 can be specifically used for: simulant-client sends message, And by whether the response message of message is received to obtain the WAN mouthfuls of access ways for accessing default network.
In another optional implementation, as shown in figure 4, the first acquisition module 31 may include: the first transmission Module 311, the first acquisition submodule 312, the second sending submodule 313 and the second acquisition submodule 314.
First sending submodule 311 sends the first message for simulant-client, and the first message is used to detect WAN mouthfuls and connect Enter mode.
If the first acquisition submodule 312 is used to receive the response report of the first message of the first sending submodule 311 transmission Text, then obtaining the access way that WAN mouthfuls are accessed default network is access way corresponding with the first message.
If the second sending submodule 313 is used to not receive the response of the first message of the first sending submodule 311 transmission Message, then simulant-client sends the second message, and the second message is used to detect WAN mouthfuls of access way.
If the second acquisition submodule 314 is used to receive the response report of the second message of the second sending submodule 313 transmission Text, then obtaining the access way that WAN mouthfuls are accessed default network is access way corresponding with the second message.
Wherein, the first message can be DHCP message, and the second message can be PPPoE message.
In another optional implementation, the address information for WAN mouthfuls of distribution includes WAN mouthfuls of IP address, domain name Server dns address and routing iinformation, as shown in figure 5, the second setup module 34 may include: determining submodule 341 and setting Submodule 342.
Determine submodule 341 for by in WAN mouthfuls of IP address, routing iinformation IP address and dns address not The IP address of conflict is as LAN mouthfuls of current IP address;
Submodule 342 is set and is set as and determines what submodule 341 determined for updating the address pool of Dynamic Host Configuration Protocol server The corresponding network segment of IP address after the setting of LAN oral replacement.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein being used as separate part description Unit may or may not be physically separated, component shown as a unit may or may not be Physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to the actual needs Some or all of the modules therein is selected to realize the purpose of application scheme.Those of ordinary skill in the art are not paying wound In the case that the property made is worked, it can understand and implement.
The setting device of above-mentioned router, by obtaining the WAN mouthfuls of access ways for accessing default network, and when acquisition (i.e. before accessing default network, WAN mouthfuls are matched for the WAN mouthfuls of access ways for accessing default network and WAN mouthfuls of default access way The access way set) it is different when, WAN mouthful of access setting can be revised as the WAN mouth obtained access from default access way The access way of default network, and can be in the address information and local network LAN mouth default address information collision distributed for WAN mouthfuls When, it updates and LAN mouthfuls of address information and the address pool of Dynamic Host Configuration Protocol server is set, so that LAN mouthfuls of address information and DHCP clothes The address pool of business device does not conflict with WAN mouthfuls of address information, to complete the setting of router, and then realize router is Plug-and-play.
The above is only the preferred embodiments of the application, not to limit the application, it is all in spirit herein and Within principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.

Claims (10)

1. a kind of setting method of router, which is characterized in that the described method includes:
Obtain the wide area network WAN mouthfuls of access way for accessing default network;
If the WAN mouthfuls the got access ways for accessing default network are different from described WAN mouthfuls of default access way, Described WAN mouthfuls of access setting is revised as the WAN mouthfuls got from the default access way and accesses default network Access way;
It is retrieved as the address information of the WAN mouthfuls of distribution;
If the address information and local network LAN mouth default address information collision for described WAN mouthfuls distribution, updates setting institute State LAN mouthfuls of address information and the address pool of dynamic host configuration protocol DHCP server.
2. the method according to claim 1, wherein described obtain connecing for the wide area network WAN mouthfuls of default network of access Enter mode, comprising:
Simulant-client sends message, and by whether receives the response message of the message to obtain the WAN mouthfuls of access The access way of default network.
3. according to the method described in claim 2, and by whether connecing it is characterized in that, the simulant-client sends message The response message of the message is received to obtain WAN mouthfuls of the access way, comprising:
Simulant-client sends the first message, and first message is for detecting WAN mouthfuls of the access way;
If receiving the response message of first message, obtain the access way that described WAN mouthfuls is accessed default network be with The corresponding access way of first message;
If not receiving the response message of first message, simulant-client sends the second message, and second message is used In detection WAN mouthfuls of the access way;
If receiving the response message of second message, obtain the access way that described WAN mouthfuls is accessed default network be with The corresponding access way of second message.
4. according to the method described in claim 3, it is characterized in that, first message is DHCP message, second message For PPPoE message.
5. the method according to claim 1, wherein the address information distributed for described WAN mouthfuls includes institute State WAN mouthfuls of IP address, domain name server (DNS) address and routing iinformation;
It is described to update the address pool that LAN mouthfuls of the address information and dynamic host configuration protocol DHCP server are set, packet It includes:
By with the IP address and the dns address IP that does not conflict in WAN mouthfuls of the IP address, the routing iinformation Location is as LAN mouthfuls of the current IP address;
The address pool of the Dynamic Host Configuration Protocol server is updated and is set as net corresponding with the IP address after LAN oral replacement setting Section.
6. a kind of setting device of router, which is characterized in that described device includes:
First obtains module, for obtaining WAN mouthfuls of the wide area network access ways for accessing default network;
First setup module, if the access side of the default network of the WAN mouthfuls of accesses got for the first acquisition module Formula is different from described WAN mouthfuls of default access way, then WAN mouthfuls of the access is arranged from the default access way and modifies The WAN mouthfuls to get are accessed the access way for presetting network;
Second obtains module, obtains the wide area network WAN mouthfuls of access way for accessing default network for obtaining module described first Later, it is retrieved as the address information of the WAN mouthfuls of distribution;
Second setup module, if obtaining the address information and local network LAN mouth that module is described WAN mouthfuls distribution for described second Default address information collision then updates setting LAN mouthfuls of the address information and dynamic host configuration protocol DHCP server Address pool.
7. device according to claim 6, which is characterized in that described first obtains module, is specifically used for:
Simulant-client sends message, and by whether receives the response message of the message to obtain the WAN mouthfuls of access The access way of default network.
8. device according to claim 7, which is characterized in that described first, which obtains module, includes:
First sending submodule sends the first message for simulant-client, and first message is for detecting described WAN mouthfuls Access way;
First acquisition submodule, if the response report for receiving first message that first sending submodule is sent Text, then obtaining the access way that described WAN mouthfuls is accessed default network is access way corresponding with first message;
Second sending submodule, if the response report for not receiving first message that first sending submodule is sent Text, then simulant-client sends the second message, and second message is for detecting WAN mouthfuls of the access way;
Second acquisition submodule, if the response report for receiving second message that second sending submodule is sent Text, then obtaining the access way that described WAN mouthfuls is accessed default network is access way corresponding with second message.
9. device according to claim 8, which is characterized in that first message is DHCP message, second message For PPPoE message.
10. device according to claim 6, which is characterized in that the address information distributed for described WAN mouthfuls includes institute State WAN mouthfuls of IP address, domain name server (DNS) address and routing iinformation;
Second setup module includes:
Determine submodule, for by in WAN mouthfuls of the IP address, the routing iinformation IP address and the DNS The IP address that location does not conflict is as LAN mouthfuls of the current IP address;
Submodule is set, for the address pool of the Dynamic Host Configuration Protocol server to be updated to the institute for being set as determining with the determining submodule The corresponding network segment of IP address after stating the setting of LAN oral replacement.
CN201710266935.8A 2017-04-21 2017-04-21 The setting method and device of router Active CN106888130B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710266935.8A CN106888130B (en) 2017-04-21 2017-04-21 The setting method and device of router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710266935.8A CN106888130B (en) 2017-04-21 2017-04-21 The setting method and device of router

Publications (2)

Publication Number Publication Date
CN106888130A CN106888130A (en) 2017-06-23
CN106888130B true CN106888130B (en) 2019-11-12

Family

ID=59182969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710266935.8A Active CN106888130B (en) 2017-04-21 2017-04-21 The setting method and device of router

Country Status (1)

Country Link
CN (1) CN106888130B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107172229B (en) * 2017-06-27 2021-05-18 中国联合网络通信集团有限公司 Router configuration method and device
WO2019006761A1 (en) * 2017-07-07 2019-01-10 华为技术有限公司 Method and apparatus for local area network device to restore internet access
CN108234687B (en) * 2017-12-29 2021-03-19 深圳华望技术有限公司 Intelligent IP address configuration method and device and terminal equipment
CN109451085B (en) * 2018-10-12 2021-08-10 厦门亿联网络技术股份有限公司 Method and device for realizing network isolation through IP address camouflage
CN111064642B (en) * 2019-12-25 2021-12-03 深圳市网心科技有限公司 Dialing networking method and related equipment thereof
CN111614565B (en) * 2020-05-19 2022-05-10 青岛海信宽带多媒体技术有限公司 Message forwarding method and gateway

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262368A (en) * 2008-03-17 2008-09-10 中兴通讯股份有限公司 Method and device for configuration and configuration in home gateway routing mode
CN101388816A (en) * 2008-11-05 2009-03-18 深圳华为通信技术有限公司 Network interface mode switching method and device
CN102025792A (en) * 2009-09-22 2011-04-20 国基电子(上海)有限公司 Router and IP address setting method thereof
CN103534984A (en) * 2012-10-08 2014-01-22 华为终端有限公司 Port setting method, apparatus and computer program product for routing
CN105634810A (en) * 2015-12-29 2016-06-01 Tcl集团股份有限公司 Method, system and accessing device for accessing universal plug-and-play device
CN105744012A (en) * 2016-03-09 2016-07-06 上海斐讯数据通信技术有限公司 Automatic solving method and device for IP (Internet Protocol) network segment conflicts of multiple WAN (wide area network) and LAN (local area network)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI387289B (en) * 2009-02-18 2013-02-21 Giga Byte Tech Co Ltd Router and method for avoiding a domain name conflict

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262368A (en) * 2008-03-17 2008-09-10 中兴通讯股份有限公司 Method and device for configuration and configuration in home gateway routing mode
CN101388816A (en) * 2008-11-05 2009-03-18 深圳华为通信技术有限公司 Network interface mode switching method and device
CN102025792A (en) * 2009-09-22 2011-04-20 国基电子(上海)有限公司 Router and IP address setting method thereof
CN103534984A (en) * 2012-10-08 2014-01-22 华为终端有限公司 Port setting method, apparatus and computer program product for routing
CN105634810A (en) * 2015-12-29 2016-06-01 Tcl集团股份有限公司 Method, system and accessing device for accessing universal plug-and-play device
CN105744012A (en) * 2016-03-09 2016-07-06 上海斐讯数据通信技术有限公司 Automatic solving method and device for IP (Internet Protocol) network segment conflicts of multiple WAN (wide area network) and LAN (local area network)

Also Published As

Publication number Publication date
CN106888130A (en) 2017-06-23

Similar Documents

Publication Publication Date Title
CN106888130B (en) The setting method and device of router
US10897523B2 (en) System and method for implementing isolated service overlays between provider network service point and customer premises
CN101502049B (en) Method and device for identifying and selecting an interface to access a network
US8125915B2 (en) Remote management of a bridge device
KR101073735B1 (en) Method and apparatus for router port configuration
CN104753697B (en) A kind of method, equipment and system controlling the automatic beginning of the network equipment
US8543674B2 (en) Configuration of routers for DHCP service requests
CN102025792B (en) Router and IP address setting method thereof
CN105743684B (en) The configuration method and router of router under a kind of ap mode
US11405314B2 (en) Packet processing method and apparatus
KR20080029966A (en) Device and method for managing two types of devices
CN107743075A (en) A kind of multisystem network InterWorking Equipment, method and device
CN106713039A (en) Method and device for identifying Ethernet ports and router
WO2020132984A1 (en) Ipv6 address configuration method and router device
US20060114835A1 (en) Device, system, and method for automatically determining an appropriate LAN IP address range in a multi-router network environment
WO2016082335A1 (en) Ip address allocation method, coaxial cable intermediate converter and system
ES2944621T3 (en) Technique for executing a service in a local network through an extended communication network
CN105472054B (en) A kind of file transmitting method and access device
JP6052876B2 (en) Relay device, control method thereof, and control program thereof
CN113904939A (en) Method, device and storage medium for managing target terminal
JP2018042055A (en) Ethernet bridge device and internet communication system using the same
US20160269242A1 (en) Improved subnet provisioning method

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230627

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.