Results 1 to 5 of 5

Thread: Need to change IP address AND complete subnet

  1. #1
    mludwig is offline Senior Member
    Join Date
    Mar 2008
    Posts
    52
    Rep Power
    7

    Default Need to change IP address AND complete subnet

    Hello to all of you!

    I need your advice to get the following done.

    At first I have to switch the primary and alias domain which I will do as clarified in this thread: Switching main domain and domain alias

    Then I have to do some restructuring on our public ip net.
    Currently we have a network with 8 ip addresses (/29) and have to switch to a bigger network which is already assigned to us. This is a /28 network with 16 ip addresses.

    What do I have to do to get this done?
    Which way is the best?

    Yesterday evening/night I already tried it on my own and failed very hard so that I had to switch back to my backup. (See this one, excuse me! Urgent help needed / switched IP and network class and hostname?)

    So as I said, I failed trying on my own switching to the new ip subnet.
    You see, I need your help as I am absolutely not an expert when it comes to zimbra.

    I have to say that I have to switch to the new subnet directly after step 1 (switching the domain names) because we are in urgent need for the bigger subnet and all other servers in the DMZ are already running on the new subnet.

    Please be so kind and help me, without you I will never get this done!

    Michael

  2. #2
    Paul Csiki is offline Active Member
    Join Date
    Apr 2012
    Posts
    43
    Rep Power
    3

    Default

    Hello,

    I am sorry if I misunderstand but are you trying to change the ips and hostname of the zcs? If so just changes the ips:

    On centos: vi /etc/sysconfig/network-scripts/ifcfg-eth0
    On Debian/Ubuntu: vim /etc/network/interfaces

    For hosts just vim /etc/host and if the ip and host.
    For hostname vim /etc/hostname .

    Then run: /etc/init.d/hostname.sh start

    Then restart the services, change the MTA allowed ips to match your new settings.

  3. #3
    mludwig is offline Senior Member
    Join Date
    Mar 2008
    Posts
    52
    Rep Power
    7

    Default

    Hello Paul,

    Quote Originally Posted by Paul Csiki View Post
    [...] are you trying to change the ips and hostname of the zcs? If so just changes the ips:
    Oh no, sorry, I have to change the host ip and the subnet the host is in.
    The hostname stays the same.

    As I am on Ubuntu I will change /etc/network/interfaces so that the eth0 interfaces listens on the new ip. Adding the correct subnet mask, broadcast adress and so on but this will be the easiest step.

    Also I will change /etc/hosts for handing over the new ip.
    The /etc/resolv.conf will be edited too to reflect these changes and asks the new gateway ip for dns queries.



    Quote Originally Posted by Paul Csiki View Post
    [...] Then restart the services, change the MTA allowed ips to match your new settings.
    Is it really that easy?
    As I tried yesterday the whole Zimbra server didn't start anymore.
    Any more suggestions? Or is this everything which his to be done, even with a completely changing subnet?

    Wouldn't it be wise to set the new subnet and delete the old one *before* switchting the eth0 ip and stuff?
    I mean in server settings, MTA, trusted MTA networks ??

    Michael

  4. #4
    mludwig is offline Senior Member
    Join Date
    Mar 2008
    Posts
    52
    Rep Power
    7

    Default

    So! After changing the ip address of the eth0 device, editing /etc/hosts and /etc/resolv.conf, preventing zimbra from startup (/etc/rc2.d), testing all connections and mx entries are okay this is what you have to do:

    Code:
    su - zimbra
    zmprov -l ms mail.myserver.tld zimbraPop3BindAddress NEWIPADDRESS
    zmprov -l gs mail.myserver.tld | grep Bind
    zmcontrol stop; zmcontrol start
    zmprov -l gs mail.myserver.tld | grep Bind
    zmcontrol status
    EVERYTHING IS FINE! ;-)
    Wow, this feels so good! ;-)

    Please pay attention that *before* changing the hosts ip address I changed the ZimbraMtaMyNetworks!!
    You can see here: ZimbraMtaMyNetworks - Zimbra :: Wiki

    This is what I did:
    I edited the MtaMyNetworks on the admin panel (port 7071) before I did all the changes so that the new network is known to the MTA postfix.
    The old network can remain in there, you can remove it after the change is complete and you got your zimbra installation back up and running with the new ip.

    Michael

  5. #5
    mludwig is offline Senior Member
    Join Date
    Mar 2008
    Posts
    52
    Rep Power
    7

    Default

    Additionally you can refer to this thread where phoenix was involved: Change IP address

    Maybe good to know for you... ;-)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. starter questions
    By mskin in forum Installation
    Replies: 1
    Last Post: 03-17-2011, 06:48 PM
  2. Installation Help!
    By arkitektron in forum Installation
    Replies: 16
    Last Post: 03-03-2011, 09:08 AM
  3. Replies: 4
    Last Post: 01-24-2011, 11:30 AM
  4. Global Address Book downloading & auto complete
    By michel young in forum CalDAV / CardDAV / iSync
    Replies: 4
    Last Post: 11-14-2007, 02:09 PM
  5. Email Address Auto complete
    By mcavalieri in forum Users
    Replies: 5
    Last Post: 07-10-2006, 02:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •