help-guix
[Top][All Lists]
Advanced

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

Re: Setting up multiple NICs


From: Oleg Pykhalov
Subject: Re: Setting up multiple NICs
Date: Wed, 29 Nov 2023 10:39:05 +0300
User-agent: Gnus/5.13 (Gnus v5.13)

Lars Rustand <rustand.lars@gmail.com> writes:

[…]

> Sure, this is what I have at the moment:
>
>      (service static-networking-service-type
>               (list (static-networking
>                      (links
>                       (list 
>                             ;; ...
>                             (network-link
>                              (name "management")
>                              (type 'vlan)
>                              (arguments '((id . 2)
>                                           (link . "enp4s0f1"))))))
>                      (addresses
>                       (list (network-address
>                              (device "enp2s0")
>                              (value "192.168.10.2/24"))
>                             ;; ...
>                             (network-address
>                              (device "management@enp4s0f1")
>                              (value "192.168.0.2/24")))))))

I think this "management@enp4s0f1" syntax is not what is expected by the
configuration.


You mentioned that you tried a development version manual.  Did you try
configuration similar to the example in that manual?

    https://guix.gnu.org/en/manual/devel/pt-br/html_node/Networking-Setup.html

--8<---------------cut here---------------start------------->8---
(static-networking
 (links (list (network-link
               (name "bond0")
               (type 'bond)
               (arguments '((mode . "802.3ad")
                            (miimon . 100)
                            (lacp-active . "on")
                            (lacp-rate . "fast"))))

              (network-link
               (mac-address "98:11:22:33:44:55")
               (arguments '((master . "bond0"))))

              (network-link
               (mac-address "98:11:22:33:44:56")
               (arguments '((master . "bond0"))))

              (network-link
               (name "bond0.1055")
               (type 'vlan)
               (arguments '((id . 1055)
                            (link . "bond0"))))))
 (addresses (list (network-address
                   (value "192.168.1.4/24")
                   (device "bond0.1055")))))
--8<---------------cut here---------------end--------------->8---

So your configuration would be like:
--8<---------------cut here---------------start------------->8---
(service static-networking-service-type
         (list (static-networking
                (links
                 (list (network-link
                        (name "enp4s0f1.3")
                        (type 'vlan)
                        (arguments '((id . 3)
                                     (link . "enp4s0f1"))))
                       (network-link
                        (name "enp4s0f1.4")
                        (type 'vlan)
                        (arguments '((id . 4)
                                     (link . "enp4s0f1"))))
                       (network-link
                        (name "enp4s0f1.5")
                        (type 'vlan)
                        (arguments '((id . 5)
                                     (link . "enp4s0f1"))))
                       (network-link
                        (name "enp4s0f1.6")
                        (type 'vlan)
                        (arguments '((id . 6)
                                     (link . "enp4s0f1"))))
                       (network-link
                        (name "enp4s0f1.2")
                        (type 'vlan)
                        (arguments '((id . 2)
                                     (link . "enp4s0f1"))))))
                (addresses
                 (list (network-address
                        (device "enp2s0")
                        (value "192.168.10.2/24"))
                       (network-address
                        (device "enp4s0f1.3")
                        (value "10.0.3.1/24"))
                       (network-address
                        (device "enp4s0f1.4")
                        (value "10.0.4.1/24"))
                       (network-address
                        (device "enp4s0f1.5")
                        (value "10.0.5.1/24"))
                       (network-address
                        (device "enp4s0f1.6")
                        (value "10.0.6.1/24"))
                       (network-address
                        (device "enp4s0f1.2")
                        (value "192.168.0.2/24")))))))
--8<---------------cut here---------------end--------------->8---

Also, may try without ‘(network-address (device "enp2s0") (value
"192.168.10.2/24"))’ block.

[…]


Regards,
Oleg.

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]