CN105721189A - Network port configuration method and device for network equipment - Google Patents

Network port configuration method and device for network equipment Download PDF

Info

Publication number
CN105721189A
CN105721189A CN201410733711.XA CN201410733711A CN105721189A CN 105721189 A CN105721189 A CN 105721189A CN 201410733711 A CN201410733711 A CN 201410733711A CN 105721189 A CN105721189 A CN 105721189A
Authority
CN
China
Prior art keywords
network interface
type
network
equipment
described network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410733711.XA
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201410733711.XA priority Critical patent/CN105721189A/en
Priority to PCT/CN2015/073982 priority patent/WO2016086544A1/en
Publication of CN105721189A publication Critical patent/CN105721189A/en
Pending legal-status Critical Current

Links

Classifications

    • 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

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 invention discloses a network port configuration method and device for network equipment, and related to the technical field of communication. The method and device are used for solving problems in the prior art that a network port is usually idle and the utilization rate is low. The method comprises the steps: detecting a service state of the network port of the network equipment, wherein the network port is a WAN port or a LAN port; changing the type of the network port when the service state of the network port of the network equipment is idle, so as to carry out network connection through the changed network port.

Description

The network interface collocation method of a kind of network equipment and device
Technical field
The present invention relates to communication technical field, particularly relate to network interface collocation method and the device of a kind of network equipment.
Background technology
Box product (intelligent television box) on the market substantially all can configure and a network interface next connection with the Internet realize function of surfing the Net now.But in today that wireless mobile communications is universal, Box product many times all accesses the Internet by other non-network interface modes such as Wi-FI, 3G, and so, network interface will become a stand-by equipment, and utilization rate is relatively low.
Summary of the invention
The technical problem to be solved in the present invention is to provide network interface collocation method and the device of a kind of network equipment, usually leaves unused in order to solve network interface in prior art, the problem that utilization rate is relatively low.
On the one hand, the present invention provides the network interface collocation method of a kind of network equipment, including: detecting the use state of the network interface of the described network equipment, wherein, the network interface type of described network interface includes wide area network WAN mouth or local network LAN mouth;When the use state of the network interface of the described network equipment is idle condition, change the network interface type of described network interface, to carry out network connection by the described network interface after changing type.
Optionally, when the network interface type of described network interface is WAN mouth, the use state of the network interface of the described network equipment of described detection specifically includes: whether the network interface detecting the described network equipment is connected with the Internet;When the network interface of the described network equipment is not connected with the Internet, it is determined that the use state of the network interface of the described network equipment is idle condition;The network interface type of the described network interface of described change specifically includes: by WAN mouth, described network interface type is changed into LAN mouth.
Further, after the network interface type of the described network interface of described change, described method also includes: be connected with terminal by the described network interface after changing type;The described network equipment is wirelessly connected with the Internet, so that described terminal is connected with the Internet by the described network equipment.
Optionally, when the network interface type of described network interface is LAN mouth, the use state of the network interface of the described network equipment of described detection specifically includes: whether the network interface detecting the described network equipment is connected with terminal;When the network interface of the described network equipment is not connected with described terminal, it is determined that the use state of the network interface of the described network equipment is idle condition;The network interface type of the described network interface of described change specifically includes: by LAN mouth, described network interface type is changed into WAN mouth.
Further, after the network interface type of the described network interface of described change, described method also includes: be connected with the Internet by the described network interface after changing type;The described network equipment is wirelessly connected with terminal, so that described terminal is connected with the Internet by the described network equipment.
On the other hand, the present invention also provides for the network interface configuration device of a kind of network equipment, including: detection unit, for detecting the use state of the network interface of the described network equipment, wherein, the network interface type of described network interface includes WAN mouth or LAN mouth;Change unit, be used for, when the use state of the network interface of the described detection unit detection network equipment is idle condition, changing the network interface type of described network interface, to carry out network connection by the described network interface after changing type.
Optionally, when the network interface type of described network interface is WAN mouth, described detection unit specifically for: whether the network interface detecting the described network equipment is connected with the Internet;When the network interface of the described network equipment is not connected with the Internet, it is determined that the use state of the network interface of the described network equipment is idle condition;Described change unit, specifically for being changed into LAN mouth by described network interface type by WAN mouth.
Further, described device also includes the first connection unit, is used for: after the network interface type of the described network interface of described change, is connected with terminal by the described network interface after changing type;The described network equipment is wirelessly connected with the Internet, so that described terminal is connected with the Internet by the described network equipment.
Optionally, when the network interface type of described network interface is LAN mouth, described detection unit specifically for: whether the network interface detecting the described network equipment is connected with terminal;When the network interface of the described network equipment is not connected with described terminal, it is determined that the use state of the network interface of the described network equipment is idle condition;Described change unit, specifically for being changed into WAN mouth by described network interface type by LAN mouth.
Further, described device also includes the second connection unit, is used for: after the network interface type of the described network interface of described change, is connected with the Internet by the described network interface after changing type;The described network equipment is wirelessly connected with terminal, so that described terminal is connected with the Internet by the described network equipment.
The network interface collocation method of the network equipment that the embodiment of the present invention provides and device, it is capable of detecting when the use state of the network interface of the network equipment, when network equipment normal operation but the use state of its network interface are idle condition, could alter that the network interface type of described network interface, to carry out network connection by the described network interface after changing type.So, by the conversion to network interface type, script redundancy arranges, is in the network interface of idle condition and can carry out again network connection in another way and provide corresponding service, is effectively increased the network interface utilization rate of the network equipment.
Accompanying drawing explanation
Fig. 1 is a kind of flow chart of the network interface collocation method of the network equipment that the embodiment of the present invention provides;
Fig. 2 is a kind of structural representation of Intelligent set top box in the preferred embodiment of the present invention;
Fig. 3 is that in the embodiment of the present invention, the network interface of Intelligent set top box is network connection diagram during WAN mouth type;
Fig. 4 is that in the embodiment of the present invention, the network interface of Intelligent set top box is network connection diagram during LAN mouth type;
Fig. 5 is a kind of detailed flow chart of the network interface collocation method of the network equipment that the embodiment of the present invention provides;
Fig. 6 is a kind of structural representation of the network interface configuration device of the network equipment that the embodiment of the present invention provides.
Detailed description of the invention
Below in conjunction with accompanying drawing, the present invention is described in detail.Should be appreciated that specific embodiment described herein is only in order to explain the present invention, does not limit the present invention.
As it is shown in figure 1, embodiments of the invention provide the network interface collocation method of a kind of network equipment, including:
S11, detects the use state of the network interface of the described network equipment, and wherein, the network interface type of described network interface includes WAN mouth or LAN mouth;
S12, when the use state of the network interface of the described network equipment is idle condition, changes the network interface type of described network interface, to carry out network connection by the described network interface after changing type.
The network interface collocation method of the network equipment that the embodiment of the present invention provides, by detecting the use state of the network interface of the network equipment, when network equipment normal operation but the use state of its network interface are idle condition, could alter that the network interface type of described network interface, to carry out network connection by the described network interface after changing type.So, by the conversion to network interface type, script redundancy arranges, is in the network interface of idle condition and can carry out again network connection in another way and provide corresponding service, is effectively increased the network interface utilization rate of the network equipment.
It should be noted that, network interface type can be WAN mouth type, i.e. the network interface type for being connected with outside the Internet, such as ADSL (AsymmetricDigitalSubscriberLine, ADSL), DDN (DigitalDataNetwork, Digital Data Net), the various line attachments such as Ethernet, it can also be LAN mouth type, namely for connecting the network interface type of local network device, the switch mainly and in family, hub or PC are connected.Change network interface type described in the present embodiment is substantially make same network interface can change between above two type by software arrangements.
This network interface collocation method is all suitable for for all equipment (such as router etc.) with network interface, it is particularly suited for there is and only has the network equipment of a network interface, such as Intelligent set top box or with the U-fi etc. of network interface.General, a lot of network equipments may be provided with line and wireless two kinds of network accesses, for instance, for Intelligent set top box, its network interface type is WAN mouth, both can pass through network interface and be connected with the Internet, it is also possible to wirelessly be connected with the Internet and realize function of surfing the Net.For the U-fi with network interface, its network interface type is LAN mouth, both can pass through network interface and be connected with terminal, provide service on net for this terminal, it is also possible to be connected with terminal wireless, provide wifi service for terminal.
Separately below for Intelligent set top box and U-fi, network interface collocation method provided by the invention is described in detail.
Specifically, for Intelligent set top box, when network interface type is WAN mouth, the use state of the network interface detecting the described network equipment in step s 11 specifically comprises the steps that
Whether the network interface detecting the described network equipment is connected with the Internet;
When the network interface of the described network equipment is not connected with the Internet, it is determined that the use state of the network interface of the described network equipment is idle condition;
Accordingly, the network interface type changing described network interface in step s 12 specifically comprises the steps that
Described network interface type is changed into LAN mouth by WAN mouth.
Optionally, whether the network interface detecting the described network equipment is connected with the Internet, it is possible to sends access request by the port status of inquiry system and trial to the Internet and combines realization.
Such as, when network interface is connected to other equipment, system there will be an eth0 logic port, and when network interface is not connected with other equipment, system is just absent from eth0 logic port, therefore, first whether can be existed by inquiry eth0 port and determine whether network interface is connected with other equipment, when determining that this network interface is connected with other equipment, it is possible to further determine that other equipment of connection are Internet Server or access terminals by sending access request to the Internet.If the request accessing the Internet meets with a response, it is determined that network interface is connected to Internet Server, otherwise determines that network interface is connected to common access terminals.
Specifically, the type conversion between WAN mouth and LAN mouth, the equipment no matter being based on linux system is also based on the equipment of windows system, realizes such as through carrying out software arrangements.Such as, for android system, the shell script being switched to LAN mouth from WAN mouth can be as follows:
/ system/bin/iptables_droid-tnat F;// empty the online rule stored in nat table;
Echo0 >/proc/sys/net/ipv4/ip_forward;// forwarding capability is forbidden;
Echo1 >/proc/sys/net/ipv4/ip_forward;// forwarding capability is opened.
In above-mentioned code, first nat table current in network interface is emptied, so that in nat table, the various online of storage are regular time before removing as WAN mouth, then pass through and first forbid forwarding capability opening again, realizing restarting of forwarding capability, so, this network interface just possesses data forwarding capability, to forward the data to connected access terminals, thus realizing the function of LAN mouth.
For other language systems, although system is different, but corresponding switching can be realized.
Further, after the network interface type of the described network interface of described change, the network interface collocation method that the embodiment of the present invention provides may also include the steps of:
Network interface after changing type is connected with terminal;
The described network equipment is wirelessly connected with the Internet, so that described terminal is connected with the Internet by the described network equipment.
It is to say, the network interface of Intelligent set top box is WAN type originally, after finding that this network interface is in idle condition, in order to improve the utilization rate of this network interface, the type of this network interface is modified, makes this network interface be become LAN mouth from WAN mouth.So, this network interface just can be connected with terminal, and when this Intelligent set top box is connected with the Internet by wireless modes such as 3G or wifi, this network interface will not be idle, but as the network interface of a LAN type, it is possible to provide service on net for various terminals.
By network interface collocation method provided by the invention, it is possible to make network interface also have its purposes by Wi-Fi, 3G when being surfed the Net.Such as: there are a PC and a Box product being connected to the Internet by 3G mobile network in current family, and this PC does not support that wireless Internet access can only be attached.If that want PC to surf the Net, then can passing through network interface collocation method provided by the invention, change the network interface type of this Box, then PC is connected to this network interface, such PC can share the 3G mobile network of Box.
On the contrary, if user needs to use this Intelligent set top box to be connected with the Internet not by wireless modes such as 3G or wifi, so the network interface on this Intelligent set top box just could be arranged to WAN mouth type, and this Intelligent set top box can pass through this network interface and be connected with the Internet.
Optionally, being switched to WAN mouth shell script from LAN mouth can be as follows:
/ system/bin/iptables_droid-tnat F;// empty the online rule stored in nat table;
Echo0 >/proc/sys/net/ipv4/ip_forward.// forwarding capability is forbidden.
In above-mentioned code, first nat table current in network interface is emptied, in order to time before removing as LAN mouth, in nat table, the various of storage forward rule, are then forbidden by forwarding capability, thus realizing the function of WAN mouth.
In the embodiment of the present invention, it is possible to effectively utilize the network port device of Box, and by the state transformation of network interface, make Box product can pass through network interface and provide network service for other equipment.Equipment for not having wireless network card is especially useful.
Below by specific embodiment, to Box network interface configuration and application process be described in detail.Box herein refers to intelligent television box or Intelligent set top box, it is possible to be connected with television set by HDMI (HighDefinitionMultimediaInterface, HDMI), common TV is become intelligent television, and application is installed, and online, game etc..As in figure 2 it is shown, Box can include three modules: communication module (Wi-FI, 3G), network interface controls module, network interface module.
Communication module
This module can provide Wi-Fi, 3G to connect, and mainly has two function: a. when network interface type is WAN mouth, provides service on net for Box product, and Box product connects the Internet by this module, and its connection diagram is as shown in Figure 3.B. be LAN mouth in network interface type, and and when other equipment are attached, this time this module can also to pass through network interface be that other equipment provides network service, its connection diagram is as shown in Figure 4.
Network interface controls module
The state of network interface is mainly controlled by this module.Software system realizes the mutual switching of network interface WAN mouth and LAN mouth.User can arrange the type of network interface in this module of Box product according to service condition: WAN mouth type can pass through network interface provides service on net for Box product.LAN mouth type can be networked by the communication module of Box product, and uses network interface to make the network service of other collaborative share Box product.
Network interface module
This module mainly controls, according to network interface, the different network interface type that module is arranged.Different network interface type correspondence difference in functionality: a.WAN mouth type, provides service on net for Box product, and Box product is connected to the Internet by this module use netting twine and carries out online connection.B.LAN mouth type, Box can use this network interface to connect other equipment when using WIFI, 3G online, for other collaborative share services on net.
Owing to WAN mouth is the function that usual Box product all possesses, workflow each Box product basic is all the same.So main with network interface type for LAN mouth below, system is the workflow of the method and realize method under android system introduction.But this method is not limited to android system and this realizes method.
As it is shown in figure 5, in the present embodiment, the network interface collocation method of Box be may include steps of:
Step S201, unlatching wifi connect wifi network, or open 3G connection mobile network, make Box pass through wifi or 3G and connect the Internet.
This step realize can pass through: in 1 entrance system carry the program of setting open wifi and connect wifi network or open mobile data network realize.2 use opening and connecting of the manually implemented wifi of api method that is correlated with in WifiManager.java in framework.Phone.java, ConnectivityManager.java in framework is used to carry out manually opened mobile data network.Both approaches implements and can realize source code with reference to Setting and the Phone program in android source code.
Step S202, appointment data feedback channel;
Optionally, it is possible to manually select wifi or 3G as data feedback channel so that it is provide network service to network interface.Can also use software system automatic decision user currently used be which kind of mode is connected to the Internet, then automatically specify data feedback channel.
This step realizes the following shell script of step:
/system/bin/iptables_droid-tnat-F
/ system/bin/iptables_droid-tnat-APOSTROUTING-oppp0-jMASQU ERADE;
Wherein, oblique boldface is the system port name that data feedback channel is corresponding, replaces oblique boldface for selecting different data feedback channels to have only to by corresponding system port name.Such as, if currently selecting wifi is data feedback channel, and the port wlan0 by name that wifi is corresponding in systems, then only oblique boldface need to be replaced with wlan0.That is:
/ system/bin/iptables_droid-tnat-APOSTROUTING-owlan0-jMASQ UERADE;
Optionally, when adopting the method automatically arranged to specify data feedback channel, it is possible to get current networking state by following code, in order to the port of correspondence is set:
ConnectivityManagerconn=
(ConnectivityManager) context.getSystemService (Context.CONNECTIVITY_SERVICE);
Conn.getActiveNetworkinfo () .getTypeName ();
Can obtaining current network name by this program, thus judging is currently wifi or mobile network, then correspondence carries out specifying.
As to how call shell script from java, it is possible to reference to the correlation technique in the init.rc in anroid system.
Step S203, judge whether S202 uplink network specifies successfully, if the uplink network specified is opened or connects, then perform S205;If it succeeds, perform S204.
Step S204, arranging network interface type, switching network interface type WAN is LAN, makes network interface can provide network service to other equipment connected.Perform S206.
It is switched to LAN mouth shell script as follows from WAN mouth:
/system/bin/iptables_droid-tnat-F
echo0>/proc/sys/net/ipv4/ip_forward
echo1>/proc/sys/net/ipv4/ip_forward
It is switched to WAN mouth shell script as follows from LAN mouth:
/system/bin/iptables_droid-tnat-F
Echo0 >/proc/sys/net/ipv4/ip_forward;
Failure cause is specified in step S205, prompting, performs S112.
Step S206, connection other-end, use netting twine to connect the network interface of Box network interface and other-end, set up the physical connection of two equipment, and sharing network service for network interface provides infrastructural support.
Step S207, judge in S206 the connection of the network interface of Box and other network equipments whether success, if failure, perform S208;If it succeeds, perform S209.
It is as follows that this step realizes method:
By network interface port, such as eht0 obtains the state of this port by bottom, and judges currently whether have been carried out physical connection.Can be interacted with network interface bottom and driving by jni at androidUI, in order to know port connection state.
Step S208, prompting connection failure reason, perform S112.
Step S209, dynamically distribute ip address for other-end, provide infrastructural support for network service.Other-end can use this ip address as the ip of oneself.
It is as follows that this step realizes method:
Dynamic Graph distribution ip uses DHCP (DynamicHostConfigurationProtocol, DHCP), realizes the information configuration of client machine in a dynamic way.Box is as Dynamic Host Configuration Protocol server, when Dynamic Host Configuration Protocol server receives the information of client IP address requesting, just searches whether in data base that legal IP address is supplied to client.If it has, by this IP labelling, broadcast a DHCPOffer and provide message, this message mainly comprises: the MAC Address of client, the legal IP of offer, subnet mask, lease time limit, server ip address etc..Concrete introduction is not done in the realization that concrete Dynamic Host Configuration Protocol server realizes being referred in other system here.
Step S210, it is judged as that third party device distributes dynamic ip whether success, if failure, performs S111;If it is successful, other equipment begin through Box shares network, perform S212.
Step S211, prompting ip distribute failure cause, if S210 distributes ip failure, prompting user unsuccessfully provides failure cause, performs S212.
Step S212, end.
After realizing data feedback channel and distributing ip for other equipment, other equipment (such as common pc machine) just can be undertaken surfing the Net by the network of the shared Box of netting twine.
It should be noted that the network interface collocation method that the embodiment of the present invention provides, although mainly illustrate for Android system, but this method is not limited thereto.
Specifically, for U-fi, its built-in network interface is generally LAN type, then, in step s 11, detect the network interface of the described network equipment and whether be in idle condition and may particularly include:
Whether the network interface detecting the described network equipment is connected with terminal;Optionally, in this step, still can determine whether network interface is connected to other equipment by whether inquiry system exists eth0 port.If there is eth0 port, then illustrating that network interface is connected to other equipment, if there is no eth0 then illustrates that network interface does not connect other equipment.Under determining the premise that eth0 port is connected to other equipment, it is possible to by attempting network interface type being appointed as, WAN mouth attempting sends to the Internet that access request determines that this network interface connects is the Internet or common access terminals further.If the request accessing the Internet meets with a response, it is determined that network interface is connected to the Internet, otherwise determines that network interface is connected to common access terminals.
When the network interface of the described network equipment is not connected with described terminal, it is determined that the use state of the network interface of the described network equipment is idle condition;
Accordingly, the network interface type changing described network interface in step s 12 may particularly include: by LAN mouth, described network interface type is changed into WAN mouth.
Further, after the network interface type of the described network interface of described change, described method also includes:
Network interface after changing type is connected with the Internet;
The described network equipment is wirelessly connected with terminal, so that described terminal is connected with the Internet by the described network equipment.
In the present embodiment, by the network interface of U-fi is changed into WAN mouth type, namely U-fi can utilize this network interface to be connected with the Internet, then as a hotspot, provides wifi service to other-end.
Accordingly, as shown in Figure 6, embodiments of the invention also provide for the network interface configuration device of a kind of network equipment, including:
Detection unit 30, for detecting the use state of the network interface of the described network equipment, wherein, the network interface type of described network interface includes WAN mouth or LAN mouth;
Change unit 32, for when detecting unit 30 and detect the use state of network interface of the network equipment and being idle condition, changing the network interface type of described network interface, carry out network connection with the described network interface after passing through change type.
The network interface configuration device of the network equipment that the embodiment of the present invention provides, its detection unit 30 is capable of detecting when the use state of the network interface of the network equipment, when network equipment normal operation but the use state of its network interface are idle condition, change unit 32 and could alter that the network interface type of described network interface, to carry out network connection by the described network interface after changing type.So, by the conversion to network interface type, script redundancy arranges, is in the network interface of idle condition and can carry out again network connection in another way and provide corresponding service, is effectively increased the network interface utilization rate of the network equipment.
Optionally, the network interface type of described network interface is WAN mouth, detection unit 30 specifically for:
Whether the network interface detecting the described network equipment is connected with the Internet;
When the network interface of the described network equipment is not connected with the Internet, it is determined that the use state of the network interface of the described network equipment is idle condition;
Change unit 32, specifically for described network interface type is changed into LAN mouth by WAN mouth.
Further, the network interface configuration device that the embodiment of the present invention provides also includes the first connection unit, is used for:
After the network interface type of the described network interface of described change, the network interface after changing type is connected with terminal;
The described network equipment is wirelessly connected with the Internet, so that described terminal is connected with the Internet by the described network equipment.
Optionally, the network interface type of described network interface is LAN, detection unit 30 specifically for:
Whether the network interface detecting the described network equipment is connected with terminal;
When the network interface of the described network equipment is not connected with described terminal, it is determined that the use state of the network interface of the described network equipment is idle condition;
Change unit 32, specifically for described network interface type is changed into WAN mouth by LAN mouth.
Further, the network interface configuration device that the embodiment of the present invention provides may also include the second connection unit, is used for:
After the network interface type of the described network interface of described change, the network interface after changing type is connected with the Internet;
The described network equipment is wirelessly connected with terminal, so that described terminal is connected with the Internet by the described network equipment.
Although being example purpose, having been disclosed for the preferred embodiments of the present invention, it is also possible for those skilled in the art will recognize various improvement, increase and replacement, and therefore, the scope of the present invention should be not limited to above-described embodiment.

Claims (10)

1. the network interface collocation method of a network equipment, it is characterised in that including:
Detecting the use state of the network interface of the described network equipment, wherein, the network interface type of described network interface includes wide area network WAN mouth or local network LAN mouth;
When the use state of the network interface of the described network equipment is idle condition, change the network interface type of described network interface, to carry out network connection by the described network interface after changing type.
2. method according to claim 1, it is characterised in that when the network interface type of described network interface is WAN mouth, the use state of the network interface of the described network equipment of described detection specifically includes:
Whether the network interface detecting the described network equipment is connected with the Internet;
When the network interface of the described network equipment is not connected with the Internet, it is determined that the use state of the network interface of the described network equipment is idle condition;
The network interface type of the described network interface of described change specifically includes:
Described network interface type is changed into LAN mouth by WAN mouth.
3. method according to claim 2, it is characterised in that after the network interface type of the described network interface of described change, described method also includes:
Described network interface after changing type is connected with terminal;
The described network equipment is wirelessly connected with the Internet, so that described terminal is connected with the Internet by the described network equipment.
4. method according to claim 1, it is characterised in that when the network interface type of described network interface is LAN mouth, the use state of the network interface of the described network equipment of described detection specifically includes:
Whether the network interface detecting the described network equipment is connected with terminal;
When the network interface of the described network equipment is not connected with described terminal, it is determined that the use state of the network interface of the described network equipment is idle condition;
The network interface type of the described network interface of described change specifically includes:
Described network interface type is changed into WAN mouth by LAN mouth.
5. method according to claim 4, it is characterised in that after the network interface type of the described network interface of described change, described method also includes:
Described network interface after changing type is connected with the Internet;
The described network equipment is wirelessly connected with terminal, so that described terminal is connected with the Internet by the described network equipment.
6. the network interface configuration device of a network equipment, it is characterised in that including:
Detection unit, for detecting the use state of the network interface of the described network equipment, wherein, the network interface type of described network interface includes WAN mouth or LAN mouth;
Change unit, be used for, when the use state of the network interface of the described detection unit detection network equipment is idle condition, changing the network interface type of described network interface, to carry out network connection by the described network interface after changing type.
7. device according to claim 6, it is characterised in that when the network interface type of described network interface is WAN mouth, described detection unit specifically for:
Whether the network interface detecting the described network equipment is connected with the Internet;
When the network interface of the described network equipment is not connected with the Internet, it is determined that the use state of the network interface of the described network equipment is idle condition;
Described change unit, specifically for being changed into LAN mouth by described network interface type by WAN mouth.
8. device according to claim 7, it is characterised in that also include the first connection unit, be used for:
After the network interface type of the described network interface of described change, the described network interface after changing type is connected with terminal;
The described network equipment is wirelessly connected with the Internet, so that described terminal is connected with the Internet by the described network equipment.
9. device according to claim 6, it is characterised in that when the network interface type of described network interface is LAN mouth, described detection unit specifically for:
Whether the network interface detecting the described network equipment is connected with terminal;
When the network interface of the described network equipment is not connected with described terminal, it is determined that the use state of the network interface of the described network equipment is idle condition;
Described change unit, specifically for being changed into WAN mouth by described network interface type by LAN mouth.
10. device according to claim 9, it is characterised in that also include the second connection unit, be used for:
After the network interface type of the described network interface of described change, the described network interface after changing type is connected with the Internet;
The described network equipment is wirelessly connected with terminal, so that described terminal is connected with the Internet by the described network equipment.
CN201410733711.XA 2014-12-04 2014-12-04 Network port configuration method and device for network equipment Pending CN105721189A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410733711.XA CN105721189A (en) 2014-12-04 2014-12-04 Network port configuration method and device for network equipment
PCT/CN2015/073982 WO2016086544A1 (en) 2014-12-04 2015-03-11 Network interface configuration method and apparatus for network device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410733711.XA CN105721189A (en) 2014-12-04 2014-12-04 Network port configuration method and device for network equipment

Publications (1)

Publication Number Publication Date
CN105721189A true CN105721189A (en) 2016-06-29

Family

ID=56090896

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410733711.XA Pending CN105721189A (en) 2014-12-04 2014-12-04 Network port configuration method and device for network equipment

Country Status (2)

Country Link
CN (1) CN105721189A (en)
WO (1) WO2016086544A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108777645A (en) * 2018-09-13 2018-11-09 郑州云海信息技术有限公司 A kind of system and method for configuration server network IP information
CN109120440A (en) * 2018-08-13 2019-01-01 南京翼辉信息技术有限公司 A kind of network interface localization method and the network equipment using it
CN109640036A (en) * 2018-11-14 2019-04-16 视联动力信息技术股份有限公司 Configuration modification method and apparatus

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018053799A1 (en) * 2016-09-23 2018-03-29 中兴通讯股份有限公司 Network port type identification method, apparatus and storage medium
CN112910738B (en) * 2021-02-05 2023-02-28 四川天邑康和通信股份有限公司 Router and PON-based line sequence classification method for network port panel butt joint

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1349350A (en) * 2000-10-12 2002-05-15 北京华诺信息技术有限公司 TV top box with single processor for completing multitask
CN1731788A (en) * 2005-08-31 2006-02-08 杭州华为三康技术有限公司 Communication equipment interface and interface converter using the interface

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1349350A (en) * 2000-10-12 2002-05-15 北京华诺信息技术有限公司 TV top box with single processor for completing multitask
CN1731788A (en) * 2005-08-31 2006-02-08 杭州华为三康技术有限公司 Communication equipment interface and interface converter using the interface

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109120440A (en) * 2018-08-13 2019-01-01 南京翼辉信息技术有限公司 A kind of network interface localization method and the network equipment using it
CN109120440B (en) * 2018-08-13 2021-12-14 南京翼辉信息技术有限公司 Network port positioning method and network equipment applying same
CN108777645A (en) * 2018-09-13 2018-11-09 郑州云海信息技术有限公司 A kind of system and method for configuration server network IP information
CN109640036A (en) * 2018-11-14 2019-04-16 视联动力信息技术股份有限公司 Configuration modification method and apparatus

Also Published As

Publication number Publication date
WO2016086544A1 (en) 2016-06-09

Similar Documents

Publication Publication Date Title
US8787200B2 (en) Device, system, and method for automatically configuring application terminals in home network
WO2018077018A1 (en) Networking method and device, network connection method and device, router, and smart home appliance
US9338279B2 (en) Mechanism for connecting a mobile device to a network
KR101023380B1 (en) Apparatus and method for selecting an access interface dependant on the services offered in the available networks
US9531591B2 (en) Configuration of networks using switch device access of remote server
US10142342B2 (en) Authentication of client devices in networks
US9246872B2 (en) Methods and arrangements for enabling data transmission between a mobile device and a static destination address
US9549385B2 (en) Configuration of networks using client device access of remote server
WO2015051701A1 (en) Method for realizing multi-channel concurrent internet accessing by synchronizing wifi with apn network, and automatically choosing wifi networking preferentially
US8964765B2 (en) Mobile handheld multi-media gateway and phone
CN105721189A (en) Network port configuration method and device for network equipment
CN109156046B (en) Home gateway and method for forwarding service thereof
WO2022078475A1 (en) Application service path establishing method and apparatus for multi-card terminal, and storage medium, and terminal
CN101146047A (en) A method, system and gateway for controlling quantity of network access terminal under routing mode
CN102025792A (en) Router and IP address setting method thereof
CN112469055A (en) Equipment network distribution method, related equipment and storage medium
CN105827443A (en) Network device discovery method and device
CN109672613A (en) Adaptive access method, apparatus and electronic equipment
US11929851B2 (en) Gateway selection method, device, and system
CN107786441B (en) Communication method, OpenFlow switch and communication system
US20140189847A1 (en) Remote vpn provisioning of an endpoint
CN106211142A (en) A kind of WiFi AP terminal wide area network cut-in method
CN107454592B (en) Method and system for preventing automatic Portal pop-up during application program authentication
CN106375224B (en) Router and method for network connection by using same
CN116094821B (en) Route configuration method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160629

WD01 Invention patent application deemed withdrawn after publication