Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    unable to restart dhcp with CLI

    Scheduled Pinned Locked Moved DHCP and DNS
    1 Posts 1 Posters 69 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      ewok2
      last edited by

      Hello

      I would like to renew my dhcp lease by using external script with ssh (It work fine when I use the HMI).
      But when in a console I try type :

      restartservice dhclient restart em0
      

      I get

      'em0' is not a DHCP-enabled interface
      dhclient already running?  (pid=8209).
      

      my WAN interface is em0 and is configure in dhcp...
      when I do :

      less /var/db/dhclient.leases.em0
      

      I get the informations.

      Any Idea of my probleme?
      thanks

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.