1. Field of the Invention
The present invention relates to a router, particularly to a router that can automatically allocate ranges of Internet addresses.
2. Description of the Related Art
With the population of mobile offices, many business travelers use the network system of the hotel to run their jobs. A business traveler may have several devices needing Internet access and respectively needing IP addresses, such as a notebook computer, an E-book, PDA, and a mobile phone. However, the current hotels normally provide a single network port and a single IP address for one room, which are usually insufficient for a business traveler. Therefore, a business traveler often counts on a portable router to provide a plurality of IP addresses for his devices.
Different manufacturers, or even an identical manufacturer, may assign an identical IP address to different portable routers they or it produces. For example, a portable router may have an assigned IP address identical to that of a portable router of one room in a hotel. In such a case, although the user of the room still can successfully obtain an IP address, the user cannot Internet access via the conflicting IP address. When IP addresses conflict, the current portable routers do not provide any error message. Such a problem should trouble the users very much.
Accordingly, the present invention proposes a portable router, which can automatically switch IP addresses, to overcome the above-mentioned problem.
The primary objective of the present invention is to provide a portable router, which can automatically modify the allocated ranges of IP addresses to exclude the IP address range used by the external network server lest the IP addresses of the internal network and the external network conflict.
To achieve the abovementioned objectives, the present invention proposes a portable router, which comprises a memory unit, a network sharing port, an operating/processing unit connecting with the memory unit and the network sharing port.
The memory unit has an original parameter configuration area and an updated parameter configuration area. An originally-configured network address and a prime DHCP (Dynamic Host Configuration Protocol) server address range are built in the original parameter configuration area.
The network sharing port has an external network connection port and an internal network connection port. The external network connection port enables the portable router to connect with an external network having an external network address. The internal network connection port connects with at least one Internet-access device to form an internal network.
In operation, the operating/processing unit retrieves the originally-configured network address and compares the originally-configured network address with the external network address. When the two addresses are identical, the operating/processing unit generates a new network address different from the external network address and a new DHCP server address range, and stores the new network address and new DHCP server address range in the updated parameter configuration area for application of the internal network. When the two addresses are different, the operating/processing unit directly adopts the originally-configured network address to configure the internal network address.
Below, the embodiments are described in detail in cooperation with the drawings to make easily understood the technical contents and accomplishments of the present invention.
Refer to
The memory unit 12 has an original parameter configuration area 18 and an updated parameter configuration area 20. An originally-configured network address and a prime DHCP (Dynamic Host Configuration Protocol) server address range are built in the original parameter configuration area 18.
The network sharing port 14 has an external network connection port 22 and an internal network connection port 24. The external network connection port 22 enables the portable router 10 to connect with an external network 26 having an external network address. The internal network connection port 24 connects with at least one Internet-access device 28 to form an internal network 30.
When the portable router 10 of the present invention undertakes configuration of the internal network address, the operating/processing unit 16 retrieves the originally-configured network address, and compares the originally-configured network address with the external network address. When the two addresses are identical, the operating/processing unit 16 generates a new network address different from the external network address and a new DHCP server address range, and stores the new network address and new DHCP server address range in the updated parameter configuration area 20 for application of the internal network 30. When the two addresses are different, the operating/processing unit 16 directly adopts the originally-configured network address to configure the internal network address.
The memory unit 12 may be a flash memory.
The portable router 10 of the present invention may further comprise a wireless network communication module 31, which receives wireless signals from the Internet access devices 28 and transmits the signals to the operating/processing unit 16, or converts the data of packets coming from the operating/processing unit 16 into wireless signals for application of the internal network 30.
Refer to
Refer to
If the external network address and the originally-configured network address are determined to be in different subnets in Step S3, the process proceeds to Step S7. In Step S7, the operating/processing unit 16 provides the originally-configured network address and the prime DHCP server address range for the internal network 30.
Refer to
If the external network address and the originally-configured network address are determined to be in different subnets in Step S13, the process proceeds to Step S17. In Step S17, the operating/processing unit 16 provides the originally-configured network address and the prime DHCP server address range for the internal network 30.
In conclusion, the present invention proposes a novel portable router, which not only can automatically assign IP addresses to Internet-access devices connecting with the portable router but also can automatically modify the allocated ranges of IP addresses to exclude the IP address range used by the external network server lest the IP addresses of the internal network and the external network conflict.
The embodiments described above are only to exemplify the present invention but not to limit the scope of the present invention. Any equivalent modification or variation according to the spirit or characteristic of the present invention is to be also included within the scope of the present invention.