02-06-2018 07:14 AM - edited 02-06-2018 07:21 AM
[Sorry, posted this in wrong group instead of Real-Time]
Hello hello,
no matter what I try, my RT target refuses the DHCP info: it always gets a useless 169.254.63.83 IP address. Is it possible to set it manually from within the target ? The [Boot into safe mode] option says: "this brings up the minimal set of services necessary to configure the system's network settings", so it should be possible. Are there secret keys to do that ?
02-06-2018 09:46 AM
Have you tried using the System Configuration API? Here is an example to get you started if you're not familiar with it: https://forums.ni.com/t5/Example-Programs/Configure-your-cRIO-programmatically-with-the-System/ta-p/...
02-06-2018 10:08 AM
First, the problem that you hinted at before the question in the title of this post:
Is there anything unusual about the DHCP server for this LAN segment that you're putting the target on? Is it possible to check the logs (if the server has them) to see what's going on on the other end? If all else fails, you can install tcpdump on the target, point it to the interface that is connected to the network, capture a traffic dump, and pull that into a tool like wireshark to see what's going on, on the wire.
Now, for the posted question, you can certainly use the SystemAPI interface to set IP addresses, but I'm guessing if you're having connectivity issues anyway, you may not be able to deploy code, or even see the target from MAX, to use the API. What target are you using, and what version of LVRT (or, really, the OS) are you using?
02-07-2018 04:12 AM
Thanks for the answers,
I'm using the RT target generated by MAX in the [Tools][Create Desktop PC Utility USB drive], so I guess this is Phar Lap ?
I haven't found how to get the logs out of VBoxNetDHCP.
I don't mind playing with tcpdump on the target... but how do I compile and install it without the NI tools ? I can find some way to mount the vmdk disk on my host, but I guess I just can't copy tcpdump from my Ubuntu...
02-07-2018 10:20 AM
Ah, I massively misunderstood your use-case.
The end-result being that, for Pharlap ETS, I don't think there's a way to set the IP address manually unless you're able to connect to it through some network-enabled mechanism (MAX, Syscfg, even FTP)
02-08-2018 06:01 AM - edited 02-08-2018 06:01 AM
I assumed you were using Linux due to where you posted.
I saw that right after I first posted, but I didn't see a way to delete the message... Anyway I got more insightful answers here than in the appropriate forum !
02-08-2018 09:43 AM
wrote:
I assumed you were using Linux due to where you posted.
I saw that right after I first posted, but I didn't see a way to delete the message... Anyway I got more insightful answers here than in the appropriate forum !
Glad to be of assistance, hopefully you can get the root issue (DHCP not working correctly) resolved with some of the tips mentioned. Hopefully you have a pretty flexible and understanding IT dept. to help look at what's going on with the logs