This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

problem with ethernet and ip

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

Parents Reply Children
  • 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