WO2015096014A1 - 配置以太网设备的方法及其装置 - Google Patents

配置以太网设备的方法及其装置 Download PDF

Info

Publication number
WO2015096014A1
WO2015096014A1 PCT/CN2013/090249 CN2013090249W WO2015096014A1 WO 2015096014 A1 WO2015096014 A1 WO 2015096014A1 CN 2013090249 W CN2013090249 W CN 2013090249W WO 2015096014 A1 WO2015096014 A1 WO 2015096014A1
Authority
WO
WIPO (PCT)
Prior art keywords
ethernet
network card
target communication
communication device
address
Prior art date
Application number
PCT/CN2013/090249
Other languages
English (en)
French (fr)
Inventor
林正平
陆进军
李娜
张芳生
Original Assignee
西门子公司
林正平
陆进军
李娜
张芳生
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 西门子公司, 林正平, 陆进军, 李娜, 张芳生 filed Critical 西门子公司
Priority to PCT/CN2013/090249 priority Critical patent/WO2015096014A1/zh
Publication of WO2015096014A1 publication Critical patent/WO2015096014A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0853Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for configuring an Ethernet device.
  • IP address Internet Protocol address
  • a method for configuring an Ethernet device comprising: collecting a network card of the Ethernet device and a network card identifier thereof; a configuration command, the first configuration command includes a network card identifier of the Ethernet device to be configured, and a target communication device in the local area network of the Ethernet device where the network card to be configured is located, and an Ethernet of the target communication device Configuring information; receiving a second configuration command, where the second configuration command includes Ethernet configuration information of a target communication device to be communicated; The Ethernet configuration information of the target communication device that communicates is sent, and the third configuration command is sent to the network card to be configured of the Ethernet device.
  • the configuration of the Ethernet device can be completed simply, conveniently, and accurately through the above steps, even for users who are not rich in Ethernet configuration and configuration experience.
  • the step of collecting the network card of the Ethernet device and the identification of the network card of the foregoing method only collects the network card having the network cable connection with the Ethernet device and the identifier of the network card. In this way, it is very targeted in practical applications. Especially in debugging applications, it is often necessary to complete the configuration of network card devices with network cable connections. These devices can be automatically identified by the system, which can greatly simplify the number of Ethernet devices. Configuration process when NICs.
  • the foregoing method by using a UDP protocol to broadcast a message and receiving an acknowledgement message of the broadcast message, collecting a target in a local area network of the Ethernet device where the network card to be configured is located Communication device and Ethernet configuration information of the target communication device. In this way, all the target communication devices in the local area network where the network card is to be located can receive the UDP message, so the above configuration method can obtain another preferred embodiment of the present invention in accordance with the present invention.
  • the target communication device to be communicated has not been configured
  • the IP address is assigned a first IP address to the target communication device to be communicated. Since the above configuration method can automatically allocate the above first IP address, the configuration process can be further simplified, so that the configuration process does not require excessive manual operations.
  • the network card to be configured of the network device adds a second IP address, the second IP address belongs to the same network segment as the IP address of the target communication device to be communicated, and the second configured network card of the Ethernet device uses the second The IP address communicates with the target communication device to be communicated.
  • the network card to be configured can perform Ethernet communication through two IP addresses. For an Ethernet device with only one network card, it can communicate in two network segments at the same time, for example, one is the network segment where the company internal network is located, and one is Debug the debug network segment used by the target communication device to be communicated.
  • an apparatus for configuring an Ethernet device comprising: a set module, configured to collect a network card of the Ethernet device and a corresponding network card identifier; the first receiving module is configured to receive a first configuration command, where the first configuration command includes a network card of the Ethernet device to be configured And a second collection module, configured to collect the target communication device in the local area network of the Ethernet device where the network card to be configured is located, and the Ethernet configuration information of the target communication device; and the second receiving module is configured to receive the second configuration command.
  • the second configuration command includes Ethernet configuration information of the target communication device to be communicated, and a configuration module, configured to send the network card to be configured to the Ethernet device according to the Ethernet configuration information of the target communication device to be communicated
  • the third configuration command includes Ethernet configuration information of the target communication device to be communicated.
  • the first collection module of the device for configuring the Ethernet device collects only the network card and the network card identifier that are connected to the Ethernet device by a network cable.
  • the second collection module of the apparatus for configuring the Ethernet device is used by using
  • the UDP protocol broadcasts the message and the acknowledgment message of the broadcast message, and collects the target communication device in the local area network of the Ethernet device to be configured and the Ethernet configuration information of the target communication device.
  • the configuration module of the device configuring the Ethernet device allocates a number to the target communication device to be communicated. An IP address.
  • the device configuring the Ethernet device The configuration module adds a second IP address to the network card to be configured of the Ethernet device, where the second IP address belongs to the same network segment as the IP address of the target communication device to be communicated, and the Ethernet device The network card to be configured uses the second IP address to communicate with the target communication device to be communicated. In this way, the Ethernet device can perform Ethernet communication on two network segments at the same time.
  • FIG. 1 is a schematic diagram of a specific application scenario of an Ethernet configuration method according to an embodiment of the present invention.
  • FIG. 2 is a flow chart of an Ethernet configuration method in accordance with one embodiment of the present invention.
  • FIG. 3 shows information such as a network card of an Ethernet device and a network card identification, etc., according to an embodiment of the present invention.
  • FIG. 4 shows information such as a network card and a network card identification of an Ethernet device to be configured according to an embodiment of the present invention.
  • Figure 5 illustrates a target communication device and a target communication device to be communicated and its Ethernet configuration information in accordance with one embodiment of the present invention.
  • FIG. 6 illustrates user prompt information for an Ethernet device that has been successfully configured in accordance with one embodiment of the present invention.
  • FIG. 7 illustrates user prompt information for adding a second IP address to an Ethernet device in accordance with one embodiment of the present invention.
  • FIG. 8 illustrates an apparatus for configuring an Ethernet device in accordance with an embodiment of another aspect of the present invention.
  • FIG. 1 is a schematic diagram of a specific application scenario of an Ethernet configuration method according to an embodiment of the present invention.
  • the Ethernet devices PC1, PC2, and PC3 with Ethernet communication function are connected to each other through a routing device R1 to form a local area network LAN1, wherein the Ethernet device PC1 is connected to R1 through its Ethernet network card NC1;
  • the target communication devices PLC1, PLC2, and PLC3 are connected to each other through the routing device R2 to form another local area network LAN2, wherein R2 is also connected to another Ethernet network card NC2 of the PC1.
  • LAN LAN1 can be the internal network of a company, PC1, PC2, PC3 can be the work computer of its employees; LAN LAN2 can be the internal debugging network composed by the company for debugging products, target Communication equipment PLC1, PLC2, PLC3 are available Programmable Logical Controller (PLC) b
  • PLC Programmable Logical Controller
  • the working computer PC1 often has to access both LAN1 and LAN2, and may even need to access multiple internal debugging networks. Therefore, the Ethernet device PC1 often needs to connect multiple Ethernet network cards, so that the Ethernet device PC1 can normally access the LAN1, and can normally access the target communication device PLC1, PLC2 or PLC3 in the LAN2 that it wants to communicate with. It is necessary to configure multiple network cards of the Ethernet device PC1.
  • Fig. 2 is a flow chart showing a configuration method of the above Ethernet device according to an embodiment of the present invention. The details will be described below with reference to Fig. 1, Fig. 2, and Figs.
  • Ethernet configuration of the PC1 is required.
  • the network card of the Ethernet device PC1 is collected.
  • the information that is, the network card of PC1 and the network card identification, combined with Figure 1, PC1 has two network cards NC1 and NC2.
  • FIG. 3 shows a network card and a network card identifier of the Ethernet device PC1 obtained after performing step S10 according to an embodiment of the present invention, as shown in FIG.
  • the first configuration command is received, where the first configuration command includes the network card identifier of the network card of the Ethernet device to be configured, that is, the first configuration command determines the two network cards NC1 and NC2 owned by the PC1. Which one of the configuration is configured, in the embodiment shown in FIG. 1, it is determined that the network card NC2 of the PC1 is configured so that the PC1 can perform Ethernet communication with one of the PLC1, PLC2, and PLC3, that is, the NC2 is the network card to be configured.
  • FIG. 4 shows a network card and a network card identifier of the Ethernet device PC1 to be configured after performing step S20, as shown in FIG. 410, in accordance with an embodiment of the present invention.
  • step S30 the target communication device in the local area network where the network card PC2 to be configured of the Ethernet device PC1 is located and the Ethernet configuration information of the target communication device are collected, that is, the PLC1, PLC2, PLC3 and their Ethernet in the debugging network LAN2 are collected.
  • Configuration information including information such as the target communication device ID, IP address, subnet mask, gateway, and MAC (Media Access Control) address.
  • Figure 5 illustrates the execution of step S30 in accordance with one embodiment of the present invention. The target communication device and its Ethernet configuration information collected thereafter are shown in FIG.
  • step S40 a second configuration command is received, where the second configuration command includes Ethernet configuration information of the target communication device to be communicated, that is, the second configuration command determines from PLC1, PLC2, and PLC3 which one will communicate with the NC2 network card of PC1.
  • the target communication device that is determined is referred to as the target communication device to be communicated.
  • FIG. 5 illustrates a target communication device to be communicated and its Ethernet configuration information determined after performing step S40 according to an embodiment of the present invention, as shown in FIG. 520, the IP address of the target communication device to be communicated. Is 172.16.202.10.
  • the third configuration command is sent to the network card NC2 to be configured of the Ethernet device PC1 according to the Ethernet configuration information of the target communication device to be communicated, thereby completing the configuration of the Ethernet network card NC2 of the Ethernet device PC1.
  • FIG. 6 shows that the Ethernet device has been successfully configured with Ethernet information after performing step S50 according to an embodiment of the present invention. As shown in FIG. 610, the IP address of the NC2 network card device of PC1 is successfully added to 172.16.202.254. .
  • the above Ethernet configuration method can easily, conveniently, and accurately complete the configuration of the Ethernet device PC1 network card NC2.
  • HP enables users who are not rich in Ethernet configuration configuration to complete successfully according to the above configuration method. This greatly simplifies the Ethernet configuration process.
  • the Ethernet device is made simpler and easier to use, and the user is more friendly, which greatly improves the usability of the Ethernet device.
  • step S10 only the network card having the network cable connection with the Ethernet device PC1 and its network card identifier are collected, so that when the PC1 has multiple network card devices, only those that currently have the network cable connection need to be concerned.
  • the network card that is, the network card used for debugging, simplifies the configuration process, and can also avoid configuration errors caused by sending configuration information to the wrong network card.
  • the Ethernet device PC1 is collected by using a UDP (User Datagram Protocol) protocol to broadcast a message and receive a confirmation message of the broadcast message.
  • UDP User Datagram Protocol
  • the foregoing method for configuring the Ethernet device further includes allocating a first IP address to the target communication device to be communicated. Since the above first IP address can be automatically completed, the configuration process can be further simplified, so that the configuration process does not require excessive manual operations.
  • the message that assigns the first IP address also contains the MAC address of the target communication device to be communicated, because the device with the MAC address updates the IP address. After the target communication device to be communicated completes the IP address configuration, it has the conditions for Ethernet communication with the PC1.
  • step S50 when the IP address of the target communication device to be communicated, such as the IP address of PLC1 and the IP address of the network card NC2 of the Ethernet device PC1, are not on the same network segment, the network card is The second IP address configured by NC2 adding a second IP address belongs to the same network segment as the IP address of PLC1, so that the network card NC2 can use the second IP address to communicate with PLC1 for Ethernet.
  • FIG. 7 shows an embodiment of the present invention, when the IP address of the PLC 1 is not in the same network segment as the IP address of the network card NC2 of the Ethernet device PC1, the configuration method adds one to the network card NC2 of the PC1.
  • the second IP address is shown as 710 in the figure.
  • the method of configuring the Ethernet device according to an embodiment of the present invention does not modify or delete the original IP address of the configured network card, by adding a The second IP address, therefore, the network card NC2 can communicate with the network LAN1 and the PLC1 of the network LAN2 after being configured.
  • This situation is particularly applicable to the same computer being used both as an office computer on the network segment of the company's internal network and as a debug computer on the network segment of the company's debug network.
  • FIG. 8 illustrates an apparatus for configuring an Ethernet device, the apparatus including:
  • a first collection module M10 configured to collect a network card of the Ethernet device and a corresponding network card identifier
  • the first receiving module M20 is configured to receive a first configuration command, where the first configuration command includes a network card identifier of the network device to be configured of the Ethernet device;
  • a second collection module M30 configured to collect the target communication device in the local area network of the Ethernet device where the network card to be configured is located, and the Ethernet configuration information of the target communication device;
  • a second receiving module M40 configured to receive a second configuration command, where the second configuration command includes Ethernet configuration information of a target communication device to be communicated;
  • the configuration module M50 sends a third configuration command to the network card to be configured of the Ethernet device according to the Ethernet configuration information of the target communication device to be communicated.
  • the first collection module M10 collects only the network card and the network card identifier that are connected to the Ethernet device by a network cable.
  • the second collection module M30 collects the acknowledgment message of the broadcast packet by using the UDP protocol, and collects the WLAN in the local area network of the Ethernet device to be configured. Target communication device and Ethernet configuration information of the target communication device.
  • the configuration module M50 assigns a first IP address to the target communication device to be communicated.
  • the configuration module M50 is The NIC to be configured of the Ethernet device adds a second IP address, and the second IP address belongs to the same network segment as the IP address of the target communication device to be communicated, and the network card to be configured of the Ethernet device uses the first The second IP address communicates with the target communication device to be communicated.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

本发明公开了一种新的配置以太网设备的方法,包括:收集所述以太网设备的网卡及其网卡标识;接收第一配置命令,所述第一配置命令包含所述以太网设备的待配置网卡的网卡标识;收集所述以太网设备的待配置网卡所在局域网中的目标通信设备以及所述目标通信设备的以太网配置信息;接收第二配置命令,所述第二配置命令包含待通信的目标通信设备的以太网配置信息;根据所述待通信的目标通信设备的以太网配置信息,向所述以太网设备的待配置网卡发送第三配置命令。通过方法可以简单、方便、准确地完成以太网设备的配置,即使对于以太网配置配置经验不丰富的用户也可以顺利完成。

Description

配置以太网设备的方法及其装置
技术领域
本发明涉及通信技术领域,特别涉及一种配置以太网设备的方法及其装置。
背景技术
目前巿面上有很多可以支持以太网通讯的设备,为了访问这些设备用户需要事先做一系 列的配置。 但是想要正确完成这些配置并不是一件容易的事情,一般用户可能会有如下的困 难:
• 对于用户而言配置太过复杂, 尤其是一些没有以太网使用经验的用户 ;
• 如果用户的电脑上存在多块网卡,那么需要在通讯之前找到并配置网卡,并为网卡设置 正确的因特网协议地址( IP地址);
• 如果用户想在和设备通讯的同时访问企业内部网, 那么在改了网络配置后就变得不可 能了 ;
• 如果用户有不同的设备位于不同的子网下,那么总是需要修改 IP 地址来实现在不同的 子网之间切换;
• 配置结果并不可靠,有可能配置完了还是不能通讯,用户需要去调试。
发明内容
为了降低以太网通信配置的难度和复杂度,根据本发明的一个方面,提供了一种配置以 太网设备的方法,所述方法包括:收集所述以太网设备的网卡及其网卡标识;接收第一配置 命令,所述第一配置命令包含所述以太网设备的待配置网卡的网卡标识;收集所述以太网设 备的待配置网卡所在局域网中的目标通信设备以及所述目标通信设备的以太网配置信息;接 收第二配置命令,所述第二配置命令包含待通信的目标通信设备的以太网配置信息;根据所 述待通信的目标通信设备的以太网配置信息, 向所述以太网设备的待配置网卡发送第三配置 命令。 这样,通过上述步骤可以简单、 方便、 准确地完成以太网设备的配置,即使对于以太 网配置配置经验不丰富的用户也可以顺利完成。
根据本发明的一个优选实施例,上述方法的所述收集所述以太网设备的网卡及其网卡标 识的步骤,只收集与所述以太网设备有网线连接的网卡及其网卡标识。 这样,在实际应用中 非常有针对性,特别在调试等应用场合下,往往最需要完成有网线连接的网卡设备的配置, 通过系统自动识别出这些设备,可以极大简化当以太网设备有多个网卡时的配置过程。
根据本发明的另一个优选实施例,上述方法中 ,通过使用 UDP协议来广播报文以及接收 所述广播报文的确认消息的方式,收集所述以太网设备的待配置网卡所在局域网中的目标通 信设备以及所述目标通信设备的以太网配置信息。 这样,在所述待网卡所在的局域网中的所 有目标通信设备都能接收到 UDP报文,因此上述配置方法就能得到所有这些目标通信设备的 根据本发明的另一个优选实施例,上述方法中 ,当所述待通信的目标通信设备还未配置
IP地址时,为所述待通信的目标通信设备分配一个第一 IP地址。由于上述配置方法可以自动 分配上述第一 IP地址,因此可以进一步简化配置过程,使得配置过程无需过多的人工操作。
根据本发明的另一个优选实施例,上述方法中 ,当所述待通信的目标通信设备的 IP地址 与所述以太网设备的待配置网卡的 IP地址不在同一个网段时,为所述以太网设备的待配置网 卡添加一个第二 IP地址,所述第二 IP地址与所述待通信的目标通信设备的 IP地址属于同一 网段, 所述以太网设备的待配置网卡使用所述第二 IP 地址与所述待通信的目标通信设备通 讯。这样,上述待配置网卡可以通过两个 IP地址进行以太网通讯,这对于只有一个网卡的以 太网设备,可以同时在两个网段中通讯,比如一个是公司内部网络所在的网段,一个是调试 待通信的目标通信设备所使用的调试网段。
根据本发明的第二个方面,提供了一种配置以太网设备的装置,所述装置包括:第一收 集模块,用于收集所述以太网设备的网卡以及对应的网卡标识;第一接收模块,用于接收第 一配置命令,所述第一配置命令包含所述以太网设备的待配置网卡的网卡标识;第二收集模 块,用于收集所述以太网设备的待配置网卡所在局域网中的目标通信设备以及所述目标通信 设备的以太网配置信息;第二接收模块,用于接收第二配置命令,所述第二配置命令包含待 通信的目标通信设备的以太网配置信息;以及配置模块,根据所述待通信的目标通信设备的 以太网配置信息, 向所述以太网设备的待配置网卡发送第三配置命令。
根据本发明的一个优选实施例,上述配置以太网设备的装置的第一收集模块,只收集与 所述以太网设备有网线连接的网卡及其网卡标识。
根据本发明的另一个优选实施例,上述配置以太网设备的装置的第二收集模块通过使用
UDP协议来广播报文以及接收所述广播报文的确认消息的方式,收集所述以太网设备的待配 置网卡所在局域网中的目标通信设备以及所述目标通信设备的以太网配置信息。
根据本发明的另一个优选实施例,当所述待通信的目标通信设备还未配置 IP地址时,上 述配置以太网设备的装置的所述配置模块为所述待通信的目标通信设备分配一个第一 IP 地 址。
根据本发明的另一个优选实施例,当所述待通信的目标通信设备的 IP地址与所述以太网 设备的待配置网卡的 IP地址不在同一个网段时,上述配置以太网设备的装置的所述配置模块 为所述以太网设备的待配置网卡添加一个第二 IP地址,所述第二 IP地址与所述待通信的目 标通信设备的 IP地址属于同一网段,所述以太网设备的待配置网卡使用所述第二 IP地址与所 述待通信的目标通信设备通讯。 这样,可以使得以太网设备可以同时在两个网段上进行以太 网通讯。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依 照说明书的内容予以实施,并且为了让本发明的上述和其他目的、 特征和优点能够更明显易 懂,以下特举较佳实施例,并配合附图 ,详细说明如下。 附图说明
图 1为根据本发明的一个实施例的以太网配置方法的一个具体应用场景示意图。
图 2为根据本发明的一个实施例的以太网配置方法的流程图。
图 3示出了根据本发明的一个实施例的以太网设备的网卡以及网卡标识等信息。
图 4示出了根据本发明的一个实施例的待配置以太网设备的网卡以及网卡标识等信息。 图 5示出了根据本发明的一个实施例的目标通信设备和待通信的目标通信设备及其以太 网配置信息。
图 6示出了根据本发明的一个实施例的以太网设备已经被成功配置的用户提示信息。 图 7示出了根据本发明的一个实施例的向以太网设备增加第二 IP地址的用户提示信息。 图 8示出了根据本发明的另一个方面的一个实施例的一种配置以太网设备的装置。
具体实施方式
为了使本发明所要解决的技术问题、 技术方案及有益效果更加清楚明白 ,以下结合附图 及实施例,对本发明进行进一步详细说明。 应当理解,此处所描述的具体实施例仅仅用以解 释本发明 ,并不用于限定本发明。
图 1所示为根据本发明的一个实施例的以太网配置方法的一个具体应用场景示意图。 如 图 1所示,具有以太网通讯功能的以太网设备 PC1、 PC2、 PC3通过路由设备 R1相互连接, 组成一个局域网 LAN1 ,其中以太网设备 PC1通过其以太网网卡 NC1与 R1相连接;另外, 目标通信设备 PLC1、 PLC2、 PLC3通过路由设备 R2相互连接,组成另一个局域网 LAN2 , 其中 R2还与 PC1的另一个以太网网卡 NC2相连接。 在一个更具体的应用场景中 ,局域网 LAN1可以是某个公司的内部网络,PC1、 PC2、 PC3可以是其员工的工作电脑;局域网 LAN2 可以是该公司为调试产品而组成的内部调试网络, 目标通信设备 PLC1、 PLC2、 PLC3是可 编程逻辑控制器( Programmable Logical Controller, PLC )b 工作电脑 PC1 经常既要访问 LAN1 ,又要访问 LAN2,甚至还可能需要访问多个内部调试网络。 因此,以太网设备 PC1 经常需要连接多个以太网网卡,要使得以太网设备 PC1能正常访问 LAN1 ,又能正常访问它 希望与之通信的在 LAN2中的目标通信设备 PLC1、 PLC2或者 PLC3,就需要对以太网设备 PC1的多个网卡进行配置。
根据本发明的一个方面,提供了一种配置上述以太网设备的方法,图 2示出了其中根据 本发明的一个实施例的上述以太网设备的配置方法的流程图 。 以下结合图 1、 图 2 以及图 3-图 7进行详细描述。
为了使得以太网设备 PC1对目标通信设备 PLC1、 PLC2、 PLC3中的其中一个进行以太 网通信,需要对 PC1进行以太网配置,如图 2所示,在步骤 S10中 ,收集以太网设备 PC1 的网卡信息,即 PC1的网卡以及网卡标识,结合图 1 , PC1拥有两个网卡 NC1和 NC2。 图 3示出了根据本发明的一个实施例,执行步骤 S10之后得到的以太网设备 PC1的网卡以及网 卡标识,如图中 310所示。
在步骤 S20中 ,接收第一配置命令,所述第一配置命令包含所述以太网设备的待配置网 卡的网卡标识,即第一配置命令确定了对 PC1所拥有的两个网卡 NC1和 NC2中的哪一个进 行配置,在图 1所示的实施例中 ,确定对 PC1的网卡 NC2进行配置,以便 PC1能与 PLC1、 PLC2、 PLC3中的一个进行以太网通信,即 NC2为待配置网卡。 图 4示出了根据本发明的 一个实施例,执行步骤 S20之后确定待配置的以太网设备 PC1 的网卡以及网卡标识,如图 中 410所示。
在步骤 S30中 ,收集以太网设备 PC1的待配置网卡 NC2所在局域网中的目标通信设备 以及所述目标通信设备的以太网配置信息,即调试网络 LAN2中的 PLC1、 PLC2、 PLC3以 及它们的以太网配置信息,这些信息包括目标通信设备标识、 IP地址、子网掩码、网关、 MAC ( Media Access Control )地址等信息。图 5示出了根据本发明的一个实施例,执行步骤 S30 之后收集到的目标通信设备及其以太网配置信息,如图中 510所示。
在步骤 S40中 ,接收第二配置命令,第二配置命令包含待通信的目标通信设备的以太网 配置信息,即第二配置命令从 PLC1、 PLC2、 PLC3中确定哪个将与 PC1的 NC2网卡进行 通信,被确定的那个目标通信设备称为待通信的目标通信设备。 图 5示出了根据本发明的一 个实施例,执行步骤 S40之后所确定的待通信的目标通信设备及其以太网配置信息,如图中 520所示,其待通信的目标通信设备的 IP地址是 172.16.202.10。
在步骤 S50中 ,根据所述待通信的目标通信设备的以太网配置信息,向以太网设备 PC1 的待配置网卡 NC2发送第三配置命令,从而完成对以太网设备 PC1的以太网网卡 NC2的配 置。 图 6示出了根据本发明的一个实施例,执行步骤 S50之后以太网设备已经被成功配置了 以太网信息,如图中 610所示,PC1的 NC2网卡设备成功添加的 IP地址为 172.16.202.254。
综上所述,上述以太网配置方法可以简单、 方便、 准确地完成以太网设备 PC1 的网卡 NC2的配置 HP使对于以太网配置配置经验不丰富的用户也可以根据以上配置方法顺利完成。 这极大地简化了以太网配置过程,通过使用上述配置方法,使得以太网设备更加简单易用、 对于用户更加友好,极大地提高了以太网设备的可用性。
根据本发明的一个优选实施例,在步骤 S10中 ,只收集与以太网设备 PC1有网线连接的 网卡及其网卡标识,这样当 PC1拥有多个网卡设备时,只需要关注目前有网线连接的那些网 卡,也就是即将调试所使用到的网卡,从而简化配置过程,也可以避免因将配置信息发送给 错误的网卡等引起的配置失误等情况的发生。
根据本发明的另一个优选实施例 ,在步骤 S30 中 ,通过使用 UDP ( User Datagram Protocol )协议来广播报文以及接收所述广播报文的确认消息的方式,收集所述以太网设备 PC1 的待配置网卡 NC2所在局域网中的目标通信设备 PLC1、 PLC2、 PLC3以及它们的以 太网配置信息。通过这种方法,能确保调试网络 LAN2中的所有以太网通信设备都能被收集。
根据本发明的另一个优选实施例,在步骤 S40之后,当被确定的待通信的目标通信设备 还未配置 IP地址时,上述配置以太网设备的方法还包括为所述待通信的目标通信设备分配一 个第一 IP地址。 由于上述第一 IP地址可以自动完成,因此可以进一步简化配置过程,使得 配置过程无需过多的人工操作。 分配该第一 IP 地址的报文还包含待通信的目标通信设备的 MAC地址,因为有 MAC地址的设备才会更新 IP地址。 在待通信的目标通信设备完成 IP地 址配置之后,就具备与 PC1进行以太网通信的条件了。
根据本发明的另一个优选实施例,在步骤 S50中 ,当待通信的目标通信设备,比如 PLC1 的 IP地址与以太网设备 PC1的待配置网卡 NC2的 IP地址不在同一个网段时,为网卡 NC2 添加一个第二 IP地址所配置的第二 IP地址与 PLC1的 IP地址属于同一网段, 这样网卡 NC2 就可以用该第二 IP地址与 PLC1进行以太网通讯了。 图 7示出了根据本发明的一个实施例, 当发现 PLC1的 IP地址与以太网设备 PC1的待配置网卡 NC2的 IP地址不在同一个网段时, 上述配置方法向 PC1的网卡 NC2上增加一个第二 IP地址,如图中 710所示。
这样,当以太网设备 PC1 即使只有一个网卡 NC2的情况下,根据本发明的一个实施例 的配置以太网设备的方法不是修改或者删除被配置网卡的原有的 IP地址,通过为其增加一个 第二 IP地址,因此该网卡 NC2在配置后既可以与网络 LAN1进行通信,又可以与网络 LAN2 的 PLC1进行通信。 这种情况特别适用于同一台电脑既作为办公电脑在公司内部网络的网段 上使用 ,又作为调试电脑在公司的调试网络的网段上使用。
图 8示出了根据本发明的另一个方面的一个实施例的一种配置以太网设备的装置,该装 置包括:
第一收集模块 M10,用于收集所述以太网设备的网卡以及对应的网卡标识;
第一接收模块 M20,用于接收第一配置命令,所述第一配置命令包含所述以太网设备的 待配置网卡的网卡标识;
第二收集模块 M30,用于收集所述以太网设备的待配置网卡所在局域网中的目标通信设 备以及所述目标通信设备的以太网配置信息; 第二接收模块 M40,用于接收第二配置命令,所述第二配置命令包含待通信的目标通信 设备的以太网配置信息;以及
配置模块 M50,根据所述待通信的目标通信设备的以太网配置信息, 向所述以太网设备 的待配置网卡发送第三配置命令。
根据本发明的一个优选实施例,上述第一收集模块 M10,只收集与所述以太网设备有网 线连接的网卡及其网卡标识。
根据本发明的另一个优选实施例,第二收集模块 M30通过使用 UDP协议来广播报文以 及接收所述广播报文的确认消息的方式,收集所述以太网设备的待配置网卡所在局域网中的 目标通信设备以及所述目标通信设备的以太网配置信息。
根据本发明的另一个优选实施例,当所述待通信的目标通信设备还未配置 IP地址时,所 述配置模块 M50为所述待通信的目标通信设备分配一个第一 IP地址。
根据本发明的另一个优选实施例,当所述待通信的目标通信设备的 IP地址与所述以太网 设备的待配置网卡的 IP地址不在同一个网段时,所述配置模块 M50为所述以太网设备的待 配置网卡添加一个第二 IP地址,所述第二 IP地址与所述待通信的目标通信设备的 IP地址属 于同一网段,所述以太网设备的待配置网卡使用所述第二 IP 地址与所述待通信的目标通信设 备通讯。
综上所述,根据本发明的一个实施例及其优选实施例的配置以太网设备的方法及其装置, 具有如下优点:
• 配置之前不需要人工检查和修改以太网设备的原有设置
• 配置不会影响以太网设备的原有本地网络通讯
• 配置方法更可靠、 更简单,易用性更高
• 不具有很多通讯相关的专业知识的用户也很容易掌握该配置方法
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明 ,凡在本发明的精神和原 则之内所作的任何修改、 等同替换和改进等,均应包含在本发明的保护范围之内 <

Claims

权 利 要 求 书
1、 一种配置以太网设备的方法,其特征在于,所述方法包括:
收集所述以太网设备的网卡及其网卡标识;
接收第一配置命令,所述第一配置命令包含所述以太网设备的待配置网卡的网卡标识; 收集所述以太网设备的待配置网卡所在局域网中的目标通信设备以及所述目标通信设备 的以太网配置信息;
接收第二配置命令,所述第二配置命令包含待通信的目标通信设备的以太网配置信息; 根据所述待通信的目标通信设备的以太网配置信息, 向所述以太网设备的待配置网卡发 送第三配置命令。
2、 根据权利要求 1所述的方法,其特征在于:
只收集与所述以太网设备有网线连接的网卡及其网卡标识。
3、 根据权利要求 1所述的方法,其特征在于:
通过使用 UDP协议来广播报文以及接收所述广播报文的确认消息的方式,收集所述以太 网设备的待配置网卡所在局域网中的目标通信设备以及所述目标通信设备的以太网配置信
✓ 。
4、 根据权利要求 1所述的方法,其特征在于,还包括:
当所述待通信的目标通信设备还未配置 IP地址时,为所述待通信的目标通信设备分配一 个第一 IP地址。
5、 根据权利要求 1所述的方法,其特征在于,还包括:
当所述待通信的目标通信设备的 IP地址与所述以太网设备的待配置网卡的 IP地址不在同 一个网段时,为所述以太网设备的待配置网卡添加一个第二 IP地址,所述第二 IP地址与所 述待通信的目标通信设备的 IP地址属于同一网段, 所述以太网设备的待配置网卡使用所述第 二 IP地址与所述待通信的目标通信设备通讯。
6、 一种配置以太网设备的装置,其特征在于,所述装置包括:
第一收集模块,用于收集所述以太网设备的网卡以及对应的网卡标识;
第一接收模块,用于接收第一配置命令,所述第一配置命令包含所述以太网设备的待配 置网卡的网卡标识;
第二收集模块,用于收集所述以太网设备的待配置网卡所在局域网中的目标通信设备以 及所述目标通信设备的以太网配置信息;
第二接收模块,用于接收第二配置命令,所述第二配置命令包含待通信的目标通信设备 的以太网配置信息;以及
配置模块,根据所述待通信的目标通信设备的以太网配置信息, 向所述以太网设备的待 配置网卡发送第三配置命令。
7、 根据权利要求 6所述的装置,其特征在于:
所述第一收集模块,只收集与所述以太网设备有网线连接的网卡及其网卡标识。
8、 根据权利要求 6所述的装置,其特征在于:
所述第二收集模块通过使用 UDP协议来广播报文以及接收所述广播报文的确认消息的方 式,收集所述以太网设备的待配置网卡所在局域网中的目标通信设备以及所述目标通信设备 的以太网配置信息。
9、 根据权利要求 6所述的装置,其特征在于:
当所述待通信的目标通信设备还未配置 IP地址时,所述配置模块为所述待通信的目标通 信设备分配一个第一 IP地址。
10、 根据权利要求 6所述的装置,其特征在于:
当所述待通信的目标通信设备的 IP地址与所述以太网设备的待配置网卡的 IP地址不在同 一个网段时,所述配置模块为所述以太网设备的待配置网卡添加一个第二 IP地址,所述第二 IP地址与所述待通信的目标通信设备的 IP地址属于同一网段,所述以太网设备的待配置网卡 使用所述第二 IP地址与所述待通信的目标通信设备通讯。
PCT/CN2013/090249 2013-12-23 2013-12-23 配置以太网设备的方法及其装置 WO2015096014A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/090249 WO2015096014A1 (zh) 2013-12-23 2013-12-23 配置以太网设备的方法及其装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/090249 WO2015096014A1 (zh) 2013-12-23 2013-12-23 配置以太网设备的方法及其装置

Publications (1)

Publication Number Publication Date
WO2015096014A1 true WO2015096014A1 (zh) 2015-07-02

Family

ID=53477295

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/090249 WO2015096014A1 (zh) 2013-12-23 2013-12-23 配置以太网设备的方法及其装置

Country Status (1)

Country Link
WO (1) WO2015096014A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107733708A (zh) * 2017-10-16 2018-02-23 平安科技(深圳)有限公司 设备参数配置方法、装置、计算机设备和存储介质
CN108347351A (zh) * 2018-01-26 2018-07-31 广州视源电子科技股份有限公司 设备双以太网卡兼容的方法、装置及系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453367A (zh) * 2007-11-30 2009-06-10 华为技术有限公司 软件部署方法和系统及软件部署服务器和用户服务器
CN102427483A (zh) * 2011-11-15 2012-04-25 浪潮电子信息产业股份有限公司 一种linux系统下网卡名称与设备绑定的方法
CN102567239A (zh) * 2010-12-29 2012-07-11 鸿富锦精密工业(深圳)有限公司 计算机装置及其多网卡识别方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453367A (zh) * 2007-11-30 2009-06-10 华为技术有限公司 软件部署方法和系统及软件部署服务器和用户服务器
CN102567239A (zh) * 2010-12-29 2012-07-11 鸿富锦精密工业(深圳)有限公司 计算机装置及其多网卡识别方法
CN102427483A (zh) * 2011-11-15 2012-04-25 浪潮电子信息产业股份有限公司 一种linux系统下网卡名称与设备绑定的方法

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107733708A (zh) * 2017-10-16 2018-02-23 平安科技(深圳)有限公司 设备参数配置方法、装置、计算机设备和存储介质
CN107733708B (zh) * 2017-10-16 2020-09-18 平安科技(深圳)有限公司 设备参数配置方法、装置、计算机设备和存储介质
CN108347351A (zh) * 2018-01-26 2018-07-31 广州视源电子科技股份有限公司 设备双以太网卡兼容的方法、装置及系统
CN108347351B (zh) * 2018-01-26 2022-02-22 广州视源电子科技股份有限公司 设备双以太网卡兼容的方法、装置及系统

Similar Documents

Publication Publication Date Title
EP2919444B1 (en) Method, relay device, and system for acquiring internet protocol address in network
CN104488222B (zh) 家庭网络系统及其中的路由器的网络设置方法
US9455866B2 (en) Auto-configuration of network devices
WO2004051927A1 (fr) Procede et systeme de gestion en grappes d&#39;installations du reseau
CN106302320B (zh) 用于对用户的业务进行授权的方法、装置及系统
US8432833B2 (en) Auto MEP ID assignment within CFM maintenance association
CN107769939B (zh) 数据通信网中网元管理方法、网管、网关网元及系统
CN105610996A (zh) 一种应用于交换机的dhcp冲突检测方法和装置
CN105847230B (zh) 用于构建无中断的通讯连接的方法和通讯设备
CN104935564A (zh) 使基于mDNS协议的设备及服务在局域网中互相发现的方法
US20120269092A1 (en) Auto-configuration of network devices
CN113938427A (zh) 通信方法及系统、路由节点
JP5818362B2 (ja) ネットワークシステム、ネットワーク管理装置、ネットワーク管理プログラム及びネットワーク管理方法
WO2015096014A1 (zh) 配置以太网设备的方法及其装置
CN102307249A (zh) 一种基于链路层拓扑的ip地址自动配置方法
CN106330511B (zh) 网元设备及数据通信网络开通的方法
EP3583751B1 (en) Method for an improved deployment and use of network nodes of a switching fabric of a data center or within a central office point of delivery of a broadband access network of a telecommunications network
WO2015058413A1 (zh) 一种数据配置方法及网络管理服务器
CN107124307B (zh) 一种管理vlan切换方法及装置
WO2014169838A1 (zh) 动态主机配置协议服务器、中继的管理方法及装置
CN111225080A (zh) 一种网关下挂设备信息的获取方法
WO2012155571A1 (zh) 一种基站自配置的方法及装置
JP2006148813A (ja) 分析装置管理システム、分析装置管理サーバ用プログラム及び分析装置
Rentschler et al. OPC UA extension for IP auto-configuration in cyber-physical systems
JP2007081456A (ja) 変換装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13900477

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13900477

Country of ref document: EP

Kind code of ref document: A1