JP5605496B2 - Communication apparatus and address management method - Google Patents

Communication apparatus and address management method Download PDF

Info

Publication number
JP5605496B2
JP5605496B2 JP2013260985A JP2013260985A JP5605496B2 JP 5605496 B2 JP5605496 B2 JP 5605496B2 JP 2013260985 A JP2013260985 A JP 2013260985A JP 2013260985 A JP2013260985 A JP 2013260985A JP 5605496 B2 JP5605496 B2 JP 5605496B2
Authority
JP
Japan
Prior art keywords
address
setting
information
storage area
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2013260985A
Other languages
Japanese (ja)
Other versions
JP2014075839A (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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2013260985A priority Critical patent/JP5605496B2/en
Publication of JP2014075839A publication Critical patent/JP2014075839A/en
Application granted granted Critical
Publication of JP5605496B2 publication Critical patent/JP5605496B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、ネットワークにおける通信に利用可能な複数のIP(インターネットプロトコル)アドレスを管理する通信装置及びアドレス管理方法に関する。   The present invention relates to a communication apparatus and an address management method for managing a plurality of IP (Internet Protocol) addresses that can be used for communication in a network.

ネットワークに接続されたPC(Personal Computer)やプリンター等の通信装置は、自装置に設定されたIPアドレスを用いてネットワーク上の通信を行っている。通信装置の中には、複数のIPアドレスを設定して管理し、これら複数のIPアドレスを通信に利用しているものがある(例えば、特許文献1参照)。   A communication device such as a PC (Personal Computer) or a printer connected to the network performs communication on the network using an IP address set in the own device. Some communication devices set and manage a plurality of IP addresses and use these plurality of IP addresses for communication (for example, see Patent Document 1).

近年では、多くのIPアドレスを使用可能にするためのプロトコルとして、IPv6(インターネットプロトコル バージョン6)が知られている。   In recent years, IPv6 (Internet Protocol version 6) is known as a protocol for enabling use of many IP addresses.

IPv6においては、通信装置にIPアドレスを設定する方法の種類(設定種類)としては、通信装置に予め設定された情報に基づいて、リンク(サブネット)内において固有となるIPアドレス(リンクローカルアドレス)を設定するリンクローカルアドレス設定と、ユーザーが指定したIPアドレスを設定する手動設定と、ルーターが送信するRA(Router advertisement)に含まれるプリフィクスに一意のIDを組み合わせてグローバルなIPアドレスを設定するステートレスアドレス設定と、DHCPv6(Dynamic Host Configuration Protocol Version 6)サーバーから送信されたグローバルなIPアドレスを設定するステートフルアドレス設定と、がある。   In IPv6, as a type (setting type) of setting an IP address in a communication device, an IP address (link local address) that is unique in a link (subnet) based on information preset in the communication device. Linkless local address setting to set the IP address, manual setting to set the IP address specified by the user, stateless to set a global IP address by combining a unique ID with a prefix included in the router advertisement (RA) sent by the router There is an address setting and a stateful address setting for setting a global IP address transmitted from a DHCPv6 (Dynamic Host Configuration Protocol Version 6) server.

特開2004−363934号公報JP 2004-363934 A

上記した特許文献1においては、IPアドレスを複数使用することが開示されているが、IPアドレスをどのように管理するかが開示されていない。   In the above-mentioned Patent Document 1, it is disclosed that a plurality of IP addresses are used, but it is not disclosed how to manage the IP addresses.

例えば、IPv6のIPアドレスの管理方法としては、設定種類毎に、その設定種類のIPアドレスを固定数分格納可能な記憶領域を予め記憶装置に確保しておき、IPアドレスの設定種類に応じて、対応する記憶領域に格納することが行われている。   For example, as an IPv6 IP address management method, for each setting type, a storage area capable of storing a fixed number of IP addresses of the setting type is secured in the storage device in advance, and the IP address is set according to the IP address setting type. The data is stored in a corresponding storage area.

ここで、通信装置の使用目的や、通信装置が接続されるネットワーク等に応じて、通信装置によって使用されるIPアドレスの設定種類や、設定種類毎のIPアドレスの数が異なることが考えられる。例えば、複数のIPアドレスが手動で設定され、手動で設定された多数のIPアドレスが主に利用される通信装置や、複数のDHCPv6サーバーから送信されるIPアドレスが主に利用される通信装置等が考えられる。   Here, it is conceivable that the setting type of the IP address used by the communication apparatus and the number of IP addresses for each setting type differ depending on the purpose of use of the communication apparatus and the network to which the communication apparatus is connected. For example, a communication device in which a plurality of IP addresses are manually set and a large number of manually set IP addresses are mainly used, or a communication device in which IP addresses transmitted from a plurality of DHCPv6 servers are mainly used. Can be considered.

このような通信装置においては、例えば、設定種類毎に、固定数のIPアドレスを格納するように記憶領域を確保している場合においては、通信において全く必要のない設定種類のIPアドレスを格納する記憶領域が使用されないにもかかわらず、確保されてしまっており、メモリの記憶効率が悪いという問題がある。特に、IPv6は、IPv4に対して、IPアドレスの長さがかなり長いので、確保しておく記憶領域のサイズが大きくなり、メモリの記憶効率が非常に悪いという問題がある。   In such a communication apparatus, for example, when a storage area is secured so as to store a fixed number of IP addresses for each setting type, IP addresses of setting types that are not necessary for communication are stored at all. Although the storage area is not used, it has been secured, and there is a problem that the storage efficiency of the memory is poor. In particular, IPv6 has a problem that the size of the storage area to be secured becomes large and the storage efficiency of the memory is very poor because the IP address is considerably longer than IPv4.

本発明は、上記課題に鑑みなされたものであり、その目的は、通信装置で使用される複数のIPアドレスを効率よく管理することのできる技術を提供することにある。   The present invention has been made in view of the above problems, and an object thereof is to provide a technique capable of efficiently managing a plurality of IP addresses used in a communication apparatus.

上記目的達成のため、本発明の第1の観点に係る通信装置は、ネットワークにおける通信に利用可能な複数のIPアドレスを管理する通信装置であって、通信装置に設定したIPアドレスと、IPアドレスの設定種類を示すアドレス設定種類情報とを含むIPアドレス情報を所定の個数分記憶可能な記憶領域が確保された記憶手段と、通信装置への設定対象のIPアドレスと、そのIPアドレスの設定種類を示すアドレス設定種類情報とを含むIPアドレス情報を記憶領域へ記憶させるIPアドレス設定処理手段とを有する。係る通信装置によると、記憶手段の記憶領域において、複数のIPアドレスについて設定種類を特定可能に記憶させることができる。このため、予め設定種類毎のIPアドレスを記憶する記憶領域を固定的に用意する必要がなく、記憶手段の記憶効率を向上することができる。   To achieve the above object, a communication apparatus according to a first aspect of the present invention is a communication apparatus that manages a plurality of IP addresses that can be used for communication in a network, and includes an IP address set in the communication apparatus, and an IP address. Storage means for storing a predetermined number of pieces of IP address information including address setting type information indicating the setting type, an IP address to be set in the communication device, and a setting type of the IP address IP address setting processing means for storing in the storage area IP address information including address setting type information indicating. According to such a communication apparatus, it is possible to store the type of setting for a plurality of IP addresses in the storage area of the storage unit so as to be specified. For this reason, it is not necessary to prepare a storage area for storing the IP address for each set type in advance, and the storage efficiency of the storage means can be improved.

また、上記通信装置において、IPアドレス設定処理手段は、記憶手段の記憶領域に、各設定種類のIPアドレス情報をそれぞれ少なくとも1つ記憶するために要する記憶領域の他に、IPアドレス情報を記憶可能な空記憶領域がある場合に、設定対象のIPアドレス情報を前記記憶領域に記憶させるようにしてもよい。係る通信装置によると、記憶手段の記憶領域に、各設定種類のIPアドレス情報について、最低1つは記憶することができる。   Further, in the communication apparatus, the IP address setting processing means can store IP address information in the storage area of the storage means in addition to the storage area required for storing at least one IP address information of each setting type. When there is a free storage area, the setting target IP address information may be stored in the storage area. According to such a communication apparatus, at least one IP address information of each setting type can be stored in the storage area of the storage unit.

また、上記通信装置において、少なくとも1つの設定種類に対するIPアドレス情報の最大の設定可能数を記憶する設定可能数記憶手段を更に備え、IPアドレス設定処理手段は、記憶手段の記憶領域における設定対象のIPアドレスの設定種類と同一のIPアドレス情報の数が、設定種類のIPアドレス情報の最大の設定可能数に達しておらず、且つ記憶手段の記憶領域に利用可能な空き記憶領域がある場合に、設定対象のIPアドレス情報を記憶手段の記憶領域に記憶させるようにしてもよい。係る通信装置によると、最大の設定可能数の範囲内で、利用可能な空き領域がある場合に、IPアドレス情報を設定することができる。   The communication apparatus further includes a settable number storage unit that stores the maximum settable number of IP address information for at least one setting type, and the IP address setting processing unit stores the setting target in the storage area of the storage unit. The number of IP address information that is the same as the IP address setting type does not reach the maximum settable number of the setting type IP address information, and there is an available free storage area in the storage area of the storage means. The IP address information to be set may be stored in the storage area of the storage means. According to the communication apparatus, the IP address information can be set when there is an available free area within the range of the maximum settable number.

上記通信装置において、IPアドレスの設定種類には、予め通信装置に設定された情報に基づいてリンクに固有なIPアドレスであるリンクローカルアドレスを設定するリンクローカルアドレス設定と、ユーザーによって指定されたIPアドレスを設定する手動設定と、ルーターから送信された情報に基づいてIPアドレスを設定するステートレスアドレス設定と、DHCPサーバーから割り当てられたIPアドレスを設定するステートフルアドレス設定とが含まれており、IPアドレス設定処理手段は、設定対象のIPアドレスに対して、リンクローカルアドレス設定と、手動設定と、ステートレスアドレス設定と、ステートフルアドレス設定とのいずれかの設定種類であることを示すアドレス設定種類情報を対応付けて前記記憶領域に記憶させるようにしてもよい。係る通信装置によると、IPアドレスを、リンクローカルアドレス設定、手動設定、ステートレスアドレス設定、ステートフルアドレス設定のいずれの設定種類によるものかを適切に把握することができる。   In the communication apparatus, the IP address setting type includes a link local address setting that sets a link local address that is an IP address unique to a link based on information set in advance in the communication apparatus, and an IP specified by a user. It includes a manual setting for setting an address, a stateless address setting for setting an IP address based on information transmitted from a router, and a stateful address setting for setting an IP address assigned from a DHCP server. The setting processing means supports address setting type information indicating that the setting type is any of link local address setting, manual setting, stateless address setting, and stateful address setting for the IP address to be set. Attached to the storage area. It may be allowed to. According to such a communication apparatus, it is possible to appropriately grasp whether the IP address is based on any of the setting types of link local address setting, manual setting, stateless address setting, and stateful address setting.

また、上記通信装置において、IPアドレス設定処理手段は、通信装置の起動後に、リンクローカルアドレス設定によるIPアドレスを記憶させ、手動設定によるIPアドレスを記憶させ、その後、ステートレスアドレス設定又はステートフルアドレス設定によるIPアドレスを記憶させるようにしてもよい。係る通信装置によると、リンクローカルアドレス設定によるIPアドレスと、手動設定によるIPアドレスを優先して記憶させることができる。   In the communication apparatus, the IP address setting processing means stores the IP address by link local address setting after the communication apparatus is activated, stores the IP address by manual setting, and then by stateless address setting or stateful address setting. The IP address may be stored. According to such a communication apparatus, it is possible to preferentially store the IP address by the link local address setting and the IP address by the manual setting.

また、通信装置において、IPアドレス設定処理手段は、ステートレスアドレス設定又はステートフルアドレス設定によるIPアドレス情報について、先に設定可能となったものから順に登録するようにしてもよい。係る通信装置によると、ステートレスアドレス設定又はステートフルアドレス設定のIPアドレス情報については、設定可能となったものを優先的に登録することができる。   Further, in the communication apparatus, the IP address setting processing means may register the IP address information by the stateless address setting or the stateful address setting in order from the one that can be set first. According to such a communication apparatus, the IP address information for stateless address setting or stateful address setting that can be set can be preferentially registered.

また、上記通信装置において、IPアドレスは、IPv6のIPアドレスであってもよい。係る通信装置においては、データ量の多いIPv6のIPアドレスを適切に記憶することができ、より効果的に記憶領域に発生する未使用の領域を低減することができる。   In the communication apparatus, the IP address may be an IPv6 IP address. In such a communication apparatus, an IPv6 IP address having a large amount of data can be appropriately stored, and an unused area generated in the storage area can be reduced more effectively.

また、上記目的達成のため、本発明の第2の観点に係るアドレス管理方法は、ネットワークにおける通信に利用可能な複数のIPアドレスを管理する通信装置におけるアドレス管理方法であって、通信装置の記憶手段は、通信装置に設定したIPアドレスと、IPアドレスの設定種類を示すアドレス設定種類情報とを含むIPアドレス情報を所定の個数分記憶可能な記憶領域が確保されており、通信装置のIPアドレス設定処理手段が、通信装置への設定対象のIPアドレスと、そのIPアドレスの設定種類を示すアドレス設定種類情報とを含むIPアドレス情報を記憶手段の記憶領域へ記憶させるIPアドレス設定処理ステップを有する。係るアドレス管理方法によると、記憶手段の記憶領域において、複数のIPアドレスについて設定種類を特定可能に記憶させることができる。このため、予め設定種類毎のIPアドレス情報を記憶する記憶領域を固定的に用意する必要がなく、記憶手段の記憶効率を向上することができる。   In order to achieve the above object, an address management method according to a second aspect of the present invention is an address management method in a communication device that manages a plurality of IP addresses that can be used for communication in a network, and is stored in the communication device. The means has a storage area capable of storing a predetermined number of IP address information including an IP address set in the communication device and address setting type information indicating a setting type of the IP address, and the IP address of the communication device is secured. The setting processing means includes an IP address setting processing step for storing IP address information including an IP address to be set in the communication device and address setting type information indicating a setting type of the IP address in a storage area of the storage means. . According to such an address management method, it is possible to store the setting types for a plurality of IP addresses in a storage area of the storage means so as to be specified. For this reason, it is not necessary to prepare a fixed storage area for storing IP address information for each set type in advance, and the storage efficiency of the storage means can be improved.

本発明の一実施形態に係る通信装置を含むネットワークシステムの一例の構成図である。It is a block diagram of an example of the network system containing the communication apparatus which concerns on one Embodiment of this invention. 本発明の一実施形態に係るプリンターの機能構成図である。FIG. 2 is a functional configuration diagram of a printer according to an embodiment of the present invention. 本発明の一実施形態に係るIPアドレス設定情報テーブルの一例を示す図である。It is a figure which shows an example of the IP address setting information table which concerns on one Embodiment of this invention. 本発明の一実施形態に係るIPアドレス設定可能範囲テーブルの一例を示す図である。It is a figure which shows an example of the IP address setting range table which concerns on one Embodiment of this invention. 本発明の一実施形態に係るIPアドレス設定処理のフローチャートである。It is a flowchart of the IP address setting process which concerns on one Embodiment of this invention.

本発明の実施形態について、図面を参照して説明する。なお、以下に説明する実施形態は特許請求の範囲に係る発明を限定するものではなく、また実施形態の中で説明されている諸要素及びその組み合わせの全てが発明の解決手段に必須であるとは限らない。   Embodiments of the present invention will be described with reference to the drawings. The embodiments described below do not limit the invention according to the claims, and all the elements and combinations described in the embodiments are essential for the solution of the invention. Is not limited.

まず、本発明の一実施形態に係る通信装置の一例としてのプリンターが接続されるネットワークシステムについて説明する。   First, a network system to which a printer as an example of a communication apparatus according to an embodiment of the present invention is connected will be described.

図1は、本発明の一実施形態に係る通信装置が接続されるネットワークシステムの一例を示す図である。   FIG. 1 is a diagram illustrating an example of a network system to which communication apparatuses according to an embodiment of the present invention are connected.

ネットワークシステム1は、プリンター2と、1以上のDHCPv6(Dynamic Host Configuration Protocol Version 6)サーバー3と、1以上のルーター4とを有する。なお、ネットワークシステムによっては、DHCPv6サーバー3や、ルーター4が存在しないものもある。プリンター2と、DHCPv6サーバー3と、ルーター4とは、ネットワーク5を介して接続されている。本実施形態では、ネットワーク5は、IPv6(Internet Protocol Version 6)に従って通信するようになっている。すなわち、このネットワーク5では、IPv6のIPアドレスを用いて通信が行われる。なお、ネットワーク5は、有線回線や、無線回線を含んでいてもよい。   The network system 1 includes a printer 2, one or more DHCPv6 (Dynamic Host Configuration Protocol Version 6) servers 3, and one or more routers 4. Some network systems do not include the DHCPv6 server 3 or the router 4. The printer 2, the DHCPv6 server 3, and the router 4 are connected via a network 5. In this embodiment, the network 5 communicates according to IPv6 (Internet Protocol Version 6). That is, in this network 5, communication is performed using an IPv6 IP address. The network 5 may include a wired line or a wireless line.

DHCPv6サーバー3は、プリンター2に対して、プリンター2に設定すべき必要な情報(例えば、IPアドレス)を割り当てる。ルーター4は、ネットワーク5から他のネットワークへのルーティングを行う。また、ルーター4は、自分の接続されているネットワーク(ネットワーク5等)に対して、ネットワークのプリフィックス(例えば、64ビット)を含むRA(Router advertisement)を定期的に送信する。   The DHCPv6 server 3 assigns necessary information (for example, IP address) to be set to the printer 2 to the printer 2. The router 4 performs routing from the network 5 to another network. The router 4 periodically transmits RA (Router advertisement) including a network prefix (for example, 64 bits) to a network to which the router 4 is connected (such as the network 5).

ここで、プリンター2へのIPアドレスの設定種類としては、ユーザーによってプリンター2に直接入力されたIPアドレスを設定する手動設定(図2(1))と、予めプリンター2に格納されているID(例えば、MAC(Media Access Control Address)アドレス)に基づいて、ネットワーク5(サブネット)において一意のIPアドレスであるリンクローカルアドレスを設定するリンクローカルアドレス設定(図2(2))と、DHCPv6サーバー3から送信されるIPアドレスを設定するステートフルアドレス設定(図2(3))と、ルーター4から送信されるRA中のプリフィックスと、プリンター2に記憶された情報(例えば、リンクローカルアドレスの下位の複数ビット(64ビット))とを組み合わせたIPアドレスを設定するステートレスアドレス設定(図2(4))とがある。   Here, as the setting type of the IP address to the printer 2, manual setting (FIG. 2 (1)) for setting the IP address directly inputted to the printer 2 by the user, and an ID ( For example, a link local address setting (FIG. 2 (2)) for setting a link local address that is a unique IP address in the network 5 (subnet) based on a MAC (Media Access Control Address) address) and the DHCPv6 server 3 Stateful address setting for setting the IP address to be transmitted ((3) in FIG. 2), prefix in RA transmitted from the router 4, and information stored in the printer 2 (for example, lower bits of link local address) (64 bits)) is used to set the IP address There is a memory address setting (FIG. 2 (4)).

図2は、本発明の一実施形態に係る通信装置の一例としてのプリンターの機能構成図である。   FIG. 2 is a functional configuration diagram of a printer as an example of a communication apparatus according to an embodiment of the present invention.

プリンター2は、表示部21と、入力部22と、通信部23と、プリント機能部24と、ROM(Read Only Memory)25と、記憶手段の一例としてのRAM(Random Access Memory)26と、設定可能数記憶手段の一例としてのEEPROM(Electrically Erasable Programmable ROM)27と、制御部28とを有する。   The printer 2 includes a display unit 21, an input unit 22, a communication unit 23, a print function unit 24, a ROM (Read Only Memory) 25, a RAM (Random Access Memory) 26 as an example of a storage unit, and a setting. An EEPROM (Electrically Erasable Programmable ROM) 27 as an example of the possible number storage means and a control unit 28 are provided.

表示部21は、例えば、液晶画面等を有し、各種情報を表示する。入力部22は、例えば、キー部、タッチパネル部等を有し、ユーザーからの各種指示等の入力を受け付ける。入力部22は、例えば、プリンター2に設定するIPアドレス(手動IPアドレス)の指定等を受け付ける。通信部23は、ネットワーク5を介して、他の装置とのデータの送受信処理を行う。本実施形態では、通信部23は、自己のIPアドレスとして設定されているIPアドレスのいずれかを使用して通信を行う。通信部23は、自己に割り当てられたMACアドレスを記憶する。プリント機能部24は、紙、OHPシート等の画像形成媒体に対して、画像を形成(印刷)する。   The display unit 21 has, for example, a liquid crystal screen and displays various information. The input unit 22 includes, for example, a key unit, a touch panel unit, and the like, and accepts inputs such as various instructions from the user. The input unit 22 receives, for example, designation of an IP address (manual IP address) set for the printer 2. The communication unit 23 performs data transmission / reception processing with other devices via the network 5. In the present embodiment, the communication unit 23 performs communication using one of the IP addresses set as its own IP address. The communication unit 23 stores the MAC address assigned to itself. The print function unit 24 forms (prints) an image on an image forming medium such as paper or an OHP sheet.

ROM25は、ブートプログラム、後述する各種処理のプログラム等を記憶する。RAM26は、プログラムやデータを記憶する領域として、或いは、制御部28による処理に使用しているデータを格納する作業領域として利用される。本実施形態では、RAM26は、プリンター2に設定されたIPアドレス及びその設定種類の組であるIPアドレス情報を複数格納可能なIPアドレス設定情報テーブル26a(図3参照)を記憶する。   The ROM 25 stores a boot program, various processing programs described later, and the like. The RAM 26 is used as an area for storing programs and data, or as a work area for storing data used for processing by the control unit 28. In the present embodiment, the RAM 26 stores an IP address setting information table 26a (see FIG. 3) that can store a plurality of IP address information that is a set of the IP address set in the printer 2 and its setting type.

図3は、本発明の一実施形態に係るIPアドレス設定情報テーブルの一例を示す図である。   FIG. 3 is a diagram showing an example of an IP address setting information table according to an embodiment of the present invention.

IPアドレス設定情報テーブル26aは、IPアドレスと、そのIPアドレスの設定種類(アドレス設定種類)との組(IPアドレス情報)を複数(例えば、10個)格納可能となっている。例えば、一番上のIPアドレス情報は、IPアドレスが、”FE80::1234”であり、アドレス設定種類がリンクローカルアドレス設定であることを示しており、一番下の領域は、IPアドレス情報が格納されていない未割り当て状態であることを示している。このIPアドレス設定情報テーブル26aにより、複数の設定種類のIPアドレスを同一のテーブルで管理することができる。   The IP address setting information table 26a can store a plurality (for example, 10) of sets (IP address information) of an IP address and a setting type (address setting type) of the IP address. For example, the uppermost IP address information indicates that the IP address is “FE80 :: 1234” and the address setting type is link local address setting, and the lowermost area indicates the IP address information. Indicates an unallocated state in which is not stored. With this IP address setting information table 26a, a plurality of setting types of IP addresses can be managed in the same table.

図2の説明に戻り、EEPROM27は、書き換え可能な不揮発性メモリであり、プリンター2の電源が入っていない場合でも記憶しておく必要がある各種情報を記憶する。本実施形態では、EEPROM27は、ユーザーにより指定されたIPアドレス(手動IPアドレス)を記憶する。また、EEPROM27は、リンクローカルアドレス又は、リンクローカルアドレスを生成するための情報を記憶する。また、EEPROM27は、IPアドレス設定情報テーブル26aにおいて、設定種類毎の格納できるIPアドレス情報の数の範囲(設定可能範囲)を規定するIPアドレス設定可能範囲テーブル27a(図4参照)を記憶する。   Returning to the description of FIG. 2, the EEPROM 27 is a rewritable nonvolatile memory, and stores various information that needs to be stored even when the printer 2 is not turned on. In the present embodiment, the EEPROM 27 stores an IP address (manual IP address) designated by the user. The EEPROM 27 stores a link local address or information for generating a link local address. In addition, the EEPROM 27 stores an IP address settable range table 27a (see FIG. 4) that defines a range (settable range) of the number of IP address information that can be stored for each setting type in the IP address setting information table 26a.

図4は、本発明の一実施形態に係るIPアドレス設定可能範囲テーブルの一例を示す図である。   FIG. 4 is a diagram showing an example of an IP address setting range table according to an embodiment of the present invention.

IPアドレス設定可能範囲テーブル27aは、アドレス設定種類と、その設定種類に対応するIPアドレス情報のIPアドレス設定情報テーブル26aで設定可能な数の範囲とを対応付けて記憶している。   The IP address settable range table 27a stores an address setting type and the number of ranges that can be set in the IP address setting information table 26a of the IP address information corresponding to the set type in association with each other.

例えば、ステートレスアドレス設定については、1から5個までのIPアドレス情報をIPアドレス設定情報テーブル26aに設定可能となっている。本実施形態では、設定可能範囲の下限は、IPアドレス設定情報テーブル26aに格納可能であることが保証されている個数であるが、設定可能範囲の上限は、IPアドレス設定情報テーブル26aに設定可能な空き領域がある場合に設定可能な個数である。従って、本実施形態では、IPアドレス設定情報テーブル26aの記憶可能なIPアドレス情報は、全ての設定種類の最下限の個数の合計(4個)よりも多く、全ての設定種類の上限の個数(14個)の合計よりも少ない数となっている。   For example, for stateless address setting, 1 to 5 pieces of IP address information can be set in the IP address setting information table 26a. In the present embodiment, the lower limit of the settable range is the number that can be stored in the IP address setting information table 26a, but the upper limit of the settable range can be set in the IP address setting information table 26a. This is the number that can be set when there is a free area. Therefore, in the present embodiment, the IP address information that can be stored in the IP address setting information table 26a is larger than the total (four) of the minimum number of all setting types, and the upper limit number of all setting types ( 14)).

本実施形態では、このような設定可能なIPアドレス情報の個数の制限があるものの、その制限の範囲内において、10個分のIPアドレス情報を登録可能な記憶領域を動的にいずれかの設定種類のIPアドレス情報を格納することができる。例えば、リンクローカルアドレス設定のIPアドレス情報を1個、手動設定のIPアドレス情報を1個、ステートレスアドレス設定のIPアドレス情報を3個、ステートフルアドレス設定のIPアドレス情報を5個とすることもできるし、リンクローカルアドレス設定のIPアドレス情報を2個、手動設定のIPアドレス情報を2個、ステートレスアドレス設定のIPアドレス情報を5個、ステートフルアドレス設定のIPアドレス情報を1個とすることができる。   In this embodiment, although there is a limit on the number of IP address information that can be set, the storage area in which 10 pieces of IP address information can be registered is dynamically set within the limits. Types of IP address information can be stored. For example, one IP address information for link local address setting, one IP address information for manual setting, three IP address information for stateless address setting, and five IP address information for stateful address setting may be used. The link local address setting IP address information can be two, the manually setting IP address information can be two, the stateless address setting IP address information can be five, and the stateful address setting IP address information can be one. .

従来においては、各設定種類において設定する可能性のある数分のIPアドレスの記憶領域をそれぞれ固定的に確保しているようにしていた。しかしながら、IPアドレスの一般的な使用方法においては、全ての設定種類のIPアドレス情報を設定する可能性のある数分が設定される状況はほとんどない。上記した構成により、記憶領域をいずれかの設定種類のIPアドレス情報の記憶に振り分けて使用できる。これにより、従来のように、未使用の状態で確保されてしまう無駄な記憶領域を抑えることができ、メモリ効率を向上することができる。   Conventionally, a fixed number of storage areas for IP addresses that may be set for each setting type have been secured. However, in a general method of using IP addresses, there are almost no situations where the number of IP address information that can be set for all setting types is set. With the above-described configuration, the storage area can be allocated and used for storing IP address information of any setting type. As a result, it is possible to suppress a useless storage area that is reserved in an unused state as in the prior art, and to improve memory efficiency.

制御部28は、通信制御部28aと、IPアドレス設定処理手段の一例としてのIPアドレス設定処理部28bと、入出力処理部28cと、プリント制御部28dとを有する。通信制御部28a、IPアドレス設定処理部28b、入出力処理部28c、及びプリント制御部28dは、例えば、制御部28の一例としてのCPU(Central Processing Unit)がROM25等に格納されたプログラムを実行することにより構成される。   The control unit 28 includes a communication control unit 28a, an IP address setting processing unit 28b as an example of an IP address setting processing unit, an input / output processing unit 28c, and a print control unit 28d. The communication control unit 28a, the IP address setting processing unit 28b, the input / output processing unit 28c, and the print control unit 28d execute, for example, a program stored in the ROM 25 or the like by a CPU (Central Processing Unit) as an example of the control unit 28. It is constituted by doing.

通信制御部28aは、図3に示すIPアドレス設定情報テーブル26aに格納された複数のIPアドレスのいずれかのIPアドレスを用いて、通信部23によりネットワーク5を介しての通信を行わせる。なお、どのIPアドレスを使用するかについては、規定の設定に従って決定される。また、通信制御部28aは、通信部23を介してルーター4から送信されたRAからプレフィックスを取出してIPアドレス設定処理部28bに渡す。また、通信制御部28aは、DHCPv6サーバー3から送信されたIPアドレスを受信し、それをIPアドレス設定処理部28bに渡す。   The communication control unit 28a causes the communication unit 23 to perform communication via the network 5 using any one of a plurality of IP addresses stored in the IP address setting information table 26a illustrated in FIG. It should be noted that which IP address is used is determined according to a specified setting. Further, the communication control unit 28a extracts a prefix from the RA transmitted from the router 4 via the communication unit 23 and passes it to the IP address setting processing unit 28b. Further, the communication control unit 28a receives the IP address transmitted from the DHCPv6 server 3, and passes it to the IP address setting processing unit 28b.

IPアドレス設定処理部28bは、EEPROM27に格納されたリンクローカルアドレスを生成するための情報に基づいて、リンクローカルアドレスを生成する。例えば、IPアドレス設定処理部28bは、通信部23からMACアドレスを取得し、当該MACアドレスと、所定のプリフィックスとを組み合わせてリンクローカルアドレスを生成する。また、IPアドレス設定処理部28bは、生成したリンクローカルアドレスについて、後述する設定可能判定処理を行い、その結果、設定可能である場合に当該IPアドレスと、リンクローカルアドレス設定との組であるIPアドレス情報をIPアドレス設定情報テーブル26aに格納する。   The IP address setting processing unit 28 b generates a link local address based on information for generating a link local address stored in the EEPROM 27. For example, the IP address setting processing unit 28b acquires a MAC address from the communication unit 23, and generates a link local address by combining the MAC address and a predetermined prefix. In addition, the IP address setting processing unit 28b performs a setting possibility determination process to be described later for the generated link local address. Address information is stored in the IP address setting information table 26a.

また、IPアドレス設定処理部28bは、入出力処理部28cによって入力され、EEPROM28に記憶されているIPアドレス(手動IPアドレス)を受け取り、当該IPアドレスについて、設定可能判定処理を行い、その結果、設定可能である場合に当該IPアドレスと手動設定との組であるIPアドレス情報をIPアドレス設定情報テーブル26aに格納する。   Further, the IP address setting processing unit 28b receives the IP address (manual IP address) input by the input / output processing unit 28c and stored in the EEPROM 28, performs a setting possibility determination process for the IP address, and as a result, When the setting is possible, the IP address information that is a set of the IP address and the manual setting is stored in the IP address setting information table 26a.

また、IPアドレス設定処理部28bは、通信制御部28aからRAのプレフィクスを受け取った場合には、プレフィクスと、リンクローカルアドレスの下位ビットとを組み合わせたIPアドレスを生成する。また、IPアドレス設定処理部28bは、生成したIPアドレスについて、後述する設定可能判定処理を行い、その結果、設定可能である場合に当該IPアドレスと、ステートレスアドレス設定との組であるIPアドレス情報をIPアドレス設定情報テーブル26aに格納する。   In addition, when the IP address setting processing unit 28b receives the RA prefix from the communication control unit 28a, the IP address setting processing unit 28b generates an IP address that combines the prefix and the lower bits of the link local address. In addition, the IP address setting processing unit 28b performs a setting possibility determination process to be described later for the generated IP address. As a result, when the setting is possible, the IP address information that is a set of the IP address and the stateless address setting Are stored in the IP address setting information table 26a.

また、IPアドレス設定処理部28bは、通信制御部28aからDHCPv6サーバー3からのIPアドレスを受け取った場合には、そのIPアドレスについて、設定可能判定処理を行い、その結果、設定可能である場合にそのIPアドレスとステートフルアドレス設定との組であるIPアドレス情報をIPアドレス設定情報テーブル26aに格納する。   In addition, when the IP address setting processing unit 28b receives the IP address from the DHCPv6 server 3 from the communication control unit 28a, the IP address setting processing unit 28b performs a setting possibility determination process for the IP address, and as a result, the setting is possible. The IP address information which is a set of the IP address and the stateful address setting is stored in the IP address setting information table 26a.

IPアドレス設定処理部28bは、設定対象のIPアドレスをIPアドレス設定情報テーブル26aに設定可能であるか否かを判定する設定可能判定処理を行う。設定可能判定処理において、設定対象のIPアドレスの設定種類に対応するIPアドレス情報のIPアドレス設定情報テーブル26aにおける設定個数が、IPアドレス設定可能範囲テーブル27aの設定可能範囲内に収まるか否かを判定し、設定可能範囲内におさまらない場合には、当該IPアドレス情報は、設定不可能であると判定する一方、設定可能範囲内におさまる場合には、設定可能な空き領域があるか否かを判定する。ここで、設定可能な空き領域とは、各設定種類の最低限のIPアドレス情報をIPアドレス設定情報テーブル26aの記憶領域に記憶しても、さらにIPアドレス情報を格納することのできる空き領域を意味する。例えば、IPアドレス設定情報テーブル26aの空き領域が1個あり、最低限保証される領域(本実施形態では、1個)を使用していない設定種類がある場合には、設定可能な空き領域は、0個となる。   The IP address setting processing unit 28b performs a setting possibility determination process for determining whether or not the setting target IP address can be set in the IP address setting information table 26a. Whether or not the set number in the IP address setting information table 26a of the IP address information corresponding to the setting type of the IP address to be set falls within the settable range of the IP address settable range table 27a in the settable determination process. If it is determined that the IP address information does not fall within the settable range, it is determined that the IP address information cannot be set. If the IP address information falls within the settable range, whether or not there is a settable free area. Determine. Here, the settable free area is a free area in which IP address information can be stored even if the minimum IP address information of each setting type is stored in the storage area of the IP address setting information table 26a. means. For example, when there is one free area in the IP address setting information table 26a and there is a setting type that does not use a minimum guaranteed area (1 in this embodiment), the settable free area is , 0.

IPアドレス設定処理部28bは、設定可能な空き領域があると判定した場合には、設定対象のIPアドレス情報をIPアドレス設定情報テーブル26aに設定可能であると判定する一方、設定可能な空き領域がないと判定した場合には、設定対象のIPアドレス情報をIPアドレス設定情報テーブル26aに設定不可能であると判定する。これにより、各設定種類のIPアドレス情報について、最低限の個数が記憶できることを確実に保証することができる。   When the IP address setting processing unit 28b determines that there is a settable free area, the IP address setting processing unit 28b determines that the setting target IP address information can be set in the IP address setting information table 26a, while the settable free area. When it is determined that there is no IP address information, it is determined that the setting target IP address information cannot be set in the IP address setting information table 26a. As a result, it is possible to reliably ensure that a minimum number of IP address information of each setting type can be stored.

IPアドレス設定処理部28bは、入出力処理部28cから表示させるIPアドレスの設定種類を受け付け、この設定種類に対応するIPアドレスをIPアドレス設定情報テーブル26aから取出して、入出力処理部28cに渡す。   The IP address setting processing unit 28b receives the IP address setting type to be displayed from the input / output processing unit 28c, takes out the IP address corresponding to this setting type from the IP address setting information table 26a, and passes it to the input / output processing unit 28c. .

入出力処理部28cは、入力部22からユーザーによる各種入力を受け付けて、IPアドレス設定処理部28b等に渡す。本実施形態では、入出力処理部28cは、表示部21にユーザーに手動のIPアドレスの入力をさせるための入力画面を表示させ、ユーザーからのプリンター2に設定するIPアドレスの入力を受け付け、入力されたIPアドレスをEEPROM27に記憶させる。また、入出力処理部28cは、入力部22によりユーザーからIPアドレスを表示させる設定種類の指定を受け付け、その設定種類をIPアドレス設定処理部28bに渡し、IPアドレス設定処理部28bから設定種類に対応するIPアドレスを受け取り、そのIPアドレスを表示部21に表示させる。これによって、ユーザーは、設定種類毎のIPアドレスを適切に把握することができる。   The input / output processing unit 28c receives various inputs from the user from the input unit 22, and passes them to the IP address setting processing unit 28b and the like. In the present embodiment, the input / output processing unit 28c displays an input screen for allowing the user to input a manual IP address on the display unit 21, receives an input of an IP address to be set in the printer 2 from the user, and inputs The obtained IP address is stored in the EEPROM 27. In addition, the input / output processing unit 28c accepts designation of a setting type for displaying an IP address from the user via the input unit 22, passes the setting type to the IP address setting processing unit 28b, and changes the setting type from the IP address setting processing unit 28b to the setting type. The corresponding IP address is received and the IP address is displayed on the display unit 21. Thus, the user can appropriately grasp the IP address for each setting type.

プリント制御部28dは、通信部23を介して、印刷データを受信し、印刷データに基づいてプリント機能部24を制御することにより、画像形成媒体に画像を形成させる。   The print control unit 28d receives print data via the communication unit 23, and controls the print function unit 24 based on the print data to form an image on the image forming medium.

次に、本発明の一実施形態に係る通信装置における処理動作について説明する。   Next, a processing operation in the communication apparatus according to an embodiment of the present invention will be described.

図5は、本発明の一実施形態に係るIPアドレス設定処理のフローチャートである。   FIG. 5 is a flowchart of IP address setting processing according to an embodiment of the present invention.

このIPアドレス設定処理は、プリンター2の電源が投入された後に開始される。まず、IPアドレス設定処理部28bは、設定対象のリンクローカルアドレスがあるか否かを判定し(ステップS1)、リンクローカルアドレスがある場合(ステップS1:YES)には、リンクローカルアドレスについて、設定可能判定処理を行い、設定可能か否かを判定する(ステップS2)。   This IP address setting process is started after the printer 2 is turned on. First, the IP address setting processing unit 28b determines whether or not there is a link local address to be set (step S1). If there is a link local address (step S1: YES), the link local address is set. A possibility determination process is performed to determine whether or not setting is possible (step S2).

この結果、設定可能である場合(ステップS2:YES)には、EEPROM27の情報に基づいてリンクローカルアドレス(IPアドレス)を生成し、このIPアドレスと、このIPアドレスの設定種類であるリンクローカルアドレス設定とを含むIPアドレス情報をIPアドレス設定情報テーブル26aに格納し(ステップS3)、ステップS1に進む。   As a result, if it can be set (step S2: YES), a link local address (IP address) is generated based on the information in the EEPROM 27, and this IP address and the link local address which is the setting type of this IP address are generated. The IP address information including the setting is stored in the IP address setting information table 26a (step S3), and the process proceeds to step S1.

一方、設定対象のリンクローカルアドレスがない場合(ステップS1:NO)又は、リンクローカルアドレスが設定可能でない場合(ステップS2:NO)には、ステップS4に進む。   On the other hand, when there is no link local address to be set (step S1: NO), or when the link local address is not settable (step S2: NO), the process proceeds to step S4.

ステップS4では、EEPROM27にユーザーに設定された設定対象のIPアドレス(手動IPアドレス)があるか否かを判定し(ステップS4)、設定対象のIPアドレスがある場合(ステップS4:YES)には、このIPアドレス(手動IPアドレス)について、設定可能判定処理を行い、設定可能か否かを判定する(ステップS5)。   In step S4, it is determined whether or not there is a setting target IP address (manual IP address) set by the user in the EEPROM 27 (step S4), and if there is a setting target IP address (step S4: YES). The IP address (manual IP address) is subjected to setting possibility determination processing to determine whether or not setting is possible (step S5).

この結果、設定可能である場合(ステップS5:YES)には、このIPアドレスと、このIPアドレスの設定種類である手動設定とを含むIPアドレス情報をIPアドレス設定情報テーブル26aに格納し(ステップS6)、ステップS4に進む。   As a result, when the setting is possible (step S5: YES), the IP address information including this IP address and the manual setting which is the setting type of the IP address is stored in the IP address setting information table 26a (step S5). S6), the process proceeds to step S4.

一方、設定対象の手動IPアドレスがない場合(ステップS4:NO)又は、手動IPアドレスが設定可能でない場合(ステップS5:NO)には、ステップS7に進む。   On the other hand, when there is no manual IP address to be set (step S4: NO) or when the manual IP address cannot be set (step S5: NO), the process proceeds to step S7.

ステップS7では、通信制御部は、IPアドレスの設定を受け付けたか否か、すなわち、通信制御部28aからRAのプレフィクス又はDHCPv6サーバー3からのIPアドレスを受け取ったか否かを判定し(ステップS7)、アドレスの設定を受け付けた場合(ステップS7:YES)には、設定に対応するIPアドレス(ステートレスアドレス、ステートフルアドレス)について、設定可能判定処理を行い、設定可能か否かを判定する(ステップS8)。   In step S7, the communication control unit determines whether or not an IP address setting has been accepted, that is, whether or not an RA prefix or an IP address from the DHCPv6 server 3 has been received from the communication control unit 28a (step S7). When the address setting is accepted (step S7: YES), a setting enable determination process is performed for the IP address (stateless address, stateful address) corresponding to the setting to determine whether the setting is possible (step S8). ).

この結果、設定可能である場合(ステップS8:YES)には、対応するIPアドレス(RAのプレフィクスを用いて作成したIPアドレス、又はDHCPv6サーバー3からのIPアドレス)と、このIPアドレスの設定種類であるステートフルアドレス設定(DHCPv6サーバー3からのIPアドレスの場合)又はステートフルアドレス設定(RAのプレフィクスに基づいて作成したIPアドレスの場合)とを含むIPアドレス情報をIPアドレス設定情報テーブル26aに格納し(ステップS9)、ステップS7に進む。   As a result, if it can be set (step S8: YES), the corresponding IP address (the IP address created using the RA prefix or the IP address from the DHCPv6 server 3) and the setting of this IP address are set. IP address information including stateful address setting (in the case of an IP address from the DHCPv6 server 3) or stateful address setting (in the case of an IP address created based on the RA prefix), which is the type, is stored in the IP address setting information table 26a. Store (step S9) and proceed to step S7.

一方、IPアドレスの設定を受け付けていない場合(ステップS7:NO)又は、対応するIPアドレスが設定可能でない場合(ステップS8:NO)には、ステップS7に進む。   On the other hand, when the setting of the IP address is not accepted (step S7: NO), or when the corresponding IP address is not settable (step S8: NO), the process proceeds to step S7.

このようなIPアドレス設定処理により、IPアドレス設定情報テーブル26aに、各設定種類のIPアドレス情報が格納されることとなる。   By such IP address setting processing, IP address information of each setting type is stored in the IP address setting information table 26a.

以上、本発明を実施形態に基づいて説明したが、本発明は上述した実施の形態に限られず、他の様々な態様に適用可能である。   Although the present invention has been described based on the embodiments, the present invention is not limited to the above-described embodiments, and can be applied to various other modes.

例えば、上記実施形態では、設定可能範囲を設定するようにしていたが、本発明はこれに限られず、例えば、設定可能な最大数のみを設定するようにして、IPアドレス設定情報テーブルに格納できる最大の数のみを制限するようにしてもよく、また、下限のみを設定するようにして、IPアドレス設定情報テーブルに設定可能な最低限のIPアドレス情報の領域を確保可能にしてもよい。また、全ての設定種類としていたが、これに限られず、少なくとも1つの設定種類についての設定可能範囲を設定するようにしてもよい。   For example, in the above embodiment, the settable range is set. However, the present invention is not limited to this, and for example, only the maximum settable number can be set and stored in the IP address setting information table. Only the maximum number may be limited, or only the lower limit may be set so that a minimum IP address information area that can be set in the IP address setting information table can be secured. Moreover, although all the setting types are used, the present invention is not limited to this, and a settable range for at least one setting type may be set.

また、上記実施形態では、リンクローカルアドレス設定、手動設定のIPアドレス情報を記憶させた後に、ステートレスアドレス設定又はステートフルアドレス設定のIPアドレス情報を記憶させるようにしていたが、本発明はこれに限られず、IPアドレス情報を記憶する設定種類の順番を任意の順番としてもよい。   In the above embodiment, the IP address information for the stateless address setting or the stateful address setting is stored after the IP address information for the link local address setting or the manual setting is stored. However, the present invention is not limited to this. Instead, the order of the setting types for storing the IP address information may be an arbitrary order.

また、上記実施形態においては、設定種類に対して確保しておくべき最低限の個数のIPアドレス情報を記憶できる領域を未使用であっても確保するようにしていたが、本発明はこれに限られず、例えば、未使用な領域がある場合には、IPアドレス情報の記憶に利用させておき、最低限確保すべき数が確保されていない設定種類のIPアドレス情報の設定要求が発生し、且つ、記憶領域に空き領域がない場合に、他のIPアドレス情報を記憶している領域を解放して、設定要求のIPアドレス情報を記憶させるようにしてもよい。   Further, in the above embodiment, an area capable of storing the minimum number of IP address information that should be secured for the set type is secured even if it is unused. For example, when there is an unused area, it is used for storing IP address information, and a setting request for setting type IP address information for which a minimum number to be secured is not generated, In addition, when there is no free space in the storage area, an area storing other IP address information may be released to store the IP address information of the setting request.

また、上記実施形態においては、通信装置としてプリンターを一例に説明したが、通信装置はこれに限られず、例えば、プリンター、ファクシミリ、スキャナー等を備えた複合機であってもよく、また、スキャナーであってもよく、パーソナルコンピューターであってもよく、要は、IPアドレスを用いて通信可能な通信装置であればよい。   In the above-described embodiment, the printer is described as an example of the communication device. However, the communication device is not limited to this, and may be, for example, a multifunction device including a printer, a facsimile, a scanner, and the like. There may be a personal computer, and what is necessary is just a communication apparatus which can communicate using an IP address.

1 ネットワークシステム、2 プリンター、3 DHCPv6サーバー、4 ルーター、5 ネットワーク、21 表示部、22 入力部、23 通信部、24 プリント機能部、25 ROM、26 RAM、26a IPアドレス設定情報テーブル、27 EEPROM、27a IPアドレス設定可能範囲テーブル、28 制御部、28a 通信制御部、28b IPアドレス設定処理部、28c 入出力処理部、28d プリント制御部。   1 network system, 2 printer, 3 DHCPv6 server, 4 router, 5 network, 21 display unit, 22 input unit, 23 communication unit, 24 print function unit, 25 ROM, 26 RAM, 26a IP address setting information table, 27 EEPROM, 27a IP address settable range table, 28 control unit, 28a communication control unit, 28b IP address setting processing unit, 28c input / output processing unit, 28d print control unit.

Claims (8)

ネットワークにおける通信に利用可能な複数のIPアドレスを管理する通信装置であって、
前記通信装置に設定したIPアドレスと、前記IPアドレスの設定種類を示すアドレス設定種類情報とを含むIPアドレス情報を、前記IPアドレスの設定種類に関わらずに複数個分記憶可能な記憶領域が確保された記憶手段と、
前記通信装置への設定対象のIPアドレスと、そのIPアドレスの設定種類を示すアドレス設定種類情報とを含むIPアドレス情報を前記記憶領域へ記憶させるIPアドレス設定処理手段とを有し、
前記記憶手段に記憶可能なIPアドレスの上限数として、新たな前記IPアドレス情報を記憶可能な空記憶領域が前記記憶手段の記憶領域にある場合に適用される上限数が前記設定種類ごとに設定されている通信装置。
A communication device that manages a plurality of IP addresses that can be used for communication in a network,
A storage area is secured for storing a plurality of IP address information including the IP address set for the communication device and the address setting type information indicating the IP address setting type regardless of the IP address setting type. Stored storage means,
Possess an IP address to be configured to the communication device, the IP address setting processing means for storing the IP address information and an address setting type information indicating the setting type of the IP address into the storage area,
As the upper limit number of IP addresses that can be stored in the storage means, an upper limit number that is applied when there is an empty storage area that can store new IP address information in the storage area of the storage means is set for each setting type. communication device being.
前記IPアドレス設定処理手段は、前記記憶手段の前記記憶領域に、各設定種類のIPアドレス情報をそれぞれ少なくとも1つ記憶するために要する記憶領域の他に、IPアドレス情報を記憶可能な空記憶領域がある場合に、前記設定対象のIPアドレスのIPアドレス情報を前記記憶領域に記憶させる請求項1に記載の通信装置。   The IP address setting processing means is an empty storage area capable of storing IP address information in addition to a storage area required for storing at least one IP address information of each setting type in the storage area of the storage means. The communication apparatus according to claim 1, wherein when there is an IP address, the IP address information of the IP address to be set is stored in the storage area. 少なくとも1つの設定種類に対するIPアドレス情報の最大の設定可能数を記憶する設定可能数記憶手段を更に備え、
前記IPアドレス設定処理手段は、前記記憶手段の前記記憶領域における前記設定対象のIPアドレスの前記設定種類と同一のIPアドレス情報の数が、前記設定種類のIPアドレス情報の最大の設定可能数に達しておらず、且つ前記記憶手段の前記記憶領域に利用可能な空き記憶領域がある場合に、前記設定対象のIPアドレス情報を前記記憶手段の前記記憶領域に記憶させる請求項1または2に記載の通信装置。
A settable number storage means for storing the maximum settable number of IP address information for at least one setting type;
In the IP address setting processing means, the number of IP address information that is the same as the setting type of the setting target IP address in the storage area of the storage means is set to a maximum settable number of IP address information of the setting type. The IP address information to be set is stored in the storage area of the storage unit when there is an available storage area in the storage area of the storage unit that has not been reached. Communication equipment.
前記IPアドレスの設定種類には、予め前記通信装置に設定された情報に基づいてリンクに固有なIPアドレスであるリンクローカルアドレスを設定するリンクローカルアドレス設定と、ユーザーによって指定されたIPアドレスを設定する手動設定と、ルーターから送信された情報に基づいてIPアドレスを設定するステートレスアドレス設定と、DHCPサーバーから割り当てられたIPアドレスを設定するステートフルアドレス設定とが含まれており、
前記IPアドレス設定処理手段は、前記設定対象のIPアドレスに対して、前記リンクローカルアドレス設定と、手動設定と、ステートレスアドレス設定と、ステートフルアドレス設定とのいずれかの設定種類であることを示すアドレス設定種類情報を対応付けて前記記憶領域に記憶させる請求項1乃至請求項3のいずれか一項に記載の通信装置。
The IP address setting type includes a link local address setting that sets a link local address that is an IP address unique to a link based on information set in advance in the communication device, and an IP address specified by the user. Manual setting, stateless address setting for setting an IP address based on information transmitted from a router, and stateful address setting for setting an IP address assigned from a DHCP server,
The IP address setting processing means is an address indicating that the setting target IP address is one of the setting types of the link local address setting, manual setting, stateless address setting, and stateful address setting. The communication apparatus according to any one of claims 1 to 3, wherein setting type information is associated and stored in the storage area.
前記IPアドレス設定処理手段は、前記通信装置の起動後に、前記リンクローカルアドレス設定によるIPアドレス情報を記憶させ、前記手動設定によるIPアドレス情報を記憶させ、その後、ステートレスアドレス設定又はステートフルアドレス設定によるIPアドレス情報を記憶させる請求項4に記載の通信装置。   The IP address setting processing means stores the IP address information by the link local address setting after the communication device is started, stores the IP address information by the manual setting, and then the IP by the stateless address setting or the stateful address setting. The communication apparatus according to claim 4, wherein address information is stored. 前記IPアドレス設定処理手段は、ステートレスアドレス設定又はステートフルアドレス設定によるIPアドレス情報について、先に設定可能となったものから順に登録する請求項5に記載の通信装置。   6. The communication apparatus according to claim 5, wherein the IP address setting processing means registers IP address information by stateless address setting or stateful address setting in order from the one that can be set first. 前記IPアドレスは、IPv6のIPアドレスである請求項1乃至請求項6のいずれか一項に記載の通信装置。   The communication apparatus according to any one of claims 1 to 6, wherein the IP address is an IPv6 IP address. ネットワークにおける通信に利用可能な複数のIPアドレスを管理する通信装置におけるアドレス管理方法であって、
前記通信装置の記憶手段は、前記通信装置に設定したIPアドレスと、前記IPアドレスの設定種類を示すアドレス設定種類情報とを含むIPアドレス情報を、前記IPアドレスの設定種類に関わらずに複数個分記憶可能な記憶領域が確保されており、
前記通信装置のIPアドレス設定処理手段が、前記通信装置への設定対象のIPアドレスと、そのIPアドレスの設定種類を示すアドレス設定種類情報とを含むIPアドレス情報を前記記憶手段の前記記憶領域へ記憶させるIPアドレス設定処理ステップを有し、
IPアドレス設定処理ステップにおいて前記記憶手段に記憶可能なIPアドレスの上限数として、新たな前記IPアドレス情報を記憶可能な空記憶領域が前記記憶手段の記憶領域にある場合に適用される上限数が前記設定種類ごとに設定されているアドレス管理方法。
An address management method in a communication device that manages a plurality of IP addresses that can be used for communication in a network,
The storage unit of the communication device includes a plurality of pieces of IP address information including an IP address set in the communication device and address setting type information indicating a setting type of the IP address regardless of the setting type of the IP address. A storage area that can be stored for minutes is secured,
The IP address setting processing means of the communication device sends IP address information including an IP address to be set to the communication device and address setting type information indicating a setting type of the IP address to the storage area of the storage means. have a IP address setting processing step to be stored,
As the upper limit number of IP addresses that can be stored in the storage means in the IP address setting processing step, an upper limit number that is applied when an empty storage area capable of storing new IP address information is in the storage area of the storage means. An address management method set for each setting type .
JP2013260985A 2013-12-18 2013-12-18 Communication apparatus and address management method Active JP5605496B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013260985A JP5605496B2 (en) 2013-12-18 2013-12-18 Communication apparatus and address management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013260985A JP5605496B2 (en) 2013-12-18 2013-12-18 Communication apparatus and address management method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2010065570A Division JP5440306B2 (en) 2010-03-23 2010-03-23 Communication apparatus and address management method

Publications (2)

Publication Number Publication Date
JP2014075839A JP2014075839A (en) 2014-04-24
JP5605496B2 true JP5605496B2 (en) 2014-10-15

Family

ID=50749639

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013260985A Active JP5605496B2 (en) 2013-12-18 2013-12-18 Communication apparatus and address management method

Country Status (1)

Country Link
JP (1) JP5605496B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3979413B2 (en) * 2004-09-30 2007-09-19 ブラザー工業株式会社 Setting management program and setting management system
JP4751788B2 (en) * 2005-08-24 2011-08-17 株式会社リコー COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM
JP2008098802A (en) * 2006-10-10 2008-04-24 Seiko Epson Corp Network terminal apparatus, method and program for setting address, and recording medium with the program recorded therein

Also Published As

Publication number Publication date
JP2014075839A (en) 2014-04-24

Similar Documents

Publication Publication Date Title
KR101352852B1 (en) Method for allocating IP address using DHCP in an image forming apparatus, Image forming apparatus thereof, and System for allocating IP address using DHCP
KR100769616B1 (en) Data processing device, registration method, and storage medium
JP5041020B2 (en) Communication device
JP4595811B2 (en) Information processing apparatus, server, communication system, address determining method, address changing method, and program
JP2011124695A (en) Network-connected apparatus and network connection method
CN115460175A (en) IPv6 address generation method and device, electronic equipment and storage medium
JP4666039B2 (en) Sales data processing apparatus, store printer system, and program
JP6394781B2 (en) Information processing system, proxy server, address duplication prevention method, and computer-readable recording medium
JP4780418B2 (en) Client device, data processing program
US9395944B2 (en) Communication apparatus, control method thereof, and storage medium
JP5605496B2 (en) Communication apparatus and address management method
JP5440306B2 (en) Communication apparatus and address management method
JP2016063458A (en) Network apparatus
JP2011077596A (en) Ip address determination device, terminal device, and computer program
JP2005252578A (en) Network device and method and program for setting network information
WO2016187786A1 (en) Message processing method, device and system
CN104935679B (en) Information processing unit and information processing method
JP2010157798A (en) Communication apparatus, method of controlling the same, program, and storage medium
JP2011171793A (en) Network connection device, and method of controlling the same
JP2007096863A (en) Client device, server device, and communication system
Savola Overview of the internet multicast addressing architecture
JP5408308B2 (en) Communication device
JP2016515371A (en) Packet transmission method and apparatus, and server
JP5338953B2 (en) Communication device
JP2017204746A (en) Server selection program, server selection method and information processing terminal

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140716

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: 20140729

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140811

R150 Certificate of patent or registration of utility model

Ref document number: 5605496

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350