Hi everybody…
I’m using a E9301 based board. In this moment I’m connecting that board to a network where the board adquire an IP in a dynamic way by using DCHP. By there’s a problem, the only way to know what IP has taken the board is connecting by serial port to the board. I need to now what IP has taken the board in order to use a video server that I have put on the board.
So, I have thought that maybe I could write a script and make it to be executed when the board load the kernel, but I don’t know how to do that. Anyone can help me?
Another option would be to find a way the board could announce the IP that has taken… any suggestion?
Thank you very much.
Hi,
I’ve configured my DHCP server to always assign the same IP to some devices based on the MAC address:
host cs-ep9301 {
hardware ethernet 08:00:3E:26:0A:5B;
fixed-address 192.168.0.200;
next-server 192.168.0.99;
filename “/tftpboot/cs-ep9301.img”;
}
This configuration also specifies a kernel image that’s sent to the device on a bootp request.
Regards,
Dominic
Hi Dominic,
Thank you very much for your fast aswer.
The problem with your suggestion is that the network where I want to connect the board is of my company, so I can’t change the configuration of the DHCP server. That’s why I need to make that the board adcquire the same IP always when I turn on the board.
Another possibility would be that the board announce the IP when is connected to the network, but I thing that’s more difficult .
I know that I can change the file /etc/network/interfaces to make the board to take a static IP, but I don’t know if there’s a better way to do that, and I don’t know how to change that file over the ramdisk that I have put on the board. Can you help me please?
Thanks.