hello,
This may not be strictly a pi-specific issue, but it is happening on my rpi, so here goes. I am fairly new to pi-land but have played around with embedded stuff and networking and so on before.
When I first booted this pi it was on DHCP and grabbed address 192.168.1.3. The I changed it to 192.168.1.212 using /boot/cmdline.txt
I wanted to play around with UDP message sending between it and a linus box I use as a file server. So I ran a couple of perl scripts, one on the pi to send a msg and await a response, and one on the server that sits in a loop waiting for messages, printing them out to console, and replying. (Actually I copied code from here : http://www.perlmonks.org/?node_id=129553 ).
Everything works fine, no probs - except the server reports the pi's ip as 192.168.1.3
Which it isn't, as confirmed by ifconfig.
Somewhat confused, I tried editing /etc/network/interfaces ... same thing. Then I wrote a script on the pi to send the message using python. Same deal.
So why? Why is the old ip address being used to construct the udp packet, not the correct one? What gives?