IP Address Change

adavidm
Posts: 12
Joined: Wed Jan 19, 2011 3:40 am

IP Address Change

Postby adavidm » Wed Jan 19, 2011 3:50 am

Hi all,

I have been looking at the Wiki and the forums and cannot find a straightforward answer to this question, so please forgive me if I have missed the obvious.

A bit of background first. I am attempting to install Amahi on an HP ex475 Mediasmart headless server. I don't have the VGA debug board so I can't see any output. I have installed the system on a donor PC and was then going to transfer disks to the mediasmart and boot from there.

so far so good, but my donor PC was on a different IP subnet and so I was forced to use an IP address that I didn't want on a subnet that would not be available on the 'real' network. I have now changed the subnet using the hda-change-gw command but I can't see an easy way to change the actual ip address (from say 241 to 10).

If I change it in /etc/sysconfig/networking/devices/ifcfg-eth0 it will be changed back at the next reboot.

Is there any way around this? I know its a trivial matter but I like to keep the network addressing clean ( I used to be a network manager by trade so it's deeply entrenched)!

Thanks in advance.

David

P.S. If anyone else has tried installing on a 740 or 745 before, please speak up, i'd like to compare notes.

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: IP Address Change

Postby cpg » Wed Jan 19, 2011 4:51 am

Yeah, not supported, cause it gets populated all over :(

First uninstall all apps. However you could change the IP in the database (db: hda_production, settings/general/self-address - only the last byte of the IP, and hope for the best.

Or hda-new-install -f YOURINSTALLCODE with the install code of a profile with the good settings.

However all your apps will be zapped (best to uninstall them first).

We really need to try this and write some code to support it.
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Re: IP Address Change

Postby rgmhtt » Wed Jan 19, 2011 7:34 am

hda-change-gw will change the gateway address, but you still have to edit /etc/sysconfig/network

You can use that script as a starting point to write a script to change the network and address in the settings table or install phpmyadmin while the system is on the subnet where it will work.

You end up having changed your broadcast address and that has to be changed manually by editing it in the ifcfg-eth0 file.

I do this ALL the time, installing on the subnet where my repo server is, then having to change the address to where I want the server to be.

I have a script for changing the netmask over in bug 714 if you need that.

adavidm
Posts: 12
Joined: Wed Jan 19, 2011 3:40 am

Re: IP Address Change

Postby adavidm » Wed Jan 19, 2011 6:04 pm

thanks for the replies.

I changed the database setting in the end - no apps installed and no data so very little risk.

Now if i could just get ahci working on this mediasmart i'd be happy to write a wiki entry for it! everything else works except that now.

thanks again

adavidm

Who is online

Users browsing this forum: No registered users and 21 guests