help-guix
[Top][All Lists]
Advanced

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

Re: Setting up multiple NICs


From: Lars Rustand
Subject: Re: Setting up multiple NICs
Date: Wed, 29 Nov 2023 09:38:17 +0100

On 23/11/29 10:39AM, Oleg Pykhalov wrote:
> I think this "management@enp4s0f1" syntax is not what is expected by the
> configuration.

I think this is the normal naming convention used for VLAN interfaces, at least
in normal distros. It is also what the interface gets named in the output of
`ip link` when I create a `network-link` called "management".

> 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---

Yes, that is the example I have based my config on.

> 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---

Thanks, I tried that but it gave the same type of error. When trying to start
the networking service I get an error "#<&netlink-response-error errno: 17>",
which, from what I can tell, means file exists.

I think it might have problems creating multiple VLAN interfaces on the same NIC
for some reason.

Also, when using your config above, only one of the VLAN interfaces are created,
and it is named "enp4s0f1.3@enp4s0f1" in the output of `ip link`.

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

I can't do that, since this is the interface I use to log in to the machine.
And, this part is actually working, so there should be no reason to remove it.

Attachment: signature.asc
Description: PGP signature


reply via email to

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