[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: where to look in logs





On Mon, Sep 30, 2019 at 5:02 PM Greg Wooledge <wooledg@eeg.ccf.org> wrote:
> On Mon, Sep 30, 2019 at 4:06 PM Greg Wooledge <wooledg@eeg.ccf.org> wrote:
> > If you're using systemd, and if you set up the service as a systemd unit,
> > then you want "systemctl status yourservice" or "journalctl -u
> > yourservice".

On Mon, Sep 30, 2019 at 04:57:54PM -0400, yoda woya wrote:
> I used this sudo systemctl enable udhcpd.service
>
> But it is not working

Your text goes BELOW the text that you're quoting.  We read from top
to bottom.

So, in your case, you want to run one or both of:

systemctl status udhcpd.service
journalctl -u udhcpd.service


OK so I got the service to work on boot but for some reason I cannot understand it says the interface is not available when it is.   Oddly I can restart the service and udhcpd works fine.  Any ideas on how to make this work at boot.  Thanks in advance for all your help.

Here is the udhcpd status 

Oct 01 11:12:56 nat6pub systemd[1]: Starting LSB: Start busybox udhcpd at boot time...
Oct 01 11:12:56 nat6pub udhcpd[656]: Starting very small Busybox based DHCP server: udhcpd.
Oct 01 11:12:56 nat6pub systemd[1]: Started LSB: Start busybox udhcpd at boot time.
Oct 01 11:12:56 nat6pub udhcpd[674]: started, v1.30.1
Oct 01 11:12:56 nat6pub udhcpd[674]: is interface ens1f0 up and configured?: Cannot assign requested address

Here is the link status:
 ens1f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000

Here is the interface configuration

# The private network interface
allow-auto ens1f0
iface ens1f0 inet static
        address 192.168.176.6
        netmask 255.255.240.0
        newtork 192.168.176.0
        broadcast 128.59.183.255
        # dns-* options are implemented by the resolvconf package, if installed
        #dns-nameservers
 

Reply to: