Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: carolus555 on July 09, 2007, 05:27:26 AM

Title: Local IP
Post by: carolus555 on July 09, 2007, 05:27:26 AM
Dear All,

 :oops: Sorry about this fool question, how to change the Local IP in SME server ?
Thank you very much for your help.

Carl
Title: Local IP
Post by: shell on July 09, 2007, 05:49:16 AM
Either from the server console, or via ssh (putty) login as admin and choose the "Configure this server" option.

Good luck :)
Title: Local IP
Post by: carolus555 on July 09, 2007, 06:02:54 AM
Can I use the command "config set LocalIP x.x.x.x" to change it ?
Thanks
Title: Local IP
Post by: shell on July 09, 2007, 06:09:45 AM
Yep, if you prefer working with the db commands.  only reason i suggest the configure option is that it will automagically expand all required templates on reboot.  you could find out the signal-event expand-template ??? you require for the db entry or use the configure option from the admin screen.  your call.  alternatively you could use signal-event post-upgrade and signal-event reboot after your db command to achieve the same thing - reboot and reconfigure / expand of any effected templates.  again amounts to the same thing, but a little easier from the admin console.

cheers,
shell
Title: Local IP
Post by: william_syd on July 09, 2007, 06:31:06 AM
After the ip change, would a
Code: [Select]
signal-event ip-change
do the trick?
Title: Local IP
Post by: shell on July 09, 2007, 06:45:21 AM
Can't say I rightly know!  Guess the best thing to do would be run
Code: [Select]
config set LocalIP x.x.x.x
then
Code: [Select]
signal-event ip-change
then
Code: [Select]
config show LocalIP

If its changed then you could be right.  However I would still be (myself) either signal-event post-upgrade or (and here there are many many people who will know more than i, obviously!!  :) ) signal-event ??? - because the LocalIP will be used in a number of services.

Having thought about this - I think the answer you got (above) would be right, as it did indeed come from one with more knowledge than me!! but also as it is a signal-event command then it should be correctly running / calling all the scripts needed.  Guess if i don't have a definitive answer I tend to err on the side of caution in my replies.  as always and as stated....
Just my 2c!
Cheers,
Shell
Title: Local IP
Post by: william_syd on July 09, 2007, 07:17:47 AM
I'm never too sure about these things.

However,

Code: [Select]
config show LocalIP

will always show the result of

Code: [Select]
config set LocalIP x.x.x.x

irrespective of what commands you run.