Elastix server keeps loosing its IP address dhcp

Discussion in 'General' started by voipdog, Dec 11, 2008.

  1. voipdog

    Joined:
    May 2, 2008
    Messages:
    30
    Likes Received:
    0
    All

    Elastix 1.3 rc2, the server gets its IP address from a pfsense firewall via dhcp

    Seems that everyday the Elastix box "looses" its IP address and has to be rebooted.

    The pfsense dhcp server is set to give it an ip address via the ealstix MAC address.

    Any ideas whats going on?

    Thanks

    John J. Senay
     
  2. Bob

    Bob

    Joined:
    Nov 4, 2007
    Messages:
    2,400
    Likes Received:
    1
    VoIPDog,

    Can you provide the info from dhclient-eth0 which is found under /var/lib/dhclient. As an example, the one on our test box is as follows

    lease {
    interface "eth0";
    fixed-address 172.22.22.202;
    option subnet-mask 255.255.255.0;
    option routers 172.22.22.5;
    option dhcp-lease-time 691200;
    option dhcp-message-type 5;
    option domain-name-servers 172.22.22.2;
    option dhcp-server-identifier 172.22.22.2;
    option dhcp-renewal-time 345600;
    option dhcp-rebinding-time 604800;
    option domain-name "netintegrity.local";
    renew 1 2008/12/15 09:09:20;
    rebind 4 2008/12/18 20:18:50;
    expire 5 2008/12/19 20:18:50;
    }

    This might provide us with a little more clues on what is happening, but my initial thoughts are the your PFSENSE firewall is causing your issue. The DHCP server in Centos (which is what the ELastix system uses) has been around for a long time. As a quick guess, it sounds like your pfsense is allowing initial DHCP requests, but then blocking subsequent renewals, that it why the DHCP info would be useful to put a picture together.

    Regards
    Bob
     
  3. voipdog

    Joined:
    May 2, 2008
    Messages:
    30
    Likes Received:
    0
    Re:Elastix server keeps loosing its IP address dhc

    Bob,

    I might have found one of my problems. I "assign" a static dhcp address via MAC for 192.168.1.245

    I looked over the dhcpd server in pfsense and the pool for random ip's went to X.X.X.245

    I changed that to X.X.X.244. Hope this helps

    Anyway here is the lease info for eth0 and thanks for the help!!!

    John J. Senay

    lease {
    interface "eth0";
    fixed-address 192.168.1.245;
    option subnet-mask 255.255.255.0;
    option dhcp-lease-time 7200;
    option routers 192.168.1.1;
    option dhcp-message-type 5;
    option dhcp-server-identifier 192.168.1.1;
    option domain-name-servers 192.168.1.1;
    option domain-name "local";
    renew 5 2008/12/12 00:02:54;
    rebind 5 2008/12/12 00:59:47;
    expire 5 2008/12/12 01:14:47;
    }
     
  4. Bob

    Bob

    Joined:
    Nov 4, 2007
    Messages:
    2,400
    Likes Received:
    1
    Re:Elastix server keeps loosing its IP address dhc

    voipdog,

    First of all I am not a Linux DHCP expert, but there are some general rules that I adhere to.

    One is that for client machines on an internal network, I normally make sure (as does most software / operating systems) that the DHCP Lease Time is 7-8 days. From what I can gather from your DHCP-Lease info, your DHCP lease time is only two hours. Is there a reason for this?

    Issues that can arise is a loss of IP addresses, especially if they do not lapse in time. Fault finding becomes a nightmare as many do not keep a common address, especially if you have a few systems on the network.

    The fact that you have the .245 address in the pool should not be an issue unless you allocated a very small pool, or your 200 or so addresses filled up due to the short lease times and something else grabbed the 245 address. The other issue might be that at night it is the only device on the network, and the pool maxed out. Leaving another PC on the network overnight, you may find a similar issue.

    I have a quick look at PFSense forums about DHCP, and it sounds like they have had problems with DHCP in the past, but have not seen anything recent.

    Anyhow, lets see how things go now you have taken the address out of the Dynamic pool....

    Regards

    Bob
     
  5. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
    Why don't you statix ip. I thinks that would make things easier.

    Regards,

    Rafael
     

Share This Page