Changing default network IP

View: New views
4 Messages — Rating Filter:   Alert me  

Changing default network IP

by karthik167 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I just want to change the default network IP from 10.11.12 to 10.8.4. Is it possible to do this without downloading the whole debian package from internet. (make_pelican script uses this route)

It will be great if I can do this just on the contents of the  liveCD. Pls let me know.

Regards,
Karthik

Re: Changing default network IP

by Michael Creel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, this is possible, and not too hard to do. You just need to edit the configuration files, which are all in /usr/bin, and which have names that start with "pelican". To find the files that need to be changed, do

grep 10.11.12 /usr/bin/pelican

Then edit those files, replacing all occurrences of 10.11.12 with whatever you like.

Finally, you need to edit /var/lib/tftpboot/debian-live/$ARCH/boot-screens/menu.cfg to change 10.11.12.1 to the IP of the frontend node.

$ARCH here is either i386 or amd64, depending on whether it's the 32 or 64 bit version.

I'll probably try to add this as an option to the configuration scripts sometime in the future, certainly by next summer at the latest. For now I'll reference this post on the Pelican homepage. So, any refinements, improvements, or error corrections are welcome.

Cheers, Michael

Re: Changing default network IP

by karthik167 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Micheal it works. I was out of station for the last couple of days and hence the delay in reply.

Just for the benifit of newbies, configuration files are all located inside filesystem.squashfs. Refer http://www.atworkonline.it/~bibe/ubuntu/custom-livecd.htm for further help on customizing squashfs.

Regards,
Karthik

Re: Changing default network IP

by Michael Creel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Good, thanks for the information. Editing the ISO image and customizing the squashfs file is a nice solution to have a permanently modified copy. It also works on-the-fly, making the changes to a running system that was booted using the original ISO image. PelicanHPC uses aufs, so system configuration changes are possible while the system is running, without need to change the squashfs file. Saving the modified configuration files and then extracting them into a newly booted system is probably the easiest way to be able to use the modifications across reboots.
Cheers, M.