all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* networking service problem with static address
@ 2023-08-02 19:08 Marco van Hulten
  0 siblings, 0 replies; only message in thread
From: Marco van Hulten @ 2023-08-02 19:08 UTC (permalink / raw)
  To: help-guix

Hi all,

Sometimes my ethernet interface was not configured at boot.  I do not
know where the problem lies, but I decided to try a static address:

                   (service static-networking-service-type
                            (list (static-networking
                                    (addresses
                                      (list (network-address
                                              (device "enp0s25")
                                              (value "192.168.0.7/16"))))
                                    (routes   
                                      (list (network-route
                                              (destination "default")
                                              (gateway "192.168.0.11"))))
                                    (name-servers '("192.168.0.11")))))

Before this, I used dynamic:

                   (service dhcp-client-service-type)

With a static address the interface always comes up configured, at least
so far. (So, at some time, I should check cabling, the DHCP daemon &c.)

But now cups does not always start at boot, so I try to restart:

root@graviton ~# herd start cups
Exception caught while starting networking: (%exception #<&netlink-response-error errno: 17>)
Service cups depends on networking.
herd: error: failed to start service cups
root@graviton ~# herd start networking
herd: error: exception caught while executing 'start' on service 'networking':
Throw to key `%exception' with args `("#<&netlink-response-error errno: 17>")'.

Should 'networking' not be running when using a static IP?

As another work-around, could I tell the system that cups does not need
the 'networking' dependency?

Here is my cups service config; this is unchanged.

                  (service cups-service-type
                            (cups-configuration
                              (web-interface? #t)
                              (extensions
                                (list cups-filters foomatic-filters hplip-minimal))))

—Marco


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-02 19:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-02 19:08 networking service problem with static address Marco van Hulten

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.