Normally after booting the system with Linux ISO image we can able to access the system from an external network using their IP address. And by default it will have loopback address(127.0.0.1) and some IP address (x.x.x.x)
Here, what I want to do is i want to configure my own IP (18.104.22.168) by without booting the system. i.e the ISO itself should consist the IP (22.214.171.124).
The steps i followed given below. But i am unable to access the system externally by giving that IP address(126.96.36.199).
I mounted the Cent OS image.
mount -o loop linux.iso /mnt
I unsquashed the squashfs.img to change the IP address.
I edited the following files
squashfs-root/etc/apache2/listen.conf# changed Listen 127.0.0.1:80 to Listen 0.0.0.0:80
squashfs-root/etc/apache2/vhosts.d/bender.conf# changed Listen 127.0.0.1:80 to Listen 0.0.0.0:5008
squashfs-root/etc/apache2/vhosts.d/hpsmh.conf# changed Listen 127.0.0.1:2381 to Listen 0.0.0.0:2381
/root/compaq/netconfig.sh --ip 188.8.131.52 --netmask 255.255.224.0 --gateway 184.108.40.206 --device eth5
Again I compressed the squash and compressed the ISO image.
The system is booting well but I am unable to access the system with that IP (220.127.116.11).
Answer would be appreciated.