We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hi , i am using ARM7 lpc2468. I have a problem in ethernet protocol.i have set an ip address 192.168.0.100 with MAC address which i am reading from eeprom. i want to ask whether is it possible to change the ip address when my program is running, if yes how??????
i am using net_config configaration included in rtl library
i have kept my DHCP disable and my present ip address is 192.168.0.100 which i am setting in my program. i dont have DHCP server. i just want to change my ip address to 192.168.0.2
You really should do one of two things.
Either use a fixed IP (stored in a flash sector or EEPROM and reconfigurable through some menu command). But with a fixed IP number, you shouldn't hae to change it from 192.168.0.100 to 192.168.0.2. With a fixed IP number, it would most probably be ok to reboot your unit after a reconfiguration to let the new IP number be used.
Or you should use a dynamically assigned IP number, in which case you should make use of DHCP. With most DHCP servers, you can even enter the MAC address of the unit into the DHCP server configuration, allowing the server to always recognize your unit and giving it a fixed IP number.
can you plz give a brief of DHCP AND DHCP server and its configuration to be set in net_cong.c