Just found this thread searching for a way to change the IP segment used by an APX 8K I'm trying to program at work, and am unable to do so whilst connected to the office LAN. After reading through the entire thread, I can tell you without hesitation that belvdr is spot on - this is totally an IP network conflict. For those interested in understanding why, here's my quick(ish) explanation:
First, the "whittled down" (to only info relevant to this issue) excerpt of the network info from post #10 - pay close attention to the stuff colored in bold:
With radio
<snip>
Ethernet adapter Ethernet 2: <--- OFFICE NETWORK
IPv4 Address. . . . . . . . . . . : 192.168.128.23
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.128.1 <--- OFFICE ROUTER
<snip>
Ethernet adapter Ethernet 5: <--- RADIO NETWORK
IPv4 Address. . . . . . . . . . . : 192.168.128.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.128.1 <--- RADIO'S ACTUAL IP ADDRESS
Note that the
default gateway is the same for both networks/adapters, and that the first three dotted decimal numbers in the IP address (proper term is "octets") are the same for both the office
and radio networks. Because of this, we now have
two adapters (routes) we can use to reach the same
192.168.128.0/24 address space. Furthermore, since both have the same default gateway, the operating system has no reason to suspect that both aren't going to the same place, so it uses the lowest "cost" route to get there. Before anyone who already knows this stuff busts my chops - yes, I know the subnet mask plays a part, but I'm trying to keep this simple and it's a basic class C, so I'm not going into that. If you want more info about what a subnet mask is and what it does, Google is your friend. Anyway, so how do we know which "route" Windows is using? We check the routing table, of course. The command needed is
route print, and here's the partial output from my system. Note that cost ("Metric") is higher for the radio network/route compared to that of the office network.
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.128.1 192.168.128.2 55 <-- RADIO NETWORK
0.0.0.0 0.0.0.0 192.168.128.1 192.168.128.133 45 <-- OFFICE NETWORK
<snip>
192.168.128.0 255.255.255.0 On-link 192.168.128.2 311
192.168.128.0 255.255.255.0 On-link 192.168.128.133 301
As you can see above, when prioritizing the route with the lowest cost, the adapter connected to the office network will be used to reach the gateway (
and radio) address. Because traffic is never sent to the radio network, CPS cannot communicate with the radio.
Class dismissed
Btw - if you happen to be programming MOTOTRBO radios whilst connected to a 192.168.10.0/24 office network, you'll run into the same problem.
Now, if anyone has any idea how to change the IP segment used by the radio when connecting over the USB cable, please don't keep it to yourself!
srg