Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Multiple IP addresses

  1. #1
    haxworthy is offline Starter Member
    Join Date
    Jul 2008
    Posts
    1
    Rep Power
    7

    Default Multiple IP addresses

    Hi all,

    I know in Linux you can bind multiple IP addresses to one NIC card. Does Zimbra support this type of configuration?

    Any information would be greatly appreciated.

    Thanks.

  2. #2
    viniciusfontes is offline Junior Member
    Join Date
    Mar 2008
    Posts
    5
    Rep Power
    7

    Default

    Bumping a 2008 thread. I have the exact same issue and still haven't found an answer on the Zimbra forums, wiki and Google.

    Any ideas? Many thanks in advance.

  3. #3
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Welcome to the forums

    It would help then if you told us what you want to achieve ?

  4. #4
    viniciusfontes is offline Junior Member
    Join Date
    Mar 2008
    Posts
    5
    Rep Power
    7

    Default

    I already have a working ZCS installation on production. I have only one NIC, that has a public IP address.

    Now I have another Internet link and would like to use it to provide some redundancy. I have the interfaces set like this:

    auto eth0
    allow-hotplug eth0
    iface eth0 inet static
    address [myaddress1]
    netmask 255.255.255.192
    gateway [mygateway1]

    auto eth0:1
    allow-hotplug eth0:1
    iface eth0:1 inet static
    address [myaddress2]
    netmask 255.255.255.248
    gateway [mygateway2]
    metric 200

    I have already set the DNS records with both IP addresses, for the A and MX records. I noticed that when I access ZCS from the outside and DNS happens to resolve to the second address, I'm unable to login. No error messages, it just gets stuck on the loading screen after login.

    My guess is that I need to setup something on ZCS so it's aware it has 2 IP addresses. Couldn't find any info tho.

  5. #5
    viniciusfontes is offline Junior Member
    Join Date
    Mar 2008
    Posts
    5
    Rep Power
    7

    Default

    So, anything on this?

  6. #6
    dave_kempe is offline Partner (VAR/HSP)
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    291
    Rep Power
    9

    Default

    I use multiple IP addresses to login using the outlook connector or over the web (so both over http or https really) and it works fine. I use a private range for some migration tasks, and haven't had a problem with using the private IP to connect to Zimbra.
    http://www.solutionsfirst.com.au/hosting/zimbra/
    Australia's premier Zimbra Hosting Partner
    Resellers wanted!

  7. #7
    gvocom is offline Active Member
    Join Date
    Apr 2010
    Posts
    30
    Rep Power
    5

    Default

    This is pretty simple, you cant have 2 internet gateways on a single server, what you need to do is consult your OS documentation for adding ip's to your first NIC

    In most linux distros you would look in
    /etc/sysconfig/network-scripts/
    take a look at ifcfg-eth0
    to configure another ip create another file caled ifcfg-eth0:1 and so on and so forth.

    NIC cards rarely fail, so i do not think 2 cards would provide much help in your situation, you should consider a secondary MX, some zimbra deployments consist of two heads (ZCS installations) with the zimbra clustering sofftware, and possible direct attached storage

    each MX consists of a priority
    in bind it would look like this

    domainname.com. 14400 IN MX 10 mx1.mailserver.com
    domainname.com. 14400 IN MX 20 mx2.mailserver.com

    So if the first is unreachable the second would be utilized.

    if you are wanting redundancy on SMTP then there is a config in the server for multiple smtp hosts that relay outgoing mail.

    I hope this helps.

  8. #8
    fcash is offline Elite Member
    Join Date
    Jun 2007
    Location
    BC, Canada
    Posts
    281
    Rep Power
    8

    Default

    Quote Originally Posted by gvocom View Post
    This is pretty simple, you cant have 2 internet gateways on a single server, what you need to do is consult your OS documentation for adding ip's to your first NIC
    Not true. You can't have multiple default gateways in the same routing table. But it's possible to have multiple routing tables, and to select which routing table to use. In FreeBSD systems, this is done using setfib(1) and ipfw(8). In Linux systems, this is also possible, although I don't know the name of the command for creating the extra tables (never had a use for it on Linux), and using rules in iptables(8) to select them. On routers, this is part of the "source-based policy routing" features.

    NIC cards rarely fail, so i do not think 2 cards would provide much help in your situation, you should consider a secondary MX, some zimbra deployments consist of two heads (ZCS installations) with the zimbra clustering sofftware, and possible direct attached storage
    Having 2 separate Internet connections is handy, as it allows you to balance the outgoing traffic, and provides a redundant link in case one ISP has an outage.
    Last edited by fcash; 05-14-2010 at 08:27 AM.
    Freddie

  9. #9
    gvocom is offline Active Member
    Join Date
    Apr 2010
    Posts
    30
    Rep Power
    5

    Default

    I guess I was assuming someone would be hosting this at a datacenter and not at home or an office, in a DC there is BGP already setup as well as other redundancies.

    Routing through the OS as far as I am concerned is a waste of server resources, when you can just let the router do this. Generally that layer of the OSI model should not be handled by the server

  10. #10
    LMStone's Avatar
    LMStone is offline Moderator
    Join Date
    Sep 2006
    Location
    477 Congress Street | Portland, ME 04101
    Posts
    1,367
    Rep Power
    10

    Default

    I agree with gvocom; handling multiple gateways is best done upstream on the colo provider's gear.

    If you are hosting Zimbra in a home or home office with carrier-diverse Internet connectivity, then best to use a router that can handle multiple gateways and do load balancing or failover between both connections transparently to the Zimbra server. A SonicWall TZ-210 would be more than fine for an environment with less than 5Mbps to/from the Internet and costs under $1,000 including gateway anti-virus/anti-malware etc. licensing.

    Sure you can light up a second NIC to do traditional teaming for redundancy/bandwidth doubling, or Active/Passive teaming to have the same MAC present to two switches (so you can survive a switch failure), but at that point you are generally in a data center of some sort and don't need a second gateway.

    You can also light up a second NIC for a separate management network or iSCSI, but then again you don't need a second gateway.

    Put differently, setting up a server with two gateways in our experience is a very rare and unique need; we'd rather see the need for two gateways satisfied somewhere else in the network -- not on the server.

    Hope that helps,
    Mark

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 32
    Last Post: 03-18-2011, 11:03 AM
  2. zmclamdctl is not running after upgrade
    By Darren in forum Installation
    Replies: 24
    Last Post: 10-10-2008, 09:10 AM
  3. Replies: 7
    Last Post: 03-12-2008, 05:25 AM
  4. Replies: 2
    Last Post: 05-10-2007, 05:45 PM
  5. Multiple Email Addresses
    By Nicrad in forum Administrators
    Replies: 2
    Last Post: 04-17-2007, 03:39 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
  •