How to use ping

Associate
Joined
26 Feb 2004
Posts
971
Location
China (Qinhuangdao)
I'm trying to re-write some software to access a PLC's (Koyo DL205) 8 channel analogue input by using it's 100MBIT DL205 ethernet base controller (H2-EBC100).

I have been told that I need my computer to be setup with an IP of 10.0.1.1. However, looking at the code that has previously been written for communicating with this controller, the controller itself appears to have an IP of 10.1.0.100.

I really have no clue about ip addresses. I've been trying to ping the controller all afternoon, with little success. So I've been trying to ping a laptop on the same network with my original ip. The laptop's ip is 192.168.1.101 and my desktop is 192.168.1.100 (and the wireless router is 192.168.1.1). I can ping both laptop and router ok. If I change my ip to 192.168.1.200 I can still ping both. However, if I change my ip to 192.168.2.100 I can't ping anything. If I then change the laptop to 192.168.2.101, I can ping the laptop, but not the router.

So, thinking now that I must keep the first three parts of my ip the same as the ethernet controller, I change my desktop ip to 10.1.0.1 (believing that the controller's ip is 10.1.0.100). But I still cannot ping it.

I'm now at a bit of a loss as to exactly what my desktop ip address should be and how to find out the ip of the ethernet controller. Do you think a problem might be because I'm going through my managed router (which has it's own ip address)? Is there any way to search for this controller another way?
 
Hows the base controller configured to the 10.0.1.1 you suspect it to be?

It either has to be set statically (hardwired at the device) or be assigned an address by something like a router.

It would be much easier to troublshoot if you can connect directly to the device rather than via other devices and subnets
 
The matching octets depend entirely on the subnet mask. 10.x.x.x can be on a 255.0.0.0 mask in which case only the first octet needs to match to be on the same subnet.
for 10.1.0.100 to be pingable from 10.0.1.1 you need to make sure your subnet mask is 255.0.0.0 else your PC will think it's on another subnet and try to go via a default gatway which you don't have.
 
Back
Top Bottom