JP2008047987A - Fixed ip address acquisition method and ip segment extension method in dhcp environment, and their device and program - Google Patents

Fixed ip address acquisition method and ip segment extension method in dhcp environment, and their device and program Download PDF

Info

Publication number
JP2008047987A
JP2008047987A JP2006219103A JP2006219103A JP2008047987A JP 2008047987 A JP2008047987 A JP 2008047987A JP 2006219103 A JP2006219103 A JP 2006219103A JP 2006219103 A JP2006219103 A JP 2006219103A JP 2008047987 A JP2008047987 A JP 2008047987A
Authority
JP
Japan
Prior art keywords
address
network
fixed
dhcp
range
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2006219103A
Other languages
Japanese (ja)
Other versions
JP4294044B2 (en
Inventor
Yuji Uchida
雄二 内田
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.)
Hitachi Information Systems Ltd
Original Assignee
Hitachi Information Systems 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 Hitachi Information Systems Ltd filed Critical Hitachi Information Systems Ltd
Priority to JP2006219103A priority Critical patent/JP4294044B2/en
Publication of JP2008047987A publication Critical patent/JP2008047987A/en
Application granted granted Critical
Publication of JP4294044B2 publication Critical patent/JP4294044B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To attain efficient utilization of IP address by integrating fixed IP address range with automatic IP assignment range of DHCP operation, reduction in IP address management man-hour of an IP address manager, and automatic acquisition of a fixed IP which is desired by a user. <P>SOLUTION: When a user wishes to use a fixed IP in terminals 14 and 15; the user selects a desirable network address, an object terminal MAC address, and a desirable setting method of a fixed IP for a host apparatus 11 through a Web. The host apparatus 11 acquires operational information of IP address from an IP-ARP table 112 held in a layer 3 switch 12, assigns a non-operating smallest IP as the fixed IP from the DHCP range of a network address desired by the user, and removes the fixed IP from the DHCP lease range of a DHCP server 13. Automatic extension of IP segment can be carried out at a network segment automatic extension 102. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、IPアドレスを必要とするDHCP(Dynamic Host Configuration Protocol)環境のネットワークシステムにおける自動固定IPアドレスの取得方法およびネットワークのIPセグメント自動拡張方法、ならびにそれらの装置とそれらのプログラムに関する。   The present invention relates to an automatic fixed IP address acquisition method and a network IP segment automatic extension method in a network system of a DHCP (Dynamic Host Configuration Protocol) environment that requires an IP address, and an apparatus and a program thereof.

従来、LAN(Local Area Network:構内情報通信網)に接続する端末においては、ユーザが端末を入手し、メール、Web、ファイル共有等のネットワークサービスの利用を希望する場合、IPアドレス管理者に申請を行うことにより、管理者はそのユーザが希望するネットワークアドレスの固定IP割当用のレンジよりその都度割当てを実施し、そのユーザへ割当IPを通知していた。ユーザは、IPアドレス管理者により割当てられたIPを端末に設定し、ネットワークを利用していた。   Conventionally, in a terminal connected to a LAN (Local Area Network), if the user obtains the terminal and wants to use network services such as mail, Web, file sharing, etc., an application is made to the IP address manager. By performing the above, the administrator performs the allocation every time from the fixed IP allocation range of the network address desired by the user, and notifies the user of the allocated IP. The user sets the IP assigned by the IP address manager to the terminal and uses the network.

DHCPは、RFC2131(インターネットの研究開発機関IETFが取りまとめている文書群)により定義され、大規模ネットワークのクライアント装置の設定を自動化するために、IPアドレス等の設定情報を集中管理し、個々の装置の設定情報を提供するプロトコルである。このDHCPを利用した環境においては、端末装置をIP自動取得の設定にしておけば、ネットワーク管理者の介在無しにネットワークの利用が可能である。
しかしながら、DHCP環境においても、IPアドレスの変更が度々行われては不都合が生じるプリントサーバのような端末装置は、固定IPアドレスが欲しいときには、IPアドレス管理者への申請と、管理者の割当処理が必要となる。
DHCP is defined by RFC2131 (a document group compiled by the Internet research and development organization IETF), and in order to automate the setting of client devices in a large-scale network, setting information such as IP addresses is centrally managed, and individual devices are managed. It is a protocol that provides configuration information. In an environment using DHCP, if the terminal device is set to automatically acquire IP, the network can be used without the intervention of a network administrator.
However, even in a DHCP environment, a terminal device such as a print server that is inconvenient if the IP address is frequently changed. When a fixed IP address is desired, an application to the IP address manager and an administrator assignment process are performed. Is required.

例えば、特開2003−333055号公報(特許文献1参照)に記載の『DHCP環境での固定IPアドレスの設定方法および方法』では、DHCPの設定範囲を取得する手段と、DHCPの設定範囲外で使用されているIPアドレスの情報を取得する手段と、設定可能もしくは設定不可能なIPアドレスを表示する手段と、ユーザが設定したIPアドレスをIPアドレスの一覧に登録する手段とを用いることにより、IPアドレス管理者が介在することなく、ユーザが固定IPレンジの中で空きIPを指定できる方法が示されている。   For example, in “Method and method for setting a fixed IP address in a DHCP environment” described in Japanese Patent Application Laid-Open No. 2003-333055 (see Patent Document 1), a means for obtaining a DHCP setting range and a method outside the DHCP setting range are described. By using means for acquiring information on the IP address being used, means for displaying an IP address that can be set or cannot be set, and means for registering the IP address set by the user in a list of IP addresses, A method is shown in which a user can designate a free IP within a fixed IP range without the intervention of an IP address manager.

特開2003−333055号公報JP 2003-333055 A

従来の技術における第一の問題点として、DHCP環境においての運用は、各DHCPセグメントは固定IPアドレス割当用のレンジとDHCP端末用の動的アドレスレンジとに分かれており、固定IPアドレスを希望する端末には、IPアドレス管理者が固定IPアドレス割当て用のレンジより空きIPを割当していたため、固定IPアドレス割当用レンジを広範囲で確保している利用者も多く、固定IP割当数が少ない場合には、セグメント全体のアドレス使用率から見ると、効率の悪いものとなっていた。
すなわち、DHCP(Dynamic Host Configuration Protocol)を使うと、ネットワークの設定に詳しくないユーザでも簡単にインターネットに接続することができ、また、ネットワーク管理者は多くのクライアントを容易に一元化することができることから、DHCPサーバを用いて動的IPアドレスを使用するケースが増加している。しかし、プリンタやスキャナ、サーバ機能を持たせたPCのようにIPアドレスの値が変化しては困る機器が少なくとも存在するので、固定IPと動的IPの2つのレンジを持つ必要があった。
また、IPアドレス管理者が介在するため、時間的ロス、固定IPアドレス管理台帳の面倒な管理等も発生していた。
As a first problem in the prior art, in the operation in the DHCP environment, each DHCP segment is divided into a fixed IP address allocation range and a dynamic address range for a DHCP terminal, and a fixed IP address is desired. When the IP address manager allocates a free IP to the terminal from the fixed IP address allocation range, there are many users who have secured the fixed IP address allocation range over a wide range, and the fixed IP allocation number is small. In terms of the address usage rate of the entire segment, it was inefficient.
In other words, DHCP (Dynamic Host Configuration Protocol) allows users who are not familiar with network settings to easily connect to the Internet, and network administrators can easily unify many clients. The number of cases using dynamic IP addresses using DHCP servers is increasing. However, since there are at least devices such as printers, scanners, and PCs having a server function that do not need to change the IP address value, it is necessary to have two ranges of fixed IP and dynamic IP.
Further, since an IP address manager is involved, time loss, troublesome management of the fixed IP address management ledger, and the like have occurred.

また、従来技術の第二の問題点としては、DHCP環境においての運用は、動的アドレスレンジにおけるDHCP端末の上限接続許容数は固定的に決定されており、その上限端末数が接続されているセグメントにおいては、新規端末をネットワークに接続しても、DHCPサーバよりアドレスを付与されることはなく、ネットワーク管理者は対応を求められる状態となっていた。   As a second problem of the prior art, in the operation in the DHCP environment, the upper limit connection allowable number of DHCP terminals in the dynamic address range is fixedly determined, and the upper limit terminal number is connected. In the segment, even when a new terminal is connected to the network, an address is not given by the DHCP server, and the network administrator is required to take action.

(目的)
本発明の目的は、このような問題点を解消し、DHCP運用の固定IPアドレス用レンジ、自動IP割当用レンジに分けられていたレンジの統合によるIPアドレスの効率的利用、IPアドレス管理者のIPアドレス管理工数低減、およびユーザが希望する固定IPの自動取得がそれぞれ可能となり、しかも自動IP割当用レンジが不足した場合には自動的にセグメント拡張することが可能なDHCP環境における固定IP取得方法およびIPセグメント拡張方法、ならびにそれらの装置とプログラムを提供することにある。
(the purpose)
The object of the present invention is to solve such problems and to efficiently use IP addresses by integrating ranges that have been divided into fixed IP address ranges and automatic IP allocation ranges for DHCP operation. Fixed IP acquisition method in a DHCP environment in which IP address management man-hours can be reduced and automatic acquisition of a fixed IP desired by a user is possible, and when the range for automatic IP allocation is insufficient, the segment can be automatically expanded. And an IP segment expansion method, and an apparatus and program thereof.

本発明のDHCP環境における固定IP取得方法では、ホスト装置と、複数の端末装置と、DHCPサーバ装置と、ネットワーク中継機器とを有するネットワークシステムにおいて、固定IPアドレス用レンジと自動IP割当用レンジを統合し、管理用レンジ以外は全て自動IP割当用レンジとして定義を実施する。
ユーザは所有または入手した端末に固定IPを欲した時には、ユーザは前記ホスト装置にWebより希望ネットワークアドレス、対象端末MACアドレス、固定IP希望設定方法を選択し、前記ホスト装置は、前記ネットワーク中継機器が保持しているIP−ARPテーブルからIPアドレス稼動情報を取得し、ユーザが希望するネットワークアドレスのDHCPレンジの中から未稼動かつ最小のIPを固定IPとして割当て、前記固定IPは前記DHCPサーバのDHCPリースレンジより除外し、更に端末で自動取得設定の固定IPとして設定する場合には、前記DHCPサーバにおいて、ユーザが入力したMACアドレスと前記割当固定IPの組合わせを設定し、常に前記割当IPが前記端末に割当てる。
このことにより、DHCP運用における固定IPアドレス用レンジ、自動IP割当用レンジに分けられていたレンジの統合によるIPアドレスの効率的利用、IPアドレス管理者のIPアドレス管理工数の低減、およびユーザが希望する固定IPの自動取得がそれぞれ可能となる。
In the fixed IP acquisition method in the DHCP environment of the present invention, a fixed IP address range and an automatic IP allocation range are integrated in a network system having a host device, a plurality of terminal devices, a DHCP server device, and a network relay device. However, all the ranges other than the management range are defined as the automatic IP allocation range.
When a user wants a fixed IP to a terminal he owns or obtains, the user selects a desired network address, a target terminal MAC address, and a fixed IP desire setting method from the Web to the host device, and the host device uses the network relay device IP address operation information is acquired from the IP-ARP table held by the user, and the minimum IP that is not in operation is assigned as a fixed IP from the DHCP range of the network address desired by the user. When excluding from the DHCP lease range and setting as a fixed IP for automatic acquisition setting at the terminal, a combination of the MAC address inputted by the user and the allocation fixed IP is set in the DHCP server, and the allocation IP is always set. Assigns to the terminal.
This makes it possible to efficiently use IP addresses by integrating ranges that have been divided into fixed IP address ranges and automatic IP allocation ranges in DHCP operation, reduce the IP address management man-hours of IP address managers, and user desires The fixed IP to be acquired can be automatically acquired.

また、前記ネットワーク中継機器の保持しているIP−ARPテーブルから取得するIPアドレス稼働データの中で、前記ユーザの希望するネットワークアドレスのDHCPレンジに空きIPが存在しない場合、前記ホスト装置内で保持しているネットワークセグメントテーブルより空きネットワークセグメントを自動抽出し、更に前記ネットワーク中継機器の希望ネットワークアドレスにマルチネッティングという機能を利用し、セグメントの自動拡張を行う。マルチネッティングとは、レイヤー3スイッチや、ルータ等のネットワーク中継機器が持っている機能の一つで、一つの物理セグメントに対して二つ以上の論理セグメントを定義することを可能にする。そして、この機能を稼動させることにより、ネットワーク運用の幅を持たせることが可能になる。このことによりDHCP自動IP割当用レンジが不足した場合に、自動的にセグメント拡張することが可能になる。また、定期的にIPアドレス稼動データを取得することにより、より早期にアドレス不足を発見して、セグメント自動拡張を実施することが可能になる。
なお、本発明において、セグメントの自的的拡張とは、使用されていないセグメントを探し出して、この空きのある未使用セグメントと空きのないセグメントを仮想的に1つのセグメントとする(VLAN化する)ことで拡張することである。
Further, in the IP address operation data acquired from the IP-ARP table held by the network relay device, if there is no free IP in the DHCP range of the network address desired by the user, it is held in the host device. An empty network segment is automatically extracted from the network segment table being used, and the segment is automatically expanded by using a function called multi-netting for the desired network address of the network relay device. Multi-netting is one of the functions of network relay devices such as layer 3 switches and routers, and allows two or more logical segments to be defined for one physical segment. Then, by operating this function, it becomes possible to provide a wide range of network operations. This makes it possible to automatically extend the segment when the DHCP automatic IP allocation range is insufficient. In addition, by regularly acquiring IP address operation data, it becomes possible to discover an address shortage earlier and perform automatic segment extension.
In the present invention, the self-expansion of a segment refers to searching for an unused segment, and virtually setting this unused segment and unused segment as one segment (to create a VLAN). It is to expand by.

本発明によれば、DHCP運用における固定IPアドレス用レンジ、自動IP割当用レンジに分けられていたレンジの統合、IPアドレス管理者のIPアドレス管理工数の低減、およびユーザが希望する固定IPの自動取得がそれぞれ可能となる。また、DHCP動的IP割当レンジが不足した場合には、自動的にセグメント拡張することが可能になる。   According to the present invention, the fixed IP address range in DHCP operation, the integration of the range divided into the automatic IP allocation range, the reduction of the IP address management manpower of the IP address manager, and the automatic fixed IP desired by the user Each acquisition is possible. In addition, when the DHCP dynamic IP allocation range is insufficient, the segment can be automatically expanded.

以下、本発明の実施例を、図面により詳細に説明する。
なお、本発明の実施例においては、ネットワークを構成するネットワーク中継機器としてレイヤー3スイッチを用いている場合を例に説明する。
図1は、本発明の一実施例に係るDHCP環境における自動固定IP取得およびネットワーク自動拡張装置のブロック構成図である。
本実施例のDHCP環境における固定IP取得方法においては、ネットワーク10に接続されたIPアドレスの稼動実績を調査するIPアドレス稼働調査部101、IPアドレスの余剰IPがなくなったセグメントを自動拡張するネットワークセグメント自動拡張部102、ユーザが固定IPアドレスを希望したときに、自動で固定IPアドレスを割当てる固定IPアドレス決定反映部103、ネットワークの全てのセグメント情報を格納しているネットワークセグメントテーブル111、IPアドレス稼動実績データを格納するIP−ARPテーブル112、およびレイヤー3スイッチ12やDHCPサーバ13へ実行する各種コマンドを格納しているコマンドテーブル113からなるホスト装置11と、ネットワークセグメント間の通信を取りまとめるレイヤー3スイッチ12、端末装置のIP自動取得化を可能にするDHCPサーバ13、ならびにネットワークサービスを利用するための複数の端末装置14,15などから構成される。
Embodiments of the present invention will be described below in detail with reference to the drawings.
In the embodiment of the present invention, a case where a layer 3 switch is used as a network relay device constituting a network will be described as an example.
FIG. 1 is a block diagram of an automatic fixed IP acquisition and network automatic expansion apparatus in a DHCP environment according to an embodiment of the present invention.
In the fixed IP acquisition method in the DHCP environment according to the present embodiment, the IP address operation investigation unit 101 that investigates the operation results of the IP addresses connected to the network 10 and the network segment that automatically expands the segment in which the surplus IP of the IP address disappears Automatic extension unit 102, fixed IP address determination and reflection unit 103 that automatically assigns a fixed IP address when a user desires a fixed IP address, network segment table 111 that stores all network segment information, IP address operation Communication between the network device and the host apparatus 11 including the IP-ARP table 112 for storing the result data and the command table 113 for storing various commands to be executed to the layer 3 switch 12 and the DHCP server 13 Layer 3 switch 12 summarize, and the like plurality of terminal devices 14, 15 for a DHCP server 13, and network services to enable IP automatic acquisition of the terminal device.

ホスト装置11において、IPアドレス稼動調査部101は、ネットワークセグメントテーブル111より入手した管理IPアドレスが割当てられている使用有のネットワークを管理する各レイヤー3スイッチ12にアクセスし、システム内のネットワークに接続される各装置に関するMACアドレスとその装置のIPアドレス情報を収集し、収集した結果をIP−ARPテーブル112に記憶して、情報更新等を行う。
なお、レイヤー3スイッチ12は、配下にある端末情報(IPアドレス等)をテーブルで管理し、データ送受信の際に、どの端末宛のデータであるのかをデータに付加されたIPアドレスをもとに判断し、目的の宛先端末にデータを配信する機能を持っている。これらの機能を実行することを『管理する』と表現している。
In the host device 11, the IP address operation investigation unit 101 accesses each layer 3 switch 12 that manages the used network to which the management IP address obtained from the network segment table 111 is assigned, and connects to the network in the system. The MAC address and the IP address information of each device to be collected are collected, the collected result is stored in the IP-ARP table 112, and the information is updated.
Note that the layer 3 switch 12 manages terminal information (IP address, etc.) under its control in a table, and at the time of data transmission / reception, to which terminal the data is addressed is based on the IP address added to the data. It has a function of judging and distributing data to a target destination terminal. Executing these functions is expressed as “management”.

次に、ネットワークセグメント自動拡張部102は、IP−ARPテーブル112のデータを参照して、得られた各セグメントのIPアドレス稼動数とネットワークセグメントテーブル111から取得したそのネットワークアドレスのIP許容数を比較して、IPアドレスに空きがあるか否かを調査する。余剰IPが無い場合には、更に使用されていないネットワークアドレスを取得し、レイヤー3スイッチ12のネットワークセグメント定義をマルチネットに変更し、自動的にネットワークの拡張を実施する。   Next, the network segment automatic extension unit 102 refers to the data in the IP-ARP table 112, and compares the obtained IP address operating number of each segment with the IP allowable number of the network address acquired from the network segment table 111. Then, it is investigated whether or not there is a free IP address. If there is no surplus IP, a network address that is not used is further acquired, the network segment definition of the layer 3 switch 12 is changed to a multi-net, and the network is automatically expanded.

固定IPアドレス決定反映部103は、DHCP環境において、ユーザが端末装置に固定IPアドレスを要求した時、Webサーバとして機能しているホスト装置11へ既にネットワーク10へ接続されている端末装置等からWebアクセスすることで、ホスト装置11は端末装置へ固定IPアドレス情報入力画面301(図8参照)を表示する。ユーザは、各項目を入力する。その項目を元にIP−ARPテーブル112を参照し、空きIPアドレスを検索して、空きIPアドレスを発見したならば、そのIPアドレスを固定IPとして自動割当て、固定IPアドレス決定選択画面302(図9参照)を表示し、ユーザへ知らせる。ユーザは、IPアドレス情報入力画面301で選択入力した割当固定IPアドレスを端末装置で固定IPとして設定変更を実施する方法、あるいは、端末装置はIP自動取得の設定にしておき、DHCPサーバ13の設定で端末装置を割当固定IPアドレスに固定的に割当てる方法、の何れかを実施する。   When a user requests a fixed IP address from a terminal device in a DHCP environment, the fixed IP address determination / reflection unit 103 sends a Web from a terminal device already connected to the network 10 to the host device 11 functioning as a Web server. By accessing, the host device 11 displays a fixed IP address information input screen 301 (see FIG. 8) on the terminal device. The user inputs each item. If a free IP address is found by referring to the IP-ARP table 112 based on the item and a free IP address is found, the IP address is automatically assigned as a fixed IP, and a fixed IP address determination selection screen 302 (see FIG. 9) to inform the user. A method in which the user changes the setting of the assigned fixed IP address selected and input on the IP address information input screen 301 as a fixed IP in the terminal device, or the terminal device is set for automatic IP acquisition, and the DHCP server 13 is set. The method of fixedly assigning the terminal device to the assigned fixed IP address is implemented.

端末側で固定IPアドレスとして設定する場合には、DHCPサーバ13の設定において、その割当IPは自動取得のレンジより外し、自動取得で他の端末装置には割当てられないように、設定変更する。DHCPサーバ13側で固定的に割当てる場合には、DHCPサーバ13の設定において、その割当IPアドレスと申請のあった端末のMACアドレスの組合わせを設定し、常にその割当IPアドレスが申請端末装置に割当てられるようにする。この場合においても、DHCPサーバ13の設定において、その割当IPは自動取得のレンジより外し、自動取得で他の端末装置には割当たらないように設定変更しておく。   When setting as a fixed IP address on the terminal side, in the setting of the DHCP server 13, the assigned IP is removed from the automatic acquisition range, and the setting is changed so that it is not allocated to other terminal devices by automatic acquisition. In the case of fixed allocation on the DHCP server 13 side, in the setting of the DHCP server 13, a combination of the allocated IP address and the MAC address of the application terminal is set, and the allocated IP address is always assigned to the application terminal device. To be assigned. Even in this case, in the setting of the DHCP server 13, the assigned IP is excluded from the automatic acquisition range, and the setting is changed so that it is not allocated to other terminal devices by automatic acquisition.

次に、図2〜図4のフローチャートを参照して、ホスト装置11の各機能の動作について説明する。
図2は、IPアドレス稼動調査部の動作である各ネットワークセグメントのIPアドレス稼動実績を調査する動作のフローチャートである。
以下、調査する動作としては、予め決められた時間、または間隔で自動的に実施される。
最初は、ネットワークセグメントテーブル111にアクセスし、各レコードの管理IPアドレスを順次取得する(S101)。次に、S101のレコードが全て終了したか否かを判断する(S102)。未終了の場合(ネットワークセグメントテーブル111のレコードが残っている状態)には、S103に遷移する。全てのレコードについて終了した時、すなわち、全ネットワークのIP−ARPデータの取得、登録が完了した時に、終了とする。
Next, the operation of each function of the host device 11 will be described with reference to the flowcharts of FIGS.
FIG. 2 is a flowchart of the operation of examining the IP address operation performance of each network segment, which is the operation of the IP address operation investigation unit.
Hereinafter, the operation to be investigated is automatically performed at a predetermined time or interval.
First, the network segment table 111 is accessed, and the management IP address of each record is obtained sequentially (S101). Next, it is determined whether or not all the records in S101 have been completed (S102). If it has not been completed (the state in which the record of the network segment table 111 remains), the process proceeds to S103. When all the records have been completed, that is, when the acquisition and registration of IP-ARP data for all networks have been completed, the processing is terminated.

取得レコード内にある使用有無項目を検索し、『有』の場合にはS104へ遷移する(S103)。『無』の場合にはS101に戻り、次のレコードを取得する。取得した管理IPアドレスに対して、TELNETを使用し、接続する(S104)。この時、接続が不可であった場合は(S105)、予め登録しておいた管理者へメール通知等を実施し、警告を行った後に終了する(S109)。無事に接続できた時は、コマンドテーブル203(図7参照)のレコードの中から、S101で取得した管理IPアドレスのIP−ARPテーブル112取得コマンドを取得する(S106)。次に、取得したコマンドをTELNET上で発行する(S107)。コマンドを発行すると、画面上には接続先のネットワーク機器が内部に持っているIPアドレスとMACアドレスの対になったデータ一覧が表示されるので、これを取り込む(S107)。IP−ARPテーブル112へS107で取り込んだ全データを登録する(S108)。その後、S101へ戻り、次レコードを取得する。 The use presence / absence item in the acquisition record is searched, and if “present”, the process proceeds to S104 (S103). If “no”, the process returns to S101 to acquire the next record. Connect to the acquired management IP address using TELNET (S104). At this time, if the connection is not possible (S105), an e-mail notification or the like is performed to the administrator registered in advance, and the process ends after giving a warning (S109). When the connection is successful, the IP-ARP table 112 acquisition command for the management IP address acquired in S101 is acquired from the record of the command table 203 (see FIG. 7) (S106). Next, the acquired command is issued on TELNET (S107). When the command is issued, a list of data that is a pair of the IP address and the MAC address held in the network device of the connection destination is displayed on the screen, and is fetched (S107). All the data fetched in S107 is registered in the IP-ARP table 112 (S108). Thereafter, the process returns to S101 to acquire the next record.

図3は、ネットワークセグメント自動拡張部の動作である、各ネットワークセグメントにおいて、余剰が無いときに自動的にネットワークを拡張する動作のフローチャートである。
以下の動作は、基本的に前記IPアドレス稼動調査部101が終了した後に続けて処理を実施することにより、効果を奏する。最初に、ネットワークセグメントテーブル111にアクセスし、順次レコードを取得する(S201)。次に、取得レコード内にある、使用有無項目のデータを『有』か『無』の判断を行う(S202)。『有』の場合、取得したレコードデータからDHCP開始IP、DHCP終了IP、およびIP許容数を取得する(S203)。次に、IP−ARPテーブル112にアクセスし、S203で得たDHCP開始IPからDHCP終了IPまでの範囲で、IP−ARPテーブル112のデータとマッチングし、DHCP範囲で稼動している端末のIP個数を計算する(S204)。
FIG. 3 is a flowchart of the operation of automatically expanding the network when there is no surplus in each network segment, which is the operation of the network segment automatic expansion unit.
The following operations are effective by executing the processing basically after the IP address operation checking unit 101 ends. First, the network segment table 111 is accessed to sequentially acquire records (S201). Next, it is determined whether the use / non-use item data in the acquired record is “present” or “not present” (S202). In the case of “Yes”, the DHCP start IP, the DHCP end IP, and the IP allowable number are acquired from the acquired record data (S203). Next, the IP-ARP table 112 is accessed, and the number of IPs of terminals operating in the DHCP range by matching with the data in the IP-ARP table 112 in the range from the DHCP start IP to the DHCP end IP obtained in S203. Is calculated (S204).

次に、S201で取得しているレコードの中のIP許容数からS204で計算した稼動端末のIP数の差分を計算して、IP許容残数を得る(S205)。次に、差分(余剰IP数)が0か否かを判断する(S206)。差分が0の場合は、IPアドレス稼動調査部101のS108と同じく、予め登録しておいた管理者へメール通知等を実施し、IPセグメントの余剰IPが0になっていることを知らせる(S208)。次からは前記ステップで余剰IP=0と判断したセグメントに対して、自動でセグメントを拡張する動作へ移行する(S209〜S224)。   Next, the difference in the number of IPs of the operating terminals calculated in S204 is calculated from the IP allowable number in the record acquired in S201 to obtain the IP allowable remaining number (S205). Next, it is determined whether or not the difference (the number of surplus IPs) is 0 (S206). If the difference is 0, similar to S108 of the IP address operation investigation unit 101, a mail notification or the like is performed to a previously registered administrator to notify that the surplus IP of the IP segment is 0 (S208). ). From the next step, the operation proceeds to the operation of automatically extending the segment for which the surplus IP = 0 is determined in the above step (S209 to S224).

まず、拡張用の空きセグメントを調査するため、ネットワークセグメントテーブル111の最初のレコードより順次アクセスする(S209)。読出しレコードが終了したか否かを判断する(S210)。レコードが残っている場合には、該レコードの使用有無項目の『有』か『無』かの判断を行う(S211)。『有』の場合には、S209に戻り、次のレコードを読み出す。『無』の場合には、拡張用セグメントとして決定する。S201で取得した余剰IPの無いレコードから管理IPアドレスを取得し(S212)、取得したIPアドレスにTELNETアクセスを行う(S213)。接続が不可であった場合には(S214)、予め登録しておいた管理者へメール通知等を実施し、警告を実施した後、終了する(S224)。無事に接続できた時は、S201で取得した余剰IPの無いネットワークセグメントのレコードからVLAN−IDを変数Aに、S209で取得した使用無のネットワークセグメントのレコードからデフォルトゲートウェイを変数Bに、同じくサブネットマスクを変数Cに、それぞれ代入する(S215)。
なお、TELENETを使用して接続する方法は、ネットワークにつながれたコンピュータを遠隔操作するための標準方式であって、クライアントのTELNETサービス(ソフト)を起動し、テキストベースのコマンドを入力することで、ネットホークに接続された遠隔地にある機器を操作する。Window等のOSには、このソフトが標準で組み込まれているため、特別なソフトをインストールする作業は発生しない。
First, in order to investigate an empty segment for expansion, access is sequentially made from the first record of the network segment table 111 (S209). It is determined whether the read record is completed (S210). If a record remains, it is determined whether the use / non-use item of the record is “present” or “absent” (S211). If “Yes”, the process returns to S209 and the next record is read. In the case of “None”, it is determined as an expansion segment. A management IP address is acquired from the record without surplus IP acquired in S201 (S212), and TELNET access is performed to the acquired IP address (S213). If the connection is not possible (S214), an e-mail notification or the like is performed to a previously registered administrator, a warning is given, and the process is terminated (S224). When the connection is successful, the VLAN-ID is set to the variable A from the network segment record without surplus IP acquired in S201, the default gateway is set to the variable B from the unused network segment record acquired in S209, and the same subnet The mask is substituted for variable C (S215).
The connection method using TELENET is a standard method for remotely operating a computer connected to a network, and by starting a client's TELNET service (software) and inputting a text-based command, Operate a remote device connected to the Nethawk. Since this software is built in an OS such as Windows as standard, no special software installation work is required.

次に、S201で取得した余剰IPの無いネットワークセグメントのレコードより管理IPを取得し、コマンドテーブル113にアクセスし、前記管理IPを持ったレコードのマルチネット化コマンドを取得する。そして、取得したマルチネット化コマンドに、S215で代入した各変数A,B,Cを用いてTELNET上でコマンドを発行し、セグメントの拡張を実施する(S216)。このコマンドを実施することで、余剰IPの無いネットワークに対して、使用無のネットワークを紐付けることができ、配下のネットワークでは、両方のアドレスを使用できることになる。ただし、DHCPサーバの設定を変えないと、自動取得できるIPアドレス数は変わらない。従って、S217から、DHCPサーバの設定変更を行う。   Next, the management IP is acquired from the network segment record without surplus IP acquired in S201, the command table 113 is accessed, and the multi-netization command of the record having the management IP is acquired. Then, a command is issued on the TELNET using the variables A, B, and C substituted in S215 to the acquired multi-netization command, and the segment is expanded (S216). By executing this command, an unused network can be associated with a network having no surplus IP, and both addresses can be used in a subordinate network. However, the number of IP addresses that can be automatically acquired does not change unless the DHCP server setting is changed. Therefore, the setting of the DHCP server is changed from S217.

DHCPサーバ13へTELNET接続をする(S217)。ここで、DHCPサーバ13のIPアドレスは、予めホスト装置11の記憶部に登録しておくこととする。接続が不可であった場合には(S218)、予め登録しておいた管理者へメール通知等を実施し、警告を実施した後に終了する(S224)。無事に接続できた場合には(S218)、S209で取得した使用無の拡張用ネットワークセグメントのレコードからネットワークアドレスを変数Aに、サブネットマスクを変数BおよびDに、デフォルトゲートウェイを変数Cに、DHCPレンジ開始IPを変数Eに、DHCPレンジ終了IPを変数Fに取得する(S219)。DHCPコマンドテーブル1132のDHCPレンジ定義コマンドの各変数にS219で取得した変数A−Fを代入する(S220)。DHCPサーバ内に保存されているDHCPconfigファイルを編集し、S201で取得した余剰IPの無いネットワークセグメントと同じセグメントを検索し、その直後にS220で得たDHCPレンジ定義コマンドを挿入し、ファイルを保存する(S221)。   A TELNET connection is made to the DHCP server 13 (S217). Here, the IP address of the DHCP server 13 is registered in the storage unit of the host device 11 in advance. If the connection is not possible (S218), an e-mail notification or the like is performed to the administrator registered in advance, and the process is terminated after warning is performed (S224). If the connection is successful (S218), the network address is set to variable A, the subnet mask is set to variables B and D, the default gateway is set to variable C, and DHCP is acquired from the record of the unused extension network segment acquired in S209. The range start IP is acquired as a variable E, and the DHCP range end IP is acquired as a variable F (S219). The variable A-F acquired in S219 is substituted for each variable of the DHCP range definition command in the DHCP command table 1132 (S220). Edit the DHCPconfig file saved in the DHCP server, search for the same segment as the network segment without surplus IP acquired in S201, and immediately after that insert the DHCP range definition command obtained in S220 and save the file (S221).

その後、S221で編集したConfigファイルをサービスに反映するためDHCPコマンドテーブル1132からサービス再起動コマンドを取得し、TELNET上でコマンドを実施する(S222)。最後に、ネットワークセグメントテーブル111にアクセスし、S209で取得した拡張用の使用無ネットワークセグメントのレコードの使用有無項目を『無』から『有』に変更する(S223)。その後、全ネットワークセグメントについて実施したか否かを調査し、終了した場合には、フローも終了する(S207)。
未終了の場合には、S201に戻り、次レコードを読み出す。
なお、S202の結果が『無』の場合、S210でレコードが終了した場合も同じくS207に飛び、ネットワークセグメントテーブル111のレコードが終了したか否かを判断し、レコードが終了した場合には、フローも終了する。レコードが残っている場合には、S201に戻り、次レコードを読み出す。
Thereafter, a service restart command is acquired from the DHCP command table 1132 to reflect the Config file edited in S221 on the service, and the command is executed on the TELNET (S222). Finally, the network segment table 111 is accessed, and the use / non-use item of the record of the extension unused network segment acquired in S209 is changed from “none” to “present” (S223). Thereafter, it is investigated whether or not the processing has been performed for all the network segments.
If not completed, the process returns to S201 to read the next record.
If the result of S202 is “None”, if the record ends in S210, the process jumps to S207 to determine whether the record in the network segment table 111 is completed. Also ends. If the record remains, the process returns to S201 to read the next record.

図4は、固定IPアドレス決定反映部の動作である、ユーザが固定IPを希望するときに、IPアドレス稼動調査部で調査した稼働を元に自動で空きIPを割当てる動作について示したフローチャートである。
動作は、基本的に前記IPアドレス調査部101の動作が終了した後に、続けて処理を実施することで効果をもたらす。
最初に、固定IPアドレスを希望するユーザは既にネットワークに接続されている端末装置より、ホスト装置11に対して、ブラウザを使用してWebアクセスを行う(s301)。この時、使用する端末装置は、ホスト装置11にWebアクセスできる環境ならばどこからでも構わない。ホスト装置11は、固定IPアドレス情報入力画面301(図8参照)をユーザのアクセスした端末装置の画面上に表示する(S302)。ユーザは、画面上より固定IPを希望するネットワークアドレス3012、申請端末のMACアドレス3013、固定IPアドレスの希望設定方法3014の各項目を入力した後、OKボタン3015をクリックする(S303)。
FIG. 4 is a flowchart showing the operation of the fixed IP address determination and reflection unit, which automatically allocates a free IP based on the operation investigated by the IP address operation investigation unit when the user desires a fixed IP. .
The operation basically brings about an effect by performing the processing continuously after the operation of the IP address examining unit 101 is completed.
First, a user who desires a fixed IP address performs Web access to the host apparatus 11 from a terminal apparatus already connected to the network using a browser (s301). At this time, the terminal device to be used may be from anywhere as long as it is an environment in which Web access to the host device 11 is possible. The host device 11 displays the fixed IP address information input screen 301 (see FIG. 8) on the screen of the terminal device accessed by the user (S302). The user inputs the items of the network address 3012 for which the fixed IP is desired, the MAC address 3013 of the application terminal, and the desired setting method 3014 for the fixed IP address on the screen, and then clicks an OK button 3015 (S303).

S303でユーザが入力した各項目について、記入、選択漏れが無いか否かをチェックする(S304)。記入、選択漏れがある場合には、S302に戻り、再度ユーザへ入力を促す。チェックを通った場合には、IP−ARPテーブル112にアクセスし、S303で入力した希望ネットワークアドレス3012と同じネットワークアドレスのレコードのDHCP開始IPからDHCP終了IPの範囲にあるデータを抽出し、昇順ソートを行う(S305)。次に、S305でソートしたデータを順次読み出す(S306)。次に、S306で読み出したレコードの終了判定を行い、終了した場合には、S303でユーザが希望したネットワークセグメントに空きIPアドレスは無いと判断し(S307)、ネットワークセグメント自動拡張部102に移行し(S308)、セグメントの拡張を実施した後、S305へ戻り、空きIPアドレスの再検索を実施する。読み出しレコードが残っている場合には(S307)、S308に遷移する。   For each item input by the user in S303, it is checked whether there is no entry or selection omission (S304). If there is an entry or omission, the process returns to S302 to prompt the user to input again. If the check is passed, the IP-ARP table 112 is accessed, and the data in the range from the DHCP start IP to the DHCP end IP of the record having the same network address as the desired network address 3012 input in S303 is extracted and sorted in ascending order. (S305). Next, the data sorted in S305 are read sequentially (S306). Next, the end of the record read in S306 is determined. If the record has ended, it is determined in S303 that there is no free IP address in the network segment desired by the user (S307), and the process proceeds to the network segment automatic extension unit 102. (S308) After extending the segment, the process returns to S305 to re-search for a free IP address. When the read record remains (S307), the process proceeds to S308.

次に、S306で読み出したレコードとその前にS306で読み出したレコードとを比較する(S308)。この時、一番最初のレコードの場合には、前のレコードは無いため、『YES』として処理する。レコードを比較して、ホストアドレス部が連番であった場合には、その間に空きアドレスは無いと判断し、S306に戻って次のレコードを読み出す。
連番で無かった場合には、前レコードとの間に空きIPアドレスがあると判断できるので、前レコードのホストアドレス部+1のアドレスを割当用固定IPとして決定する(S309)。次に、ネットワークアドレスのレコードよりサブネットマスク、デフォルトゲートウェイを取得する(S310)。S303でユーザが入力した希望ネットワークアドレス3012、申請端末MACアドレス3013、希望設定方法3014、S309で決定した割当用固定IP、S310で取得したサブネットマスク、デフォルトゲートウェイを固定IPアドレス決定選択画面302として、端末装置画面に表示する(S311)。
Next, the record read in S306 is compared with the record read in S306 before (S308). At this time, in the case of the first record, since there is no previous record, it is processed as “YES”. When the records are compared and the host address part is a serial number, it is determined that there is no empty address between them, and the process returns to S306 to read the next record.
If it is not a sequential number, it can be determined that there is an empty IP address between the previous record and the host address portion + 1 address of the previous record is determined as an allocation fixed IP (S309). Next, a subnet mask and a default gateway are acquired from the network address record (S310). The desired network address 3012 input by the user in S303, the application terminal MAC address 3013, the desired setting method 3014, the fixed IP for allocation determined in S309, the subnet mask acquired in S310, and the default gateway are used as the fixed IP address determination selection screen 302. It is displayed on the terminal device screen (S311).

ユーザは、画面に表示された情報に『決定』3028、『やり直し』3029、『終了』3030の何れかをクリックする(S312)。次に、S312でユーザが選択した結果によって分岐する(S313)。終了を選択した場合には、そのままフローの終了となる。
やり直しを選択した場合には、S302に戻り、再びユーザの入力画面に戻る。決定を選択した場合には、S314に遷移する。割当固定IPが決定したので、次からはDHCPサーバ13のconfigを変更して、割当固定IPがDHCPでリースされないようにする。ここで、『DHCPでリースされる』とは、動的IPアドレスとして接続要求のあるクライアントへ割り当てることを指す。つまり、固定IPに決定したIPアドレスを接続要求のあるクライアントへ割り当てることがないようにconfigを変更することで、DHCPサーバに『このアドレスはAさん専用であるから他の人に割り当ててはいけない』ことを認識させる。
The user clicks one of “Determine” 3028, “Redo” 3029, and “End” 3030 on the information displayed on the screen (S312). Next, the process branches depending on the result selected by the user in S312 (S313). When the end is selected, the flow ends as it is.
If redo is selected, the process returns to S302 and returns to the user input screen. If determination is selected, the process proceeds to S314. Since the fixed allocation IP has been determined, the configuration of the DHCP server 13 is changed from now on so that the fixed allocation IP is not leased by DHCP. Here, “leased by DHCP” means that a dynamic IP address is assigned to a client having a connection request. In other words, by changing the config so that the IP address determined to be a fixed IP is not assigned to a client that has a connection request, the DHCP server says “This address is exclusively for Mr. A and should not be assigned to another person. Recognize that.

まず、DHCPサーバ13へTELNET接続をする(S314)。次に、接続判定を行い(S315)、接続不可であった場合には、予め登録しておいた管理者へメール通知等を実施し、警告を実施した後、終了する(S326)。無事に接続できた場合には、DHCPサーバ13内に保存されているDHCPconfigファイルを編集し、S309で決定した割当固定IPのネットワークアドレスのDHCPレンジ定義を検索、取得する(S316)。次に、S316で取得したDHCPレンジ定義が複数あるか否かを判断する(S317)。DHCPのレンジ定義は、DHCP用アドレス範囲の最初のIPと最後のIPを記述し定義するものであり、DHCPコマンドテーブル1132で言うDHCPレンジ定義コマンドのrange行のことである。すなわち、図7に示すDHCPコマンドテーブル1132のrange〔変数E〕,〔変数F〕を指している。   First, a TELNET connection is made to the DHCP server 13 (S314). Next, a connection determination is made (S315). If the connection is impossible, an e-mail notification or the like is performed to a previously registered administrator, a warning is given, and the process ends (S326). If the connection is successful, the DHCPconfig file saved in the DHCP server 13 is edited, and the DHCP range definition of the assigned fixed IP network address determined in S309 is retrieved and acquired (S316). Next, it is determined whether there are a plurality of DHCP range definitions acquired in S316 (S317). The DHCP range definition describes and defines the first IP and the last IP in the DHCP address range, and is a range line of the DHCP range definition command referred to in the DHCP command table 1132. That is, it indicates the range [variable E] and [variable F] in the DHCP command table 1132 shown in FIG.

固定IPアドレスが割当てられてないセグメントの場合は、range行は一つであるが、固定IPを割当てると、そのIPを除いてDHCPレンジの定義を行う。例えば、ネットワークセグメント10.80.1.0、DHCP開始IPが6、終了IPが254、割当固定IPが10の場合には、range10.80.1.6 10.80.1.9とrange10.80.1.11.10.80.1.254と二行に渡って定義することになる。   In the case of a segment to which no fixed IP address is assigned, there is one range line. However, when a fixed IP is assigned, the DHCP range is defined excluding the IP. For example, if the network segment is 10.80.1.0, the DHCP start IP is 6, the end IP is 254, and the fixed allocation IP is 10, range 10.80.1.6 10.80.1.9 and range 10. It will be defined over two lines, 80.1.11.10.80.1.254.

S317の判断で、YESの場合は、複数あるrange定義の中で、割当固定IPが含まれているレンジ定義のみを抽出し(S327)、S318に遷移する。また、NOの場合には、そのままS318に遷移する。レンジを抽出した後は、割当固定IPがレンジのどこに位置するかを判断する。判断は、一番上限、上限より下限の間、下限の3つの判断を行い、それぞれの場合でrange定義を実施する。すなわち、S316またはS327より抽出したレンジ定義の下限ホストIP(S318)と、S309で決定した割当固定IPのホストIPが同じか否かを判断し、同じ場合にはDHCPで下限IPをリースしないように、レンジ定義の下限ホストIPを+1したIPに変更し(S328)、S321に遷移する。また、異なる場合には、今度はS316またはS327より抽出したレンジ定義の上限ホストIPと、S309で決定した割当固定IPのホストIPが同じか否かを判断し、同じ場合にはDHCPで上限IPをリースしないように、レンジ定義の上限ホストIPを−1したIPに変更して(S329)、S321に遷移する。   If the determination in S317 is YES, only the range definition including the assigned fixed IP is extracted from the plurality of range definitions (S327), and the process proceeds to S318. In the case of NO, the process proceeds to S318 as it is. After extracting the range, it is determined where the assigned fixed IP is located in the range. For the determination, three determinations of the upper limit, the upper limit to the lower limit, and the lower limit are performed, and the range definition is performed in each case. That is, it is determined whether or not the lower limit host IP (S318) of the range definition extracted from S316 or S327 is the same as the host IP of the fixed allocation IP determined in S309, and in this case, the lower limit IP is not leased by DHCP. Then, the lower limit host IP of the range definition is changed to an IP obtained by adding 1 (S328), and the process proceeds to S321. If they are different, it is determined whether or not the upper limit host IP of the range definition extracted from S316 or S327 is the same as the host IP of the allocation fixed IP determined in S309. Is not leased, the upper limit host IP in the range definition is changed to -1 (S329), and the process proceeds to S321.

S309で決定したホストIPアドレスが、取得レンジの上限、下限と異なる場合には、レンジ定義を下限から(割当固定IPのホストIP−1)の定義と、(割当固定IPのホストIP+1)〜上限IPの2つのレンジ定義に分割をする(S320)。次に、ユーザの希望した設定方法により、2つの定義を実施する。固定IPアドレスは端末で固定IPとして定義する方法と、自動取得の設定にしておき、DHCPサーバ13でリースするIPを固定にする方法との2種類が存在する。S303でユーザの希望した設定方法により分岐する(S321)。端末側で固定IPを設定する場合には、編集したDHCPconfigファイルを保存する(S322)。   When the host IP address determined in S309 is different from the upper and lower limits of the acquisition range, the range definition is defined from the lower limit to (assignment fixed IP host IP-1), and (assignment fixed IP host IP + 1) to the upper limit. The range is divided into two IP range definitions (S320). Next, two definitions are implemented according to the setting method desired by the user. There are two types of methods: a method of defining a fixed IP address as a fixed IP at a terminal and a method of setting an automatic acquisition setting and fixing an IP leased by the DHCP server 13. Processing branches at S303 according to the setting method desired by the user (S321). When the fixed IP is set on the terminal side, the edited DHCPconfig file is saved (S322).

次に、ファイルを反映させるため、DHCPコマンドテーブル1132からサービス再起動コマンドを取得し、TELNET上でコマンドを実施する(S323)。ユーザはS312で画面表示されたS309で決定した割当用固定IP、S310で取得したサブネットマスク、デフォルトゲートウェイを固定IP希望端末装置に設定し、フローを終了する(S324)。DHCPサーバ13側で固定IPとして設定する場合は、DHCPコマンドテーブル1132から固定IP割当コマンドを取得する(S330)。取得したコマンド内の追番は、DHCPconfigファイル内でユニークであれば、何でも良い。変数AにはS303でユーザが入力した端末装置のMACアドレスを代入し、configファイルに追記する。次に、編集したdhcpconfigファイルを保存する(S331)。次に、ファイルを反映させるため、DHCPコマンドテーブル1132からサービス再起動コマンドを取得し、TELNET上でコマンドを実施する(S332)。最後に、ユーザは申請したMACアドレスの端末装置のネットワーク接続、再起動またはIP再取得を行い(S333)、フローを終了する。   Next, in order to reflect the file, a service restart command is acquired from the DHCP command table 1132 and the command is executed on the TELNET (S323). The user sets the fixed IP for assignment determined in S309 displayed on the screen in S312, the subnet mask acquired in S310, and the default gateway in the fixed IP desired terminal device, and ends the flow (S324). When setting as a fixed IP on the DHCP server 13 side, a fixed IP assignment command is acquired from the DHCP command table 1132 (S330). The serial number in the acquired command may be anything as long as it is unique in the DHCPconfig file. For the variable A, the MAC address of the terminal device input by the user in S303 is substituted and added to the config file. Next, the edited dhcpconfig file is saved (S331). Next, in order to reflect the file, a service restart command is acquired from the DHCP command table 1132 and the command is executed on the TELNET (S332). Finally, the user performs network connection, restart or IP reacquisition of the terminal device with the applied MAC address (S333), and the flow is terminated.

図5は、データベース(ネットワークセグメントテーブル)の説明図である。
ネットワークセグメントテーブル111には、ネットワークアドレス(A)、サブネットマスク(B)、デフォルトゲートウェイ(C)、管理レンジ(D)、DHCP開始IP(E)、DHCP終了IP(F)、IP許容数、使用有無、管理IPアドレス、VLAN−IDの各欄があり、それぞれ内容が登録されている。
ここで、セグメントとは、大規模な通信ネットワークを構成する個々のネットワーク(サブネット)を指す。
また、サブネットマスクとは、IPアドレスを形成する,コンピュータが所属するサブネットのアドレス(ネットワークアドレス)と、サブネット内でのコンピュータ自身のアドレス(ホストアドレス)との区切り位置を示す値を言う。
また、デフォルトゲートウェイとは、自端末の所属するネットワークの外のコンピュータへアクセスする際に用いる出入口の代表となるコンピュータやルータなどの機器(のアドレス)を指す。
管理IPアドレスとは、インターネットやイントラネットなどのIPネットワークに接続されたコンピュータや通信機器1台毎に割り振られた識別番号をIPアドレスと言うが、ここでは、サブネット(セグメント)を管理している機器(L3スイッチ)のIPアドレスを指す。
VLAN−IDとは、企業内ネットワークにおいて、物理的な接続形態とは独立に、端末の仮想的なグループを設定することをVLANと言うが、このVLANを識別する識別子(ID)のことを指す。
FIG. 5 is an explanatory diagram of a database (network segment table).
The network segment table 111 includes a network address (A), a subnet mask (B), a default gateway (C), a management range (D), a DHCP start IP (E), a DHCP end IP (F), an IP allowable number, and usage. There are columns for presence / absence, management IP address, and VLAN-ID, and the contents are registered respectively.
Here, the segment refers to individual networks (subnets) constituting a large-scale communication network.
The subnet mask is a value indicating a delimitation position between an address (network address) of a subnet to which the computer belongs, which forms an IP address, and an address (host address) of the computer itself in the subnet.
Also, the default gateway refers to a computer (router) or other device (address) that represents a gateway used to access a computer outside the network to which the terminal belongs.
The management IP address is an IP address that is an identification number assigned to each computer or communication device connected to an IP network such as the Internet or an intranet. Here, a device that manages subnets (segments) is used. Indicates the IP address of (L3 switch).
VLAN-ID refers to an identifier (ID) for identifying a VLAN, which refers to setting a virtual group of terminals independently of a physical connection form in a corporate network. .

図6は、データベース(IP−ARPテーブル)の説明図である。
IP−ARPテーブル112には、IPアドレスとMACアドレスの各欄があり、それぞれの内容が登録されている。
図7は、データベース(コマンドテーブル)の説明図であって、(3)−1にネットワーク機器コマンドテーブル1131が、(3)−2にDHCPコマンドテーブル1132が、それぞれ説明してある。ネットワーク機器コマンドテーブルは、管理IPアドレス、メーカー、ARP取得コマンド、マルチネット化コマンドの各欄があり、それぞれの内容が登録されている。また、DHCPコマンドテーブルは、コマンド名称、コマンド内容の各欄があり、コマンド名称として、サービス再起動コマンド、DHCPレンジ定義コマンド、固定IP割当てコマンドが登録され、コマンド内容に各コマンド名称の詳細が登録されている。
FIG. 6 is an explanatory diagram of a database (IP-ARP table).
The IP-ARP table 112 has columns for IP address and MAC address, and the contents of each are registered.
FIG. 7 is an explanatory diagram of a database (command table), in which (3) -1 describes a network device command table 1131 and (3) -2 describes a DHCP command table 1132. The network device command table includes columns for a management IP address, a manufacturer, an ARP acquisition command, and a multi-net command, and the contents of each are registered. In addition, the DHCP command table has command name and command content fields, and a service restart command, a DHCP range definition command, and a fixed IP allocation command are registered as the command name, and details of each command name are registered in the command content. Has been.

図8は、画面(固定IPアドレス情報入力画面)の説明図である。
固定IPアドレス情報入力画面301には、画面名称3011と希望ネットワークアドレス3012と、申請端末MACアドレス3013と、希望設定方法3014、OKボタン3015とが表示される。
図9は、画面(固定IPアドレス決定選択画面)の説明図である。
固定IPアドレス決定選択画面302には、画面名称3021と申請モットワークアドレス3022と申請端末MACアドレス3023と割当固定IPアドレス3025とサブネットマスク3026とデフォルトゲートウェイ3026と希望設定方法3027とが表示され、決定ボタン3028、やり直しボタン3028A、終了ボタン3029が最下段に表示されている。
FIG. 8 is an explanatory diagram of a screen (fixed IP address information input screen).
On the fixed IP address information input screen 301, a screen name 3011, a desired network address 3012, an application terminal MAC address 3013, a desired setting method 3014, and an OK button 3015 are displayed.
FIG. 9 is an explanatory diagram of a screen (fixed IP address determination selection screen).
The fixed IP address determination selection screen 302 displays a screen name 3021, an application motto work address 3022, an application terminal MAC address 3023, an assigned fixed IP address 3025, a subnet mask 3026, a default gateway 3026, and a desired setting method 3027. A button 3028, a redo button 3028A, and an end button 3029 are displayed at the bottom.

本発明の一実施例に係る自動固定IP取得およびネットワーク自動拡張装置のブロック図である。1 is a block diagram of an automatic fixed IP acquisition and network automatic expansion apparatus according to an embodiment of the present invention. FIG. 図1におけるIPアドレス稼動調査部の動作フローチャートである。It is an operation | movement flowchart of the IP address operation | movement investigation part in FIG. 図1におけるネットワークセグメント自動拡張部の動作フローチャートである。It is an operation | movement flowchart of the network segment automatic expansion part in FIG. 図1における固定IPアドレス決定反映部の動作フローチャートである。It is an operation | movement flowchart of the fixed IP address determination reflection part in FIG. 本発明におけるネットワークセグメントテーブルの構成図である。It is a block diagram of the network segment table in this invention. 本発明におけるIP−ARPテーブルの構成図である。It is a block diagram of the IP-ARP table in this invention. 本発明におけるコマンドテーブルの構成図である。It is a block diagram of the command table in this invention. 本発明における固定IPアドレス情報入力画面の画面構成図である。It is a screen block diagram of the fixed IP address information input screen in this invention. 本発明における固定IPアドレス決定選択画面の画面構成図である。It is a screen block diagram of the fixed IP address determination selection screen in the present invention.

符号の説明Explanation of symbols

10 ネットワーク
11 ホスト装置
12 レイヤー3スイッチ
13 DHCPサーバ
14 端末装置
15 端末装置
101 IPアドレス稼動調査部
102 ネットワークセグメント自動拡張部
103 固定IPアドレス決定反映部
111 ネットワークセグメントテーブル
112 IP−ARPテーブル
113 コマンドテーブル
301 固定IPアドレス情報入力画面
3011 固定IPアドレス情報入力画面タイトル
3012 希望ネットワークアドレス選択入力箇所
3013 申請端末MACアドレス入力箇所
3014 希望設定方法選択箇所
3015 確認ボタン
302 固定IPアドレス決定選択画面
3021 固定IPアドレス決定選択画面タイトル
3022 申請ネットワークアドレス表示箇所
3023 申請端末MACアドレス表示箇所
3024 割当固定IPアドレス表示箇所
3025 サブネットマスク表示箇所
3026 デフォルトゲートウェイ表示箇所
3027 希望設定方法表示箇所
3028 決定ボタン
3028Aやり直しボタン
3029 終了ボタン
1131 ネットワーク機器コマンドテーブル
1132 DHCPコマンドテーブル
DESCRIPTION OF SYMBOLS 10 Network 11 Host apparatus 12 Layer 3 switch 13 DHCP server 14 Terminal apparatus 15 Terminal apparatus 101 IP address operation | movement investigation part 102 Network segment automatic expansion part 103 Fixed IP address determination reflection part 111 Network segment table 112 IP-ARP table 113 Command table 301 Fixed IP address information input screen 3011 Fixed IP address information input screen title 3012 Desired network address selection input location 3013 Application terminal MAC address input location 3014 Desired setting method selection location 3015 Confirm button 302 Fixed IP address decision selection screen 3021 Fixed IP address decision selection Screen title 3022 Application network address display location 3023 Application terminal MAC address display location 3024 Allocation fixed IP address display location 3025 Subnet mask display location 3026 Default gateway display location 3027 Desired setting method display location 3028 Enter button 3028A Redo button 3029 End button 1131 Network device command table 1132 DHCP command table

Claims (5)

ネットワーク中継機器と、該ネットワーク中継機器にネットワークを介して接続されたホスト装置と、該ネットワーク中継機器にネットワークを介して接続されたDHCPサーバ装置と、該サーバ装置に収容された複数の端末装置とを有する固定IPアドレス設定方法において、
ユーザが所有する端末装置に固定IPの取得を要求した時には、該端末装置から前記ホスト装置にWebより希望ネットワークアドレス、対象端末MACアドレス、固定IP希望設定方法を選択し、
前記ホスト装置は、前記ネットワーク中継機器が保持しているIP−ARPテーブルからIPアドレス稼動情報を取得し、ネットワークアドレスのDHCPレンジの中から未稼動かつ最小のIPを固定IPとして割当て、前記DHCPサーバのDHCPリースレンジより割当固定IPを除外し、
該端末装置で自動取得設定の固定IPとして設定する場合には、前記DHCPサーバは、前記ユーザにより入力されたMACアドレスと前記割当固定IPの組合わせを設定し、常に前記割当IPを前記端末に割当てることを特徴とするDHCP環境での固定IPアドレス設定方法。
A network relay device, a host device connected to the network relay device via a network, a DHCP server device connected to the network relay device via a network, and a plurality of terminal devices accommodated in the server device; In the fixed IP address setting method having
When the terminal device owned by the user requests acquisition of a fixed IP, the terminal device selects the desired network address, the target terminal MAC address, and the fixed IP desire setting method from the Web to the host device,
The host device acquires IP address operation information from the IP-ARP table held by the network relay device, assigns a non-operating and minimum IP from the DHCP range of the network address as a fixed IP, and the DHCP server Exclude fixed IP from the DHCP lease range of
In the case of setting as a fixed IP for automatic acquisition setting in the terminal device, the DHCP server sets a combination of the MAC address inputted by the user and the fixed allocation IP, and always assigns the allocated IP to the terminal. A method for setting a fixed IP address in a DHCP environment, characterized by assigning.
請求項1に記載のDHCP環境での固定IPアドレス設定方法において、
前記ネットワーク中継機器の保持しているIP−ARPテーブルから取得するIPアドレス稼動データの中で、前記ユーザにより希望されたネットワークアドレスのDHCPレンジに空きIPが存在しない場合、前記ホスト装置内で保持しているネットワークセグメントテーブルより空きネットワークセグメントを自動抽出し、前記ネットワーク中継機器の希望ネットワークアドレスにマルチネッティングを実施し、セグメントの自動拡張を行うことを特徴とするIPセグメント自動拡張方法。
The fixed IP address setting method in the DHCP environment according to claim 1,
In the IP address operation data acquired from the IP-ARP table held by the network relay device, if there is no free IP in the DHCP range of the network address desired by the user, it is held in the host device. An IP segment automatic extension method, wherein a free network segment is automatically extracted from a network segment table, a desired network address of the network relay device is multi-netted, and the segment is automatically extended.
ユーザにより固定IPの取得が要求された時に、該ユーザの所有する端末装置に対して固定IPアドレスを割当てるホスト装置と、ネットワークセグメント間の通信を取りまとめるネットワーク中継機器と、端末装置のIP自動取得を可能にするDHCPサーバとを具備する固定IPアドレス設定システムであって、
前記ホスト装置には、
該ホスト装置が収容されたネットワークに接続されるIPアドレスの稼動実績を調査するためのIPアドレス稼動調査手段と、
前記IPアドレスの余剰IPがなくなったセグメントを拡張するためのネットワークセグメント自動拡張手段と、
前記ユーザにより固定IPアドレスを要求されたときに、固定IPアドレスを割当てる固定IPアドレス決定反映手段と、
前記ネットワークの全てのセグメント情報を格納しているネットワークセグメントテーブル記憶手段と、
IPアドレス稼動実績データを格納しているIP−ARPテーブル記憶手段と、
前記ネットワーク中継機器および前記DHCPサーバへ実行する各種コマンドを格納しているコマンドテーブル記憶手段と
を備えることを特徴とする固定IPアドレス設定システム。
When a user requests acquisition of a fixed IP, a host device that assigns a fixed IP address to a terminal device owned by the user, a network relay device that coordinates communication between network segments, and an automatic IP acquisition of the terminal device A fixed IP address setting system comprising a DHCP server enabling
The host device includes
IP address operation investigation means for investigating operation results of IP addresses connected to the network in which the host device is accommodated;
A network segment automatic extension means for extending a segment in which the surplus IP of the IP address disappears;
A fixed IP address determination reflecting means for assigning a fixed IP address when a fixed IP address is requested by the user;
Network segment table storage means storing all segment information of the network;
IP-ARP table storage means for storing IP address operation result data;
A fixed IP address setting system comprising command table storage means for storing various commands to be executed to the network relay device and the DHCP server.
ネットワークセグメントテーブルにアクセスして、順次レコードを取得する手段と、
取得レコード内にある使用有無項目のデータの有または無を判断する手段と、
有の場合に、取得したレコードデータからDHCP開始IP、DHCP終了IPまでの範囲で、IP−ARPテーブルのデータとマッチングし、DHCP範囲で稼動している端末のIP個数を計算する手段と、
取得したレコードの中のIP許容数から稼動端末のIP数の差分を計算して、IP許容残数を得る手段と、
該差分が0か否かを判断する手段と、
前記差分が0の場合に、拡張用の空きセグメントの調査のため、ネットワークセグメントテーブルの最初のレコードより順次アクセスし、該レコードの使用有無を判断して、無の場合に拡張用セグメントとして決定する手段と、
該ネットワークセグメントテーブルより、余剰の無いレコードから管理IPアドレスを取得し、取得した管理IPアドレスへ接続する手段と、
接続できた場合に、該ネットワークセグメントテーブルより余剰の無いネットワークのVLAN−IDおよび使用無ネットワークのデフォルトゲートウェイ、サブネットマスクを取得し、それぞれ変数に代入する手段と、
コマンドテーブルより該ネットワーク機器のマルチネット化コマンドを取得し、変数を代入したコマンドを発行する手段と、
DHCPサーバに接続する手段と、
接続できた場合、該ネットワークセグメントテーブルより使用無ネットワークのネットワークアドレス、サブネットマスク、デフォルトゲートウェイ、DHCPレンジ開始IPおよび終了IPを取得する手段と、
各変数をDHCPコマンドテーブルより取得したDHCPレンジ定義コマンドの変数へ代入する手段と、
DHCPサーバ内に保存されているDHCPconfigファイルより余剰0ネットワクのレンジ箇所を検索し、その直後に変数を代入したDHCPレンジ定義コマンドをファイルに挿入後、configを保存する手段と、
DHCPコマンドテーブルより、DHCPサービス再起動コマンドを取得し、実行する手段と、
該ネットワークセグメントテーブルにアクセスし、マルチネットに定義したネットワークアドレスについて使用有無を無から有に変更する手段と
を有することを特徴とするIPセグメント拡張システム。
Means for accessing the network segment table and sequentially acquiring records;
Means for determining the presence / absence of the data of the presence / absence item in the acquisition record,
If yes, means for matching the IP-ARP table data in the range from the acquired record data to the DHCP start IP, DHCP end IP, and calculating the number of IPs of terminals operating in the DHCP range;
Means for calculating the difference in the number of IPs of the operating terminals from the IP permissible number in the acquired record to obtain the IP permissible remaining number;
Means for determining whether the difference is 0;
When the difference is 0, in order to investigate the free segment for expansion, access is sequentially made from the first record of the network segment table, and the use / nonuse of the record is judged. Means,
Means for acquiring a management IP address from a record having no surplus from the network segment table and connecting to the acquired management IP address;
Means for acquiring the VLAN-ID of the network having no surplus from the network segment table and the default gateway and subnet mask of the unused network from the network segment table, and substituting them into variables, respectively.
Means for obtaining a multi-net command of the network device from a command table, and issuing a command with variables substituted;
Means for connecting to a DHCP server;
A means for obtaining a network address, subnet mask, default gateway, DHCP range start IP and end IP of the unused network from the network segment table if connected;
Means for substituting each variable into a DHCP range definition command variable obtained from the DHCP command table;
A means for searching for a surplus 0 network range from a DHCPconfig file stored in the DHCP server, and immediately after that, inserting a DHCP range definition command into which a variable has been substituted, and storing the config;
Means for obtaining and executing a DHCP service restart command from the DHCP command table;
An IP segment expansion system comprising: means for accessing the network segment table and changing whether or not the network address defined in the multi-net is used from nothing to presence.
DHCP環境での固定IPアドレス設定用プログラムであって、
ホスト装置のコンピュータに、端末装置から固定IPの取得が要求され、該端末装置からWebより希望ネットワークアドレス、対象端末MACアドレス、固定IP希望設定方法が選択されると、ネットワーク中継機器が保持しているIP−ARPテーブルからIPアドレス稼動情報を取得し、ネットワークアドレスのDHCPレンジの中から未稼動かつ最小のIPを固定IPとして割当て、前記DHCPサーバのDHCPリースレンジより割当固定IPを除外する手順を、
また、該端末装置で自動取得設定の固定IPとして設定する場合には、DHCPサーバのコンピュータに、前記ユーザにより入力されたMACアドレスと前記割当固定IPの組合わせを設定し、常に前記割当IPを前記端末に割当てる手順を、それぞれ実行させるためのDHCP環境での固定IPアドレス設定用プログラム。
A program for setting a fixed IP address in a DHCP environment,
When a host device computer requests acquisition of a fixed IP from a terminal device, and the desired network address, target terminal MAC address, and fixed IP desired setting method are selected from the terminal device via the Web, the network relay device holds Obtaining IP address availability information from the IP-ARP table, assigning a non-operating and minimum IP from the DHCP range of the network address as a fixed IP, and excluding the assigned fixed IP from the DHCP lease range of the DHCP server ,
When the terminal device is set as a fixed IP for automatic acquisition setting, a combination of the MAC address input by the user and the fixed allocation IP is set in a DHCP server computer, and the allocated IP is always set. A program for setting a fixed IP address in a DHCP environment for executing a procedure assigned to each terminal.
JP2006219103A 2006-08-11 2006-08-11 IP segment automatic extension method, system and program Expired - Fee Related JP4294044B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006219103A JP4294044B2 (en) 2006-08-11 2006-08-11 IP segment automatic extension method, system and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006219103A JP4294044B2 (en) 2006-08-11 2006-08-11 IP segment automatic extension method, system and program

Publications (2)

Publication Number Publication Date
JP2008047987A true JP2008047987A (en) 2008-02-28
JP4294044B2 JP4294044B2 (en) 2009-07-08

Family

ID=39181335

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006219103A Expired - Fee Related JP4294044B2 (en) 2006-08-11 2006-08-11 IP segment automatic extension method, system and program

Country Status (1)

Country Link
JP (1) JP4294044B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008227756A (en) * 2007-03-09 2008-09-25 Softbank Mobile Corp Ip address management system
JP2011077596A (en) * 2009-09-29 2011-04-14 Brother Industries Ltd Ip address determination device, terminal device, and computer program
WO2013088739A1 (en) * 2011-12-16 2013-06-20 パナソニック株式会社 Communication monitoring system and program
JP2016184841A (en) * 2015-03-26 2016-10-20 シャープ株式会社 Network system, information processing unit, information processing program and information processing method
CN112073557A (en) * 2020-09-18 2020-12-11 上海市共进通信技术有限公司 Method for realizing automatic acquisition of name of down-hanging device by gateway under network static IP condition

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008227756A (en) * 2007-03-09 2008-09-25 Softbank Mobile Corp Ip address management system
JP4515478B2 (en) * 2007-03-09 2010-07-28 ソフトバンクモバイル株式会社 IP address management system
JP2011077596A (en) * 2009-09-29 2011-04-14 Brother Industries Ltd Ip address determination device, terminal device, and computer program
WO2013088739A1 (en) * 2011-12-16 2013-06-20 パナソニック株式会社 Communication monitoring system and program
JP2016184841A (en) * 2015-03-26 2016-10-20 シャープ株式会社 Network system, information processing unit, information processing program and information processing method
CN112073557A (en) * 2020-09-18 2020-12-11 上海市共进通信技术有限公司 Method for realizing automatic acquisition of name of down-hanging device by gateway under network static IP condition
CN112073557B (en) * 2020-09-18 2023-04-28 上海市共进通信技术有限公司 Method for realizing gateway to automatically acquire name of down-hanging device under network static IP condition

Also Published As

Publication number Publication date
JP4294044B2 (en) 2009-07-08

Similar Documents

Publication Publication Date Title
US8595339B2 (en) Network management apparatus and method
US7240106B2 (en) System and method for remote discovery and configuration of a network device
EP1073234B1 (en) System and apparatus for searching for devices connected to a network
CN100426227C (en) Information processing method and information processing apparatus
EP1977562B1 (en) Discovery of network nodes and routable addresses
JP2006254445A (en) Method of discovering at least either network setting or network resources, and recording medium
JP2001527327A (en) Automatic registration of user device settings
JPH09237240A (en) Method for displaying correspondence between system management and network
JP4294044B2 (en) IP segment automatic extension method, system and program
US7774438B2 (en) Parameter provisioning
US6839755B1 (en) Network peripheral server discovery method
CN102594944B (en) A kind of method of automatic configuration and the network equipment
JP2009177504A (en) Network device management apparatus and control method thereof, network system, and program
JP2011516930A (en) Automatic configuration network computer peripherals
JP2002033773A (en) Web on-demand system
JP2003101566A (en) Network equipment management method and system
JP2005505975A (en) Subnet pooling
CN102265558B (en) Communication equipment and control method thereof
JP4272928B2 (en) Network device and device setting device
JP3979055B2 (en) Fixed address setting device, fixed address setting method, and fixed address setting program
JP3768726B2 (en) Device search client and device search method
JP2001092764A (en) Information processor, device, network system, monitoring method of device, control method of device and storage medium
JP4515478B2 (en) IP address management system
KR100784152B1 (en) The method and system of providing service to subscriber pc by attached dns system in isp system
CN117176639B (en) Multi-protocol-based network topology automatic discovery method and device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20081114

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081121

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090120

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090407

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090407

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120417

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130417

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130417

Year of fee payment: 4

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130417

Year of fee payment: 4

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140417

Year of fee payment: 5

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees