Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6213009B2 - Network device and program - Google Patents
[go: Go Back, main page]

JP6213009B2 - Network device and program - Google Patents

Network device and program Download PDF

Info

Publication number
JP6213009B2
JP6213009B2 JP2013152829A JP2013152829A JP6213009B2 JP 6213009 B2 JP6213009 B2 JP 6213009B2 JP 2013152829 A JP2013152829 A JP 2013152829A JP 2013152829 A JP2013152829 A JP 2013152829A JP 6213009 B2 JP6213009 B2 JP 6213009B2
Authority
JP
Japan
Prior art keywords
network
network interface
interface
address
service
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
JP2013152829A
Other languages
Japanese (ja)
Other versions
JP2015022704A (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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation 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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2013152829A priority Critical patent/JP6213009B2/en
Publication of JP2015022704A publication Critical patent/JP2015022704A/en
Application granted granted Critical
Publication of JP6213009B2 publication Critical patent/JP6213009B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)

Description

本発明は、ネットワーク装置及びプログラムに関する。   The present invention relates to a network device and a program.

下記特許文献1には、ネットワークに接続された場合に、該ネットワーク配下にある、プリンタ及びファクシミリ等のサービス提供装置のリスト及びネットワークアドレスを取得するクライアント装置が記載されている。これによれば、クライアント装置のユーザは、手作業で環境設定を行わなくても、サービス提供装置により提供されるサービスを利用できる。   Patent Document 1 below describes a client device that obtains a list and a network address of service providing devices such as printers and facsimiles under the network when connected to a network. According to this, the user of the client device can use the service provided by the service providing device without manually setting the environment.

特開平07−262117号公報JP 07-262117 A

本発明の目的は、少なくとも1つのネットワークインタフェースを備えたネットワーク装置において、ネットワークインタフェースを介して提供するサービスを、該ネットワークインタフェースに接続されたネットワークに応じて設定できるようにすることである。   An object of the present invention is to enable a service provided via a network interface to be set according to a network connected to the network interface in a network device including at least one network interface.

請求項1に記載の発明は、少なくとも1つのネットワークインタフェースと、前記ネットワークインタフェースにいずれかのネットワークが接続された場合に、該ネットワークインタフェースに接続されたネットワークに関するネットワークアドレスを取得する取得手段と、前記ネットワークインタフェースにいずれかのネットワークが接続された場合に、前記取得手段により取得されたネットワークアドレスに応じたサービスプログラムを該ネットワークインタフェースに関連づける関連づけ手段と、を含むネットワーク装置である。   The invention according to claim 1 is characterized in that, when at least one network interface and any network is connected to the network interface, an acquisition unit that acquires a network address related to the network connected to the network interface; When any network is connected to the network interface, the network device includes association means for associating a service program corresponding to the network address acquired by the acquisition means with the network interface.

また、請求項2に記載のネットワーク装置は、請求項1に記載のネットワーク装置が画像形成装置であることを特徴としている。   A network device according to a second aspect is characterized in that the network device according to the first aspect is an image forming apparatus.

請求項3に記載のネットワーク装置は、請求項1又は2に記載のネットワーク装置において、前記関連づけ手段が、前記ネットワークインタフェースにいずれかのネットワークが接続された場合に、サービスプログラムに関連づけてネットワークアドレスを記憶する記憶手段に記憶されるネットワークアドレスと、前記取得手段により取得されたネットワークアドレスと、が同じであれば、該ネットワークアドレスが関連づけられたサービスプログラムを該ネットワークインタフェースに関連づけること、を特徴とする。   The network device according to claim 3 is the network device according to claim 1 or 2, wherein when any of the networks is connected to the network interface, the associating unit associates a network address with the service program. If the network address stored in the storing unit is the same as the network address acquired by the acquiring unit, the service program associated with the network address is associated with the network interface. .

請求項4に記載のネットワーク装置は、請求項3に記載のネットワーク装置に、前記記憶手段に記憶されるネットワークアドレスが関連づけられるサービスプログラムを設定する設定手段、をさらに備えさせたことを特徴としている。   According to a fourth aspect of the present invention, there is provided a network device according to the third aspect, further comprising setting means for setting a service program associated with a network address stored in the storage means. .

請求項5に記載の発明は、少なくとも1つのネットワークインタフェースを備えたコンピュータを、前記ネットワークインタフェースにいずれかのネットワークが接続された場合に、該ネットワークインタフェースに接続されたネットワークに関するネットワークアドレスを取得する取得手段、前記ネットワークインタフェースにいずれかのネットワークが接続された場合に、前記取得手段により取得されたネットワークアドレスに応じたサービスプログラムを該ネットワークインタフェースに関連づける関連づけ手段、として機能させるためのプログラムである。   According to a fifth aspect of the present invention, when any network is connected to the network interface, the computer having at least one network interface acquires a network address related to the network connected to the network interface. And a program for causing a service program corresponding to the network address acquired by the acquiring unit to function as an associating unit for associating with the network interface when any network is connected to the network interface.

請求項1、2、5の発明によれば、少なくとも1つのネットワークインタフェースを備えたネットワーク装置において、ネットワークインタフェースを介して提供するサービスを、該ネットワークインタフェースに接続されたネットワークに応じて設定できる。   According to the first, second, and fifth aspects of the present invention, in a network device having at least one network interface, a service provided via the network interface can be set according to a network connected to the network interface.

請求項3の発明によれば、ネットワークインタフェースに接続されたネットワークに応じて該ネットワークインタフェースを介して提供するサービスを設定することを、簡易な処理で行える。   According to the invention of claim 3, it is possible to set a service provided through the network interface according to a network connected to the network interface with a simple process.

請求項4の発明によれば、ネットワークインタフェースが予め定められたネットワークに接続された場合に該ネットワークインタフェースを介しどのサービスを提供するかを、設定できる。   According to the invention of claim 4, when a network interface is connected to a predetermined network, it is possible to set which service is provided through the network interface.

ネットワーク装置を含むネットワーク構成を示す図である。It is a figure which shows the network structure containing a network apparatus. ネットワーク装置で実現される機能群を示す機能ブロック図である。It is a functional block diagram which shows the function group implement | achieved by a network device. 管理テーブルの一例を示す図である。It is a figure which shows an example of a management table. サービステーブルの一例を示す図である。It is a figure which shows an example of a service table.

以下、本発明の実施形態の例について図面に基づき詳細に説明する。   Hereinafter, examples of embodiments of the present invention will be described in detail with reference to the drawings.

図1は、ネットワーク装置2を含むネットワーク構成を示す図である。ネットワーク装置2は、少なくとも1つのネットワークインタフェースを備える。ここでは、ネットワーク装置2が、ネットワークインタフェースNIF1とネットワークインタフェースNIF2とを備えた画像形成装置であるネットワーク対応プリンタ(例えば、複合機)として実現されることとする。ネットワーク装置2は、少なくとも1つのネットワークインタフェースを備えた他の装置(例えば、サーバコンピュータ、ネットワークストレージ等)により実現されてもよい。図1ではネットワークインタフェースNIF1は、IPアドレス「129.249.10.0」で表されるネットワークNW1に接続されている。本実施形態では、ネットワークNW1は、社内イントラネットである。ネットワークNW1の配下には、デフォルトゲートウェイとなるルータ、パーソナルコンピュータ群、ファイルサーバ、及び不図示のDHCPサーバ等の各種情報処理装置が存在する。このDHCPサーバからリースされるIPアドレスが、ネットワークインタフェースNIF1のIPアドレスとなる。   FIG. 1 is a diagram showing a network configuration including the network device 2. The network device 2 includes at least one network interface. Here, it is assumed that the network device 2 is realized as a network-compatible printer (for example, a multi-function device) that is an image forming device including the network interface NIF1 and the network interface NIF2. The network device 2 may be realized by another device (for example, a server computer, a network storage, etc.) provided with at least one network interface. In FIG. 1, the network interface NIF1 is connected to a network NW1 represented by an IP address “129.249.10.0”. In the present embodiment, the network NW1 is an in-house intranet. Under the network NW1, there are various information processing devices such as a router serving as a default gateway, a personal computer group, a file server, and a DHCP server (not shown). The IP address leased from the DHCP server is the IP address of the network interface NIF1.

図1では、ネットワークインタフェースNIF2は、IPアドレス「192.168.0.0」で表されるネットワークNW2に接続されている。本実施形態では、ネットワークNW2は、ビジター用のネットワークである。ネットワークNW2の配下には、ルータ及びDHCPサーバ等の各種情報処理装置が存在する。このDHCPサーバからリースされるIPアドレスが、ネットワークインタフェースNIF2のIPアドレスとなる。   In FIG. 1, the network interface NIF2 is connected to a network NW2 represented by an IP address “192.168.0.0”. In the present embodiment, the network NW2 is a visitor network. Various information processing apparatuses such as a router and a DHCP server exist under the network NW2. The IP address leased from this DHCP server becomes the IP address of the network interface NIF2.

ここでは、ネットワークインタフェースNIF1及びネットワークインタフェースNIF2の双方が有線ネットワークインタフェースであるものとして説明を続けるが、これらの少なくとも1つが無線ネットワークインタフェースであってもよい。例えば、ネットワークインタフェースNIF2は他装置をネットワーク装置2にWi-Fi Direct形式で直接接続するための無線インタフェースであってもよい。   Although the description will be continued here assuming that both the network interface NIF1 and the network interface NIF2 are wired network interfaces, at least one of them may be a wireless network interface. For example, the network interface NIF2 may be a wireless interface for directly connecting another device to the network device 2 in the Wi-Fi Direct format.

ネットワーク装置2では、サービスを提供するサービスプログラムがメモリ等の記憶手段に記憶されている。具体的に、mDNS(マルチキャストDNS)、ポート9100、LPD(Line Priter Deamon)、WSD(Web Services Dynamic Discovery) Printer、及びSNMP(Simple Network Management Protocol)の5つのサービスプログラムが記憶されている。提供されるサービスはネットワークによって異なっている。例えば、優先度が高い社内イントラネットたるネットワークNW1には、全サービスプログラムのサービスが提供される。図1に示す状態では、ネットワークNW1にネットワークインタフェースNIF1が接続されているため、これらサービスプログラムのサービスが、ネットワークインタフェースNIF1を介して提供される。一方、優先度が低いビジター用のネットワークたるネットワークNW2には、mDNS及びポート9100のサービスのみが提供される。図1に示す状態では、ネットワークNW2にネットワークインタフェースNIF2が接続されているため、これら2つのサービスプログラムのサービスが、ネットワークインタフェースNIF2を介して提供される。   In the network device 2, a service program for providing a service is stored in a storage unit such as a memory. Specifically, five service programs of mDNS (multicast DNS), port 9100, LPD (Line Priter Deamon), WSD (Web Services Dynamic Discovery) Printer, and SNMP (Simple Network Management Protocol) are stored. Services provided vary from network to network. For example, the services of all service programs are provided to the network NW1, which is a company intranet having a high priority. In the state shown in FIG. 1, since the network interface NIF1 is connected to the network NW1, the services of these service programs are provided via the network interface NIF1. On the other hand, only the mDNS and port 9100 services are provided to the network NW2, which is a low-priority visitor network. In the state shown in FIG. 1, since the network interface NIF2 is connected to the network NW2, the services of these two service programs are provided via the network interface NIF2.

また、ネットワーク装置2は、ネットワークインタフェースごとに、図示しないルーティングテーブルを備えている。   In addition, the network device 2 includes a routing table (not shown) for each network interface.

このネットワーク装置2は、ネットワークインタフェースに接続されたネットワークに応じてそのネットワークインタフェースを介し提供するサービスを設定するようになっている。そのため、ネットワークインタフェースNIF1にネットワークNW1が接続された場合、ネットワークインタフェースNIF1を介し全サービスプログラムのサービスが提供されるように設定される。また、ネットワークインタフェースNIF1にネットワークNW2が接続された場合、ネットワークインタフェースNIF1を介しmDNS及びポート9100のサービスが提供されるように設定される。従って、例えば、ネットワークインタフェースNIF1に、ビジター用のネットワークNW2に繋がるネットワークケーブルが誤って接続されたとしても、ネットワークNW2配下のユーザ端末が利用可能なサービスをmDNS及びポート9100のサービスだけに限定できる。   The network device 2 is configured to set a service provided through the network interface according to the network connected to the network interface. Therefore, when the network NW1 is connected to the network interface NIF1, the setting is made so that the services of all service programs are provided via the network interface NIF1. Further, when the network NW2 is connected to the network interface NIF1, it is set so that the services of the mDNS and the port 9100 are provided via the network interface NIF1. Therefore, for example, even if a network cable connected to the visitor network NW2 is mistakenly connected to the network interface NIF1, the services available to the user terminals under the network NW2 can be limited to only the services of the mDNS and the port 9100.

以下、ネットワークインタフェースを介して提供するサービスを、該ネットワークインタフェースに接続されたネットワークに応じて設定するための技術について説明する。   Hereinafter, a technique for setting a service provided via a network interface according to a network connected to the network interface will be described.

図2は、ネットワーク装置2で実現される機能群を示す機能ブロック図である。ネットワーク装置2では、接続検知部4、IPアドレス取得部6、記憶部8、設定部10、比較部12、及び関連づけ部14が実現される。本実施形態の場合、これらの機能は、ネットワーク装置2に備えられるコンピュータが、コンピュータ読み取り可能な情報記憶媒体(例えば、光ディスク、磁気ディスク、磁気テープ、光磁気ディスク、フラッシュメモリ等)に格納されるプログラムを読み込み実行することで実現される。なお、プログラムは、インターネット等のデータ通信網を介してネットワーク装置2に供給されてもよい。   FIG. 2 is a functional block diagram showing a group of functions realized by the network device 2. In the network device 2, the connection detection unit 4, the IP address acquisition unit 6, the storage unit 8, the setting unit 10, the comparison unit 12, and the association unit 14 are realized. In the case of the present embodiment, these functions are stored in a computer-readable information storage medium (for example, an optical disk, a magnetic disk, a magnetic tape, a magneto-optical disk, a flash memory, etc.) by the computer provided in the network device 2. Realized by reading and executing the program. The program may be supplied to the network device 2 via a data communication network such as the Internet.

以下、各機能について説明する。接続検知部4は、ネットワークインタフェースにいずれかのネットワークが接続されたことを検知する。本実施形態の場合、接続検知部4は、ネットワークインタフェースにネットワークケーブルが接続されたことを検知する。   Each function will be described below. The connection detection unit 4 detects that any network is connected to the network interface. In the present embodiment, the connection detection unit 4 detects that a network cable is connected to the network interface.

以下、いずれかのネットワークに接続されたことを検知されたネットワークインタフェースそれぞれを、ネットワークインタフェースXと称して、説明を続ける。例えば、ビジター用のネットワークNW2に繋がるネットワークケーブルが誤ってネットワークインタフェースNIF1に接続され、且つ、社内イントラネットNW1に繋がるネットワークケーブルが誤ってネットワークインタフェースNIF2に接続された場合、ネットワークインタフェースNIF1及びネットワークインタフェースNIF2のそれぞれが、ネットワークインタフェースXに相当することとなる。   Hereinafter, each network interface detected to be connected to one of the networks will be referred to as a network interface X, and the description will be continued. For example, when a network cable connected to the visitor network NW2 is mistakenly connected to the network interface NIF1, and a network cable connected to the in-house intranet NW1 is mistakenly connected to the network interface NIF2, the network interface NIF1 and the network interface NIF2 Each corresponds to the network interface X.

IPアドレス取得部6は、ネットワークインタフェースXにいずれかのネットワークが接続されたことを接続検知部4が検知すると、ネットワークインタフェースXに接続されたネットワークに関するIPアドレスを取得する。具体的には、IPアドレス取得部6は、ネットワークインタフェースXに接続されているネットワーク配下のDHCPサーバから、ネット情報を取得する。ネット情報には、少なくとも1つのIPアドレスが含まれる。ここではIPアドレス取得部6は、ネットワークインタフェースXからDHCPサーバへIPアドレス取得要求を送信し、DHCPサーバからネットワークインタフェースXにリースされたIPアドレスをネット情報として受信する。なお、ネット情報には、DHCPサーバから通知された他のIPアドレス(例えば、サブネットマスク及びデフォルトゲートウェイ等のIPアドレス)が含まれてもよい。   When the connection detection unit 4 detects that any network is connected to the network interface X, the IP address acquisition unit 6 acquires an IP address related to the network connected to the network interface X. Specifically, the IP address acquisition unit 6 acquires network information from a DHCP server under the network connected to the network interface X. The net information includes at least one IP address. Here, the IP address acquisition unit 6 transmits an IP address acquisition request from the network interface X to the DHCP server, and receives the IP address leased from the DHCP server to the network interface X as network information. The net information may include other IP addresses (for example, IP addresses such as a subnet mask and a default gateway) notified from the DHCP server.

DHCPサーバからネットワークインタフェースXにリースされたIPアドレスは、ネットワークインタフェースXのIPアドレスとなる。   The IP address leased to the network interface X from the DHCP server becomes the IP address of the network interface X.

記憶部8は、サービスプログラムに関連づけてIPアドレスを予め記憶している。具体的には、記憶部8は、管理テーブルと、サービステーブルと、を記憶している。   The storage unit 8 stores an IP address in advance in association with the service program. Specifically, the storage unit 8 stores a management table and a service table.

管理テーブルは、ネット情報を記憶している。図3は、管理テーブルの一例を示す図である。本実施形態では、管理テーブルは、ネットワークNW1に関するネット情報と、ネットワークNW2に関するネット情報と、を記憶している。各ネット情報は、少なくとも1つのIPアドレスを含む。本実施形態では、ネットワークNW1に関するネット情報に、ネットワークインタフェースがネットワークNW1に接続されたときにDHCPサーバからリースされるIPアドレスが含まれる。これ以外に、DHCPサーバから通知される他のIPアドレス(例えば、サブネットマスク及びデフォルトゲートウェイ等のIPアドレス)が含まれてもよい。また、ネットワークNW2に関するネット情報に、ネットワークインタフェースがネットワークNW2に接続されたときにDHCPサーバからリースされるIPアドレスが含まれる。これ以外に、DHCPサーバから通知される他のIPアドレスが含まれてもよい。ここでは、ネット情報はユーザにより予め登録される。   The management table stores net information. FIG. 3 is a diagram illustrating an example of the management table. In the present embodiment, the management table stores net information related to the network NW1 and net information related to the network NW2. Each net information includes at least one IP address. In the present embodiment, the network information related to the network NW1 includes an IP address leased from the DHCP server when the network interface is connected to the network NW1. In addition to this, other IP addresses notified from the DHCP server (for example, IP addresses such as a subnet mask and a default gateway) may be included. Further, the network information regarding the network NW2 includes an IP address leased from the DHCP server when the network interface is connected to the network NW2. In addition to this, other IP addresses notified from the DHCP server may be included. Here, the net information is registered in advance by the user.

また、図3に示すように、管理テーブルは、ネット情報を優先順位に関連づけて記憶している。ここでは、優先度が高い社内イントラネットたるネットワークNW1に関するネット情報は、優先順位「1」に関連づいている。また、優先度が低いビジター用のネットワークたるネットワークNW2に関するネット情報は、優先順位「2」に関連づいている。   Also, as shown in FIG. 3, the management table stores net information in association with the priority order. Here, the network information related to the network NW1, which is a high-priority intranet, is associated with the priority “1”. Further, the network information related to the network NW2 which is a visitor network with a low priority is associated with the priority “2”.

サービステーブルは、各優先順位を少なくとも1つのサービスプログラムに関連づけて記憶している。図4に、サービステーブルの一例を示した。記憶部8に記憶されるネット情報は、優先順位を介して、少なくとも1つのサービスプログラムに関連づけられている。   The service table stores each priority level in association with at least one service program. FIG. 4 shows an example of the service table. The net information stored in the storage unit 8 is associated with at least one service program via priority.

設定部10は、記憶部8(すなわち、管理テーブル)に記憶されるネット情報が関連づけられるサービスプログラムを設定する。具体的に、設定部10は、ユーザが優先順位設定操作を行った場合に、管理テーブル中の各ネット情報が関連づけられる優先順位を設定する。こうすることで、設定部10は、記憶部8に記憶されるネット情報それぞれが関連づけられるサービスプログラムを設定する。例えば、設定部10は、ネットワークNW1に関するネット情報が関連づけられる優先順位を「1」に設定することで、該ネット情報が全サービスプログラムに関連づけられるように設定する。また、例えば、設定部10は、ネットワークNW2に関するネット情報が関連づけられる優先順位を「2」に設定することで、該ネット情報がmDNS及びポート9100に関連づけられるように設定する。   The setting unit 10 sets a service program associated with the net information stored in the storage unit 8 (that is, the management table). Specifically, the setting unit 10 sets a priority order to associate each net information in the management table when the user performs a priority order setting operation. By doing so, the setting unit 10 sets a service program to which each of the net information stored in the storage unit 8 is associated. For example, the setting unit 10 sets the priority for associating the net information regarding the network NW1 to “1” so that the net information is associated with all the service programs. Further, for example, the setting unit 10 sets the net information regarding the network NW2 to be associated with the mDNS and the port 9100 by setting the priority to which the net information regarding the network NW2 is associated with “2”.

比較部12は、ネットワークインタフェースXにいずれかのネットワークが接続されたことを接続検知部4が検知すると、記憶部8に記憶されるネット情報と、IPアドレス取得部6により取得されたネット情報と、を比較し、比較結果を関連づけ部14に出力する。   When the connection detection unit 4 detects that any network is connected to the network interface X, the comparison unit 12 stores the net information stored in the storage unit 8 and the net information acquired by the IP address acquisition unit 6. , And outputs the comparison result to the associating unit 14.

関連づけ部14は、ネットワークインタフェースXにいずれかのネットワークが接続されたことを接続検知部4が検知すると、IPアドレス取得部6により取得されたネット情報に応じたサービスプログラムをネットワークインタフェースXに関連づける。例えば、IPアドレス取得部6により取得されたネット情報と同じネット情報が管理テーブルにない場合、ネットワークインタフェースXが未知のネットワークに接続されたことになる。この場合、関連づけ部14は、予め定められたサービスプログラム(ここでは、ポート9100のみ)をネットワークインタフェースXに関連づける。すなわち、関連づけ部14は、ポート9100を起動し、ネット設定処理を行う。例えばネット設定処理では、DHCPサーバよりリースされたネットワークインタフェースXのIPアドレスにポート9100のポートが関連づけられる。こうして、関連づけ部14は、ネットワークインタフェースXを介しポート9100のサービスが提供されるように設定する。   When the connection detecting unit 4 detects that any network is connected to the network interface X, the associating unit 14 associates the service program corresponding to the network information acquired by the IP address acquiring unit 6 with the network interface X. For example, if the management table does not have the same net information as the net information acquired by the IP address acquisition unit 6, the network interface X is connected to an unknown network. In this case, the associating unit 14 associates a predetermined service program (here, only the port 9100) with the network interface X. That is, the associating unit 14 activates the port 9100 and performs net setting processing. For example, in the network setting process, the port 9100 is associated with the IP address of the network interface X leased from the DHCP server. In this way, the associating unit 14 sets so that the service of the port 9100 is provided via the network interface X.

一方、IPアドレス取得部6により取得されたネット情報と同じネット情報が管理テーブルにある場合、関連づけ部14は、まず、該ネット情報が関連づけられたサービスプログラムを特定する。具体的に、関連づけ部14は、IPアドレス取得部6により取得されたネット情報が関連づけられた優先順位を管理テーブルを参照して特定するとともに、特定した優先順位が関連づけられた少なくとも1つのサービスプログラムをサービステーブルを参照して特定する。そして、関連づけ部14は、特定したサービスプログラムをネットワークインタフェースXに関連づける。すなわち、関連づけ部14は、特定したサービスプログラムを起動し、ネット設定処理を行う。例えばネット設定処理では、DHCPサーバよりリースされたネットワークインタフェースXのIPアドレスに、これらサービスプログラムそれぞれのポートが関連づけられる。こうして、関連づけ部14は、特定したサービスプログラムのサービスがネットワークインタフェースXを介し提供されるように設定する。   On the other hand, when the same net information as the net information acquired by the IP address acquisition unit 6 is present in the management table, the associating unit 14 first identifies the service program associated with the net information. Specifically, the associating unit 14 specifies the priority order in which the net information acquired by the IP address acquiring unit 6 is associated with reference to the management table, and at least one service program associated with the specified priority order Is identified with reference to the service table. Then, the associating unit 14 associates the identified service program with the network interface X. That is, the associating unit 14 activates the specified service program and performs net setting processing. For example, in the network setting process, the port of each service program is associated with the IP address of the network interface X leased from the DHCP server. Thus, the associating unit 14 sets so that the service of the identified service program is provided via the network interface X.

関連づけ部14により、ネットワークインタフェースXを介し提供するサービスがネットワークインタフェースXに接続されたネットワークに応じて設定されるようになる。例えば、ネットワークインタフェースXがネットワークNW1に接続された場合、ネットワークインタフェースXを介し全サービスが提供され、ネットワークインタフェースXがネットワークNW2に接続された場合に、ネットワークインタフェースXを介しmDNSとポート9100のサービスが提供されるようになる。   The association unit 14 sets a service provided via the network interface X in accordance with the network connected to the network interface X. For example, when the network interface X is connected to the network NW1, all services are provided via the network interface X. When the network interface X is connected to the network NW2, the services of mDNS and port 9100 are provided via the network interface X. Will be offered.

また、ユーザは、設定部10により、ネットワークNW1及びネットワークNW2のそれぞれに提供するサービスを設定できる。例えば、ユーザは、優先順位の設定の仕方により、mDNSとポート9100のサービスをネットワークNW1に提供するサービスとして設定し、全サービスをネットワークNW2に提供するサービスとして設定できる。そのため、例えばネットワークNW1がビジター用のネットワークでありネットワークNW2が社内イントラネットである場合に、ネットワークNW1にはmDNSとポート9100のサービスが提供され、ネットワークNW2には全サービスが提供されるようにすることができる。   Further, the user can set a service provided to each of the network NW1 and the network NW2 by the setting unit 10. For example, the user can set the mDNS and port 9100 services as services to be provided to the network NW1, and can set all services as services to be provided to the network NW2, depending on the priority setting method. Therefore, for example, when the network NW1 is a visitor network and the network NW2 is an in-house intranet, the network NW1 is provided with mDNS and port 9100 services, and the network NW2 is provided with all services. Can do.

なお、本発明の実施形態は、上記実施形態だけに限らない。例えば、ネットワーク装置2が画像形成装置以外の装置により実現される場合、ポート9100、LPD等のネットワークプリントに関するサービスプログラムではなく、他のサービスプログラムがネットワーク装置2に記憶されてもよい。   In addition, embodiment of this invention is not restricted only to the said embodiment. For example, when the network apparatus 2 is realized by an apparatus other than the image forming apparatus, other service programs may be stored in the network apparatus 2 instead of a service program related to network printing such as the port 9100 and LPD.

2 ネットワーク装置、4 接続検知部、6 IPアドレス取得部、8 記憶部、10 設定部、12 比較部、14 関連づけ部、NIF1,NIF2 ネットワークインタフェース、NW1,NW2 ネットワーク。   2 network device, 4 connection detection unit, 6 IP address acquisition unit, 8 storage unit, 10 setting unit, 12 comparison unit, 14 association unit, NIF1, NIF2 network interface, NW1, NW2 network.

Claims (6)

複数のネットワークインタフェースと、
前記ネットワークインタフェースにいずれかのネットワークが接続された場合に、該ネットワークインタフェースに接続されたネットワークに関するネットワークアドレスを取得する取得手段と、
前記ネットワークインタフェース毎に、接続されるネットワークに関するネットワークアドレスと、サービスプログラムとが関連付けられたテーブルを記憶する記憶手段と、
前記ネットワークインタフェースにいずれかのネットワークが接続された場合に、前記テーブルに基づいて、前記取得手段により取得されたネットワークアドレスに応じたサービスプログラムを該ネットワークインタフェースに関連づける関連づけ手段と、
を含むネットワーク装置。
Multiple network interfaces;
An acquisition means for acquiring a network address related to a network connected to each network interface when any network is connected to the network interface;
Storage means for storing a table in which a network address related to a connected network and a service program are associated with each network interface;
An association means for associating a service program corresponding to the network address acquired by the acquisition means with the network interface based on the table when any network is connected to the network interface;
Including network equipment.
前記ネットワーク装置は画像形成装置であることを特徴とする請求項1に記載のネットワーク装置。   The network apparatus according to claim 1, wherein the network apparatus is an image forming apparatus. 前記関連づけ手段は、
前記ネットワークインタフェースにいずれかのネットワークが接続された場合に、前記記憶手段に記憶されるネットワークアドレスと、前記取得手段により取得されたネットワークアドレスと、が同じであれば、該ネットワークアドレスが関連づけられたサービスプログラムを該ネットワークインタフェースに関連づけること、
を特徴とする請求項1又は2に記載のネットワーク装置。
The association means includes
If any of the network to the network interface is connected, the network address stored in said storage means, the network address acquired by the acquisition means, but if the same, the network address is associated Associating a service program with the network interface;
The network device according to claim 1, wherein
前記記憶手段に記憶されるネットワークアドレスが関連づけられるサービスプログラムを設定する設定手段、
をさらに含むこと、を特徴とする請求項3に記載のネットワーク装置。
Setting means for setting a service program associated with a network address stored in the storage means;
The network device according to claim 3, further comprising:
前記設定手段は、前記接続されたネットワークに関するネットワークアドレスが前記テーブルに含まれない場合であっても、少なくとも1のサービスプログラムを設定することを特徴とする請求項4に記載のネットワーク装置。   5. The network apparatus according to claim 4, wherein the setting unit sets at least one service program even when a network address related to the connected network is not included in the table. 複数のネットワークインタフェースを備えたコンピュータを、
前記ネットワークインタフェースにいずれかのネットワークが接続された場合に、該ネットワークインタフェースに接続されたネットワークに関するネットワークアドレスを取得する取得手段、
前記ネットワークインタフェース毎に、接続されるネットワークに関するネットワークアドレスと、サービスプログラムとが関連付けられたテーブルを記憶する記憶手段、
前記ネットワークインタフェースにいずれかのネットワークが接続された場合に、前記テーブルに基づいて、前記取得手段により取得されたネットワークアドレスに応じたサービスプログラムを該ネットワークインタフェースに関連づける関連づけ手段、
として機能させるためのプログラム。
A computer with multiple network interfaces
An obtaining means for obtaining a network address related to a network connected to each network interface when any network is connected to the network interface;
Storage means for storing a table in which a network address related to a network to be connected and a service program are associated with each network interface;
Association means for associating a service program corresponding to the network address acquired by the acquisition means with the network interface based on the table when any network is connected to the network interface;
Program to function as.
JP2013152829A 2013-07-23 2013-07-23 Network device and program Active JP6213009B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013152829A JP6213009B2 (en) 2013-07-23 2013-07-23 Network device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013152829A JP6213009B2 (en) 2013-07-23 2013-07-23 Network device and program

Publications (2)

Publication Number Publication Date
JP2015022704A JP2015022704A (en) 2015-02-02
JP6213009B2 true JP6213009B2 (en) 2017-10-18

Family

ID=52487053

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013152829A Active JP6213009B2 (en) 2013-07-23 2013-07-23 Network device and program

Country Status (1)

Country Link
JP (1) JP6213009B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004343420A (en) * 2003-05-15 2004-12-02 Casio Comput Co Ltd Network terminal equipment and its control method

Also Published As

Publication number Publication date
JP2015022704A (en) 2015-02-02

Similar Documents

Publication Publication Date Title
US9264291B2 (en) Printer searching device
CN107517138A (en) Equipment detection method and device
US9442679B2 (en) Network discovery using unicast communications
JP5882855B2 (en) Method, system and program for protecting a host device
JP2019033370A (en) Communication control system, image processing unit, router, communication relay device, and program
US10904069B2 (en) Communication apparatus executing specific process related to security
JP2008015880A (en) Network system, image processor and computer program
CN103858408B (en) Device is made to be connected to the method for network, device connection system and program
US20110235641A1 (en) Communication apparatus, method of controlling the communication apparatus,and program
US10098161B2 (en) Information processing apparatus and non-transitory computer readable medium
JP5983314B2 (en) Information processing apparatus and program
JP6213009B2 (en) Network device and program
JP6506522B2 (en) INFORMATION PROCESSING APPARATUS, CONTROL METHOD THEREOF, AND PROGRAM
JP5915314B2 (en) Communication device
JP6955188B2 (en) Communication equipment and computer programs
JP2014230005A (en) Image forming apparatus and program
JP6052039B2 (en) Information processing apparatus and network connection program
JP6256471B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
CN104243626A (en) Information processing apparatus
US9525596B2 (en) Information processing apparatus and method, and non-transitory computer readable medium
JP2011114805A (en) Communication apparatus and method, and program
JP2018007074A (en) Communication equipment, control method, and program
CN111316704B (en) Information processing device, terminal device, information processing method, and recording medium
JP7034719B2 (en) A storage medium that stores a communication device, a control method for the communication device, and its program.
JP2015162742A (en) Inter-network relay apparatus, data communication system with the same, and image formation system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160218

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170116

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170124

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170327

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170904

R150 Certificate of patent or registration of utility model

Ref document number: 6213009

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350