in reply to Can I change the IP by perl it own

You will need to do the ioctl SIOCSIFADDR on the appropriate device. Perl's ioctl is described in perlfunc beyond that you are on your own.

/J\