DHCP is it working

I instaleld DHCP on ASL. I got an IP from my DSL provider but after nearly two weeks I have not seen a change in the /etc/dhcpc/dhcpcd-eth1.info file. should i see a change in this file or at least shouldn't the date and time change.

I know my provider release IPs every week on sunday. and if I never turn off my system I always get the same address.
  • I've had the same IP from my cable provider for serveral months now.  If your internet connection works, don't worry about it.  If your connection stops working, well then...
  • I understand that if its working I'm OK but if my power goes out and then my ups dies I may get new IP after a few hours. I need to make sure update is working so my vpn, and mail keep working.
  • For well over two years, dhcpc has gotten me the same IP for my cable modem NIC, through several gateway/firewall distributions, and even when the ISP changed out a Hybrid for a 3Com modem.  Your DSL ISP may work differently, but from what I can gather, a "permanent" IP is the case with most broadband ISPs. 

    I'm no expert but....

    1) If you just want to see if you can renew your IP, you should be able to ssh to your Astaro box using Putty or something like it, and if you know the Astaro syntax, ifconfig your NIC down and up to release/renew your IP. The syntax in Rehat type distributions is ifconfig eth# down ifconfig eth# up; I believe this syntax is global for linux, but I'm not positive; perhaps someone could enlighten us on this. 

    2) It probably would be simpler, and would better simulate a power/UPS failure, to do a restart in Webmin, unless it would be too difficult to hook up a keyboard and monitor in case something goes wrong with the restart.  This would check your whole setup.

    Good luck.
  • Every time I reboot I get the same IP and non of the dhcpc-eth#.info files ever vhange date and time.

    My ISP releases every 7 days. I would like to make dhcp work release and renew every four hours so I can set this up with COX cable that releases every 4 hours.

    I am going to try to set up a cron to do this. any help would be great because I can't bring the box down for very long
  • I'd be very interested in the automatic release and renewal as well. The only way I know when my ISP has changed my IP, is when my ASL connection stops working and I reboot (bringing dhcp startup into play again).

    In a related issue, is there an easy way (with a new home IP) I can re-enable port 443 access to another ASL box that is expecting my old IP (without putting in ANY as having WebAdmin access) ?

    TIA,

    Mike
  • All

    I have writen a script that might be helpful.  I have not tested execpt on my ASL.  I am running the beta version 2.100 with the DHCP client files from the attic.

    Thsi script can be launched from a cron job, when run it checks to see if the IP address in your lease file is the same as the firewall config.  It it is the script exists, if a change has occured then the script will update the ASL config files.  

    If interested let me know.

    Craig   [:)]
  • Craig -


    I had a chance on the weekend to test your setup. It seems to work fine on 2.022, thanks for your help !


    Mike
       [:)]

    [ 26 February 2002: Message edited by: mcunningham ]

  • quote:
    Originally posted by lanman:
    I instaleld DHCP on ASL. 


    I just installed Astaro 2.016.  

    I have cable internet, and my provider sets me up with an IP through DHCP. 

    So I need to install DHCP, but I do not have a clue on how to do it.  

    Any help will be very much appreciated!  

    thanks,

    JT