Koozali.org: home of the SME Server

Local IP

Offline carolus555

  • 8
  • +0/-0
Local IP
« 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

Offline shell

  • ***
  • 117
  • +0/-0
Local IP
« Reply #1 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 :)

Offline carolus555

  • 8
  • +0/-0
Local IP
« Reply #2 on: July 09, 2007, 06:02:54 AM »
Can I use the command "config set LocalIP x.x.x.x" to change it ?
Thanks

Offline shell

  • ***
  • 117
  • +0/-0
Local IP
« Reply #3 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

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Local IP
« Reply #4 on: July 09, 2007, 06:31:06 AM »
After the ip change, would a
Code: [Select]
signal-event ip-change
do the trick?
Regards,
William

IF I give advise.. It's only if it was me....

Offline shell

  • ***
  • 117
  • +0/-0
Local IP
« Reply #5 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

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Local IP
« Reply #6 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.
Regards,
William

IF I give advise.. It's only if it was me....