CN100505622C - Automatic network setting method and system for computer - Google Patents

Automatic network setting method and system for computer Download PDF

Info

Publication number
CN100505622C
CN100505622C CNB2003101217169A CN200310121716A CN100505622C CN 100505622 C CN100505622 C CN 100505622C CN B2003101217169 A CNB2003101217169 A CN B2003101217169A CN 200310121716 A CN200310121716 A CN 200310121716A CN 100505622 C CN100505622 C CN 100505622C
Authority
CN
China
Prior art keywords
network
computer
configuration information
network configuration
select
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.)
Expired - Fee Related
Application number
CNB2003101217169A
Other languages
Chinese (zh)
Other versions
CN1630233A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CNB2003101217169A priority Critical patent/CN100505622C/en
Publication of CN1630233A publication Critical patent/CN1630233A/en
Application granted granted Critical
Publication of CN100505622C publication Critical patent/CN100505622C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

A computer automatic network setting method and system contains (a), presetting step, setting network configuration information of computer switched network environment and storing, (b), monitoring step, monitoring whether computer is connected with computer network or not, automatically obtaining network information stored in step (a) if the computer is connected with computer network, otherwise continue monitoring, (c), setting step, automatically setting computer network configuration to establish computer network connection according to obtained network configuration information in monitoring step. Said system contains memory unit, monitor unit and setting unit.

Description

The automatic network method to set up and the system of computer
Technical field
The present invention relates to technical field of the computer network, refer to a kind of network setting method and system of computer especially.
Background technology
At present, the computer networking technology development is very fast.Computer network typically refers to by some computers, terminal equipment, data communications equipment and various hardware interface computer network that form by communication line, that comprise wired and wireless two kinds of communication form.
Can obtain information needed easily by the computer network people, communicate by letter with the mobile subscriber of wireless network as realizing computer, and the short-distance wireless communication of realization computer and wireless terminal etc.Especially for connecting each local internet, the whole world, provide abundant information, people are handled official business and the facility more of living, thereby produce enormous benefits in a lot of fields.
In order to be implemented in operate as normal in the computer network, need the computer in the network be provided with.For example, for the computer network of forming according to Ethernet protocol, the computer of each networking all is equipped with Ethernet card, can realize computer networking work by the manual network configuration information that the Ethernet card of Net-connected computer is set.
Usually, people are in the metastable environment, generally can not change or reset the network configuration information of aforementioned calculation machine.But quickening along with people's rhythm of life, people live, the environment of office often changes, the computer of its use also has to move thereupon, especially for the user who uses notebook computer, for in new environment networking work, people have to the computer that migration is come is carried out network settings again, for example, the users that often stay at home and handle official business in two places of company need the manual respectively network configuration information that two kinds of computer network environments of family and company are set.This not only increases the people's work amount, and regular change network configuration information may cause makeing mistakes the efficient of reduction people work.
Summary of the invention
The problem that the present invention solves is when the network environment of computer changes, and finishes the network settings of computer automatically, needs the manual computer network configuration information of resetting to overcome prior art, so that increases people's workload, reduces the shortcoming of people's operating efficiency.
For addressing the above problem, the invention provides a kind of automatic network method to set up of computer, may further comprise the steps:
A) foresee steps: the network configuration information of the required setting of each cable network environment that setting computer need switch is also preserved;
B) monitoring step: whether monitoring computer links to each other with the computer cable network, if link to each other, then obtains the network configuration information that described foresee steps is preserved automatically, otherwise, continue monitoring;
C) select step: from the network configuration information that obtains, select a kind of network configuration information of network environment and carry out the corresponding network setting;
D) testing procedure: obtain and select the network configuration information that step chooses and carry out the network connectivty test,, then finish if test network-in-dialing, otherwise, return and select step to continue to select the network configuration information of other network environments to carry out network settings;
E) prompting step: if the network configuration information of overall network environment was provided with, testing procedure is not also tested network-in-dialing, then points out the user manually to be provided with.
Wherein, the described network configuration information of foresee steps comprises one of following information at least: IP address, subnet mask, default gateway, dns server address and default printer.Whether in addition, whether the described monitoring computer of monitoring step links to each other with the computer cable network, can exist physical connection to determine with this computer cable network by judging computer.
Correspondingly, the automatic network that the invention provides a kind of computer is provided with system, comprising:
Memory cell is used to store the network configuration information of each cable network environment that default computer need switch;
Whether monitoring means is used for the detection computations machine and links to each other with the computer cable network, if link to each other, then obtains the network configuration information of cell stores automatically, otherwise, continue monitoring;
Select module: from the network configuration information that monitoring means obtains, select a kind of network configuration information of network environment and carry out the corresponding network setting;
Test module: obtain and select the network configuration information that module chooses and carry out the network connectivty test,, then finish if test network-in-dialing, otherwise, by selecting module to continue to select the network configuration information of other network environments;
Reminding module: if the network configuration information of overall network environment was provided with, test module is not also tested network-in-dialing, then points out the user manually to be provided with.
Wherein, the described network configuration information of cell stores comprises one of following information at least: IP address, subnet mask, default gateway, dns server address and default printer.Whether in addition, whether the monitoring means monitoring computer links to each other with the computer cable network, exist physical connection to determine with this computer cable network by judging computer.
Compared with prior art, the present invention has the following advantages:
1, the default required network configuration information of multiple computer networking, when the network environment change is moved as the place, utilize default network configuration information to finish network settings automatically, computer can be reconnected on the new network works, save people and reset the workload that computer network configuration information is brought by hand, can further improve people's work efficient;
2, because computer network is provided with automatically setting, can realize that computer shuttles back and forth in different network environments, any switch operating between cable and wireless environment for example, this helps carrying out abundanter, more intelligent network application in the future, and extensibility is stronger.
Description of drawings
Fig. 1 is a kind of situation schematic diagram of existing network environment change;
Fig. 2 is that the automatic network of computer of the present invention is provided with system's composition schematic diagram;
Fig. 3 is the composition schematic diagram that the unit is set shown in Fig. 2;
Fig. 4 is the automatic network method to set up flow chart of computer of the present invention.
Embodiment
Typically, computer described in the present invention can be notebook computer, kneetop computer, client computer, server etc.At present, when changing, the network environment of described computer needs to reset the network configuration information of described computer to adapt to the change of network environment by hand.
The network environment of aforementioned calculation machine refers to the formed network environment of computer network according to any procotol establishment such as Ethernet, wireless lan (wlan) and IEEE1394 agreement, it can be network from one type network migration to another type that the network environment of described computer changes, it also can be the change of computer physical location in the network of the same type, be that network environment changes the change that not only refers on the computer geographical position, also may comprise the change on the network type.
Usually computer is by network interface card (being also referred to as adapter) access network, and therefore, network configuration information described in the present embodiment refers to the network configuration information that network interface card need be provided with.Briefly, the various computer networks of the described access network configuration information that need be provided with comprises one of following fixing or revisable information at least: IP address, subnet mask, default gateway, dns server (name server) address and default printer etc.
Fig. 1 has illustrated the situation that computer network environment changes in a kind of network of the same type, described computer network is set up according to Ethernet protocol, each computer is by 10M/100M Ethernet interface access network, and by 100M/1000M Ethernet interface access IP backbone network, the user is through the migration between office 1 and the office 2 of being everlasting in described computer network, if the computer that this user uses is migration back and forth thereupon also, then the user has to the network configuration information of computer of regular manual its use of change so that can both use this computer internet in office 1 and office 2, this causes unnecessary trouble to the user, reduces the efficient of user job.
In order to eliminate the variety of problems that the above-mentioned network configuration information that computer manually is set brings, when the computer network environment of computer access changes, can be by the network of network configuration information that this computer is set automatically to realize that access is new.The automatic network of computer of the present invention is provided with system's composition schematic diagram can be with reference to figure 2, the automatic network of described computer is provided with system and can be applicable to the situation that above-mentioned Fig. 1 network environment changes, when the network environment of computer application changes, the network configuration information of computer is set automatically so that computer inserts new network automatically, it mainly comprises following part: memory cell 20, monitoring means 21 and unit 22 is set, following mask body describes.
Memory cell 20, main effect are the network configuration informations that is used to store each network environment that default computer need switch.It mainly comprises two parts: the part of default every network configuration information and the part of storing every network configuration information.The part of described default every network configuration information is mainly used in and sets in advance every network environment, every corresponding some network configuration informations that need setting of network environment, because computer may be equipped with multiple network interface card, therefore, network environment is set can carry out based on each network interface card, whether the network configuration information that also need check described setting after setting is correct, thereby it is whether correct as according to subnet mask not being 0 judgement setting entirely, if it is incorrect, then need reset, the part of storing every network configuration information then stores the network configuration information that sets after setting is finished.
Situation with Fig. 1 describes, because the network environment that the user need be switched is in the same computer network of setting up according to Ethernet protocol, therefore, 2 two computer network configuration information that need the network environment of switching of default office 1 and office, the network configuration information of (office 1 and office 2) may major part be identical in two network environments, the network interface card type of its use is also identical, network configuration information such as default gateway, dns server (name server) address and default printer also may be identical, all the other network configuration informations such as IP address, subnet mask then may be different, can set and store according to actual conditions.
For the change of network environment that is not the computer of identical network type, switch to the network environment of WLAN (wireless local area network) type etc. as the ethernet type network environment, the network interface card type difference that not only is provided with then, the network configuration information of this network interface card is also different, because the network configuration information that existing variety of network environments need be provided with is a techniques well known, the present invention will no longer elaborate.
The following describes monitoring means 21, monitoring means 21 is used for the detection computations machine and whether is connected to network, if having, then obtains the network configuration information of memory cell 20 storages automatically, otherwise, continue monitoring.
Wherein, it is mainly definite by judging whether computer is connected with network physical that whether monitoring means 21 monitoring computers are connected to network.For example for the situation of Fig. 1, the computer that the user uses is moved to office 2 from office 1, after starting monitoring means 21, monitoring means 21 sends the order that monitoring network connects to this computer operating system or special electronic equipment, when the user behind the Ethernet interface access network of office 2 with this computer, monitoring means 21 can monitor the computer Ethernet interface and be connected to network, and at this moment, monitoring means 21 can obtain the network setup information of memory cell 20 storages automatically.For the access monitoring of other types network, for example access of WLAN (wireless local area network), the principle type no longer describes in detail here.
The following describes unit 22 is set, unit 22 is set is used for the network configuration of computer being set automatically to set up the network connection of computer according to the network configuration information that described monitoring means 21 obtains.
When monitoring means 21 monitors computer when being connected to network, the network configuration information that unit 22 obtains according to monitoring means 21 is set, at every network configuration information, the calling system function sticks into row setting to respective wire, connects up to the network of setting up computer.
More detailed description is with reference to figure 3, and the described unit 22 that is provided with further comprises following composition module: select module 221, test module 222 and reminding module 223, wherein
Select module 221, be mainly used in and from the network configuration information that monitoring means 21 obtains, select a kind of network configuration information of network environment and carry out the corresponding network setting;
Test module 222 obtains and selects the network configuration information that module 221 chooses and carry out the network connectivty test, if test network-in-dialing, then finishes, otherwise, by selecting module 221 to continue to select the network configuration information of other network environments;
Reminding module 223, if the network configuration information of overall network environment was provided with, test module 222 is not still tested network-in-dialing, then points out the user manually to be provided with.
The above-mentioned network-in-dialing property testing of carrying out for test module 222 mainly comprises the PING gateway, for can whether be communicated with by the acting server online by PING network agent server test network, and for the computer radio access network attempt be connected with AP (access point), because the network-in-dialing property testing is the known technology of this area, repeats no more here.
The automatic network that the following describes computer of the present invention is provided with the workflow of system.
Subscriber computer is moved to new network environment, monitoring means 21 finds that computer is connected to network (being the residing new computer network of computer), then obtain the default network configuration information of memory cell 20 storages, and by the network settings that unit 22 carries out computer are set, when unit 22 being set being provided with, at first a kind of network configuration information of network environment carries out relative set by selecting module 221 to select wherein, setting is finished, then whether be communicated with by test module 222 test networks, if be communicated with, then finish, otherwise, select module 221 to continue to select the network configuration information of other network environments to be provided with, whether test module 222 then continues supervising network and is communicated with, if the network setup information of overall network environment all was provided with, test module 222 is not still tested network-in-dialing, and then reminding module 223 prompting users are provided with by hand.
The following describes another aspect of the present invention, realize the method for the automatic network setting of computer of the present invention, when being used in the computer network environment change of user's use, automatically finish the network settings of computer, by computer network connection situation is judged, after definite computer switches to new network environment, then start the automatic network setting of computer so that computer is linked into new network environment.
The automatic network method to set up of computer of the present invention, being divided into three tasks carries out, the first step, the network configuration information of the required setting of each network environment that setting computer need switch, because computer is mostly by the network interface card access network, therefore, can carry out the setting of corresponding network configuration information based on the network interface card that computer is installed.In second step, after new network environment, whether monitoring computer links to each other with computer network in computer migrates, if link to each other, then obtains the network configuration information of setting automatically, otherwise, continue monitoring.In the 3rd step, the network configuration that computer is set automatically according to the described network configuration information that obtains connects with the network of setting up computer.
In network environment shown in Figure 1, move as exemplary embodiments with a kind of notebook computer computer automatic network method to set up of the present invention is described.
With reference to figure 4, the automatic network method to set up of described computer comprises the step of following enforcement:
1. foresee steps 40, finish the described task of the above-mentioned first step, mainly may further comprise the steps:
1.1 the step 401 of default every network configuration information, pre-determine every network environment that notebook computer need switch, and the corresponding some network configuration informations that are provided with of needing of every network environment are set, because this computer may be equipped with multiple network interface card, therefore, network environment is set can carry out based on each network interface card, whether the network configuration information that also need check described setting after setting is correct, thereby it is whether correct as according to subnet mask not being 0 judgement setting entirely, if incorrect, then need reset;
1.2 store the step 402 of every network configuration information, after setting is finished, the network configuration information that sets stored;
2. whether monitoring step 41, finish above-mentioned described task of second step, and wherein whether monitoring computer links to each other with computer network, exist physical connection to determine with this computer network by judging computer.
3. step 42 is set, finishes above-mentioned described task of the 3rd step, further may further comprise the steps:
3.1 select step 421, from the network configuration information that obtains, select a kind of network configuration information of network environment and carry out the corresponding network setting;
3.2 testing procedure 422, obtain and select the network configuration information that step 421 chooses and carry out the network connectivty test, if test network-in-dialing, then finish, otherwise, to return and select step 421 to continue to select the network configuration information of other network environments to carry out network settings, described network connectivty test includes PING gateway, PING network agent server or trial and is connected with AP etc., the network-in-dialing property testing is the known technology of this area, no longer describes in detail here;
3.3 prompting step 423, if the network configuration information of overall network environment was provided with, testing procedure 422 is not also tested network-in-dialing, then points out the user manually to be provided with.
In sum, the automatic network method to set up of computer of the present invention and system can avoid the variety of problems that computer network configuration information is brought manually is set, and help improving people's work efficient.
The above only is a preferred implementation of the present invention, does not constitute the qualification to protection range of the present invention.Any any modification of being done within the spirit and principles in the present invention, be equal to and replace and improvement etc., all should be included within the claim protection range of the present invention.

Claims (8)

1, a kind of automatic network method to set up of computer is characterized in that, may further comprise the steps:
A) foresee steps: the network configuration information of the required setting of each cable network environment that setting computer need switch is also preserved;
B) monitoring step: whether monitoring computer links to each other with the computer cable network, if link to each other, then obtains the network configuration information that described foresee steps is preserved automatically, otherwise, continue monitoring;
C) select step: from the network configuration information that obtains, select a kind of network configuration information of network environment and carry out the corresponding network setting;
D) testing procedure: obtain and select the network configuration information that step chooses and carry out the network connectivty test,, then finish if test network-in-dialing, otherwise, return and select step to continue to select the network configuration information of other network environments to carry out network settings;
E) prompting step: if the network configuration information of overall network environment was provided with, testing procedure is not also tested network-in-dialing, then points out the user manually to be provided with.
According to the automatic network method to set up of the described computer of claim 1, it is characterized in that 2, the described network configuration information of foresee steps comprises one of following information at least: IP address, subnet mask, default gateway, dns server address and default printer.
According to the automatic network method to set up of the described computer of claim 2, it is characterized in that 3, whether the described monitoring computer of monitoring step links to each other with the computer cable network, whether exist physical connection to determine with this computer cable network by judging computer.
According to the automatic network method to set up of the described computer of claim 1, it is characterized in that 4, the described network connectivty test in the testing procedure includes PING gateway, PING network agent server or trial and is connected with AP.
5, a kind of automatic network of computer is provided with system, it is characterized in that, comprising:
Memory cell is used to store the network configuration information of each cable network environment that default computer need switch;
Whether monitoring means is used for the detection computations machine and links to each other with the computer cable network, if link to each other, then obtains the network configuration information of cell stores automatically, otherwise, continue monitoring;
Select module: from the network configuration information that monitoring means obtains, select a kind of network configuration information of network environment and carry out the corresponding network setting;
Test module: obtain and select the network configuration information that module chooses and carry out the network connectivty test,, then finish if test network-in-dialing, otherwise, by selecting module to continue to select the network configuration information of other network environments;
Reminding module: if the network configuration information of overall network environment was provided with, test module is not also tested network-in-dialing, then points out the user manually to be provided with.
6, the automatic network according to the described computer of claim 5 is provided with system, it is characterized in that the described network configuration information of cell stores comprises one of following information at least: IP address, subnet mask, default gateway, dns server address and default printer.
Whether 7, the automatic network according to the described computer of claim 6 is provided with system, it is characterized in that, whether the monitoring means monitoring computer links to each other with the computer cable network, exist physical connection to determine with this computer cable network by judging computer.
8, the automatic network according to the described computer of claim 5 is provided with system, it is characterized in that, the described network connectivty test that test module carries out includes PING gateway, PING network agent server or trial and is connected with AP.
CNB2003101217169A 2003-12-18 2003-12-18 Automatic network setting method and system for computer Expired - Fee Related CN100505622C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2003101217169A CN100505622C (en) 2003-12-18 2003-12-18 Automatic network setting method and system for computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2003101217169A CN100505622C (en) 2003-12-18 2003-12-18 Automatic network setting method and system for computer

Publications (2)

Publication Number Publication Date
CN1630233A CN1630233A (en) 2005-06-22
CN100505622C true CN100505622C (en) 2009-06-24

Family

ID=34844251

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2003101217169A Expired - Fee Related CN100505622C (en) 2003-12-18 2003-12-18 Automatic network setting method and system for computer

Country Status (1)

Country Link
CN (1) CN100505622C (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8199657B2 (en) 2006-03-02 2012-06-12 Nokia Corporation Supporting an access to a destination network via a wireless access network
CN102664758B (en) * 2012-04-28 2015-03-25 沈阳通用软件有限公司 Method for binding and automatically recovering network configuration
CN102833362B (en) * 2012-08-16 2018-01-09 中兴通讯股份有限公司 The collocation method of dns server and the drive device of wireless data access equipment
CN104158700A (en) * 2014-08-13 2014-11-19 福建富士通信息软件有限公司 Intelligent network configuration adjusting system and intelligent network configuration adjusting method based on network environment identification
CN105939214B (en) * 2016-03-03 2019-12-06 杭州迪普科技股份有限公司 Method and device for realizing network card function
CN107241742B (en) * 2017-06-15 2024-02-02 深圳市潮流网络技术有限公司 Network switching dynamic modification application configuration method
CN107979492A (en) * 2017-11-20 2018-05-01 浪潮金融信息技术有限公司 Computer network environment method and device, storage medium and terminal

Also Published As

Publication number Publication date
CN1630233A (en) 2005-06-22

Similar Documents

Publication Publication Date Title
US7280832B2 (en) Method and apparatus for automatically selecting a bearer for a wireless connection
US7499440B2 (en) Communication system, network router and network connection method
CN104066157B (en) For selecting the method and mobile communication equipment of transmission path
US20070135086A1 (en) Providing detailed information on powered device in system for supplying power over communication link
CN101141420A (en) Method and system for performing data communication between private network and public network
CN107566229A (en) The packet control process of intelligent domestic system
JP2007067745A (en) Wireless terminal, management apparatus, control method of wireless lan, and wireless lan system
CN1761263B (en) System and method for avoiding a network address collision
CN104980965A (en) Wireless system with wired fault self-restoring function and self-restoring method thereof
CN105959906A (en) Inter-network device communication method and inter-network device communication method
CN100505622C (en) Automatic network setting method and system for computer
CN109246762A (en) A kind of local service shunt method and device
CN101729327B (en) Method for selecting access gateway and automatic configuration server
CN105657711B (en) A kind of method for connecting network and electronic equipment
CN106604316B (en) Method, device and system for positioning fault of wireless access equipment
CN1490994B (en) Method and apparatus for connecting apparatus with wireless network
CN101277247B (en) Real-time communication system
CN107370647A (en) A kind of method interconnected between LAN system and its internal controller system
CN103619032B (en) Wireless routing device optimization method and device
CN104081743A (en) Link management method, device and communication system
CN109041164A (en) A kind of road safety information real-time communication method based on car networking
CN112770370B (en) Method and device for intelligent equipment to access network and intelligent equipment
WO2005039125A1 (en) Home link setting method, home gateway device, and mobile terminal
CN101141307A (en) Tactical management based method and architecture used for communication system
CN103685021B (en) Data transmission method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090624

Termination date: 20201218