Use more than one NIC for LAN

Hi,
i bought a new mini-pc with 4 NICs. I want to use one NIC for WAN and 3 NICs for the same LAN. Is it possible to configure 3 NICs for one LAN in any way?

Multiple interfaces on the same subnet is generally an unsupported configuration. But if you have a managed switch, it’s likely possible to aggregate those NICs together, and configure your switch correspondingly. Though really, the better solution is to just use a single, faster (e.g., 10 GbE) NIC.

Maybe this can help, but i did not have tested it out in nethserver.

Actually i only did this (or something like this) in a Microsoft enviroment.

Thats a pitty. My plan was to save a network switch. Maybe I should use pfsense as firewall than and a Nethserver behind it.

Ah, then you want a bridge. Yes, CentOS will let you configure that too–but whether NS will overwrite it I don’t know.

Remember back in the day when E-smith/SME Server by default came with the ‘NIC Bonding option’?

@LayLow

NIC BONDING has nothing to do with misusing a Server as a Switch…

:slight_smile:

My 2 cents
Andy

Bridges are supported:
https://docs.nethserver.org/en/v7/base_system2.html#logical-interfaces

@Takato you have to add a logical interface, role green, type bridge, assign the 3 ethernet cards and IP address. That’s all.

2 Likes

I can’t tell from the original question :wink: Anyway, multiple NIC’s on same LAN (Green) is not supported by default I believe.

I tried it with a Bridge Lan in the first place but than i got only a connection on one of the LAN Ports. I bridge ens34 40 and 41 but the only Port that is working is ens40

Andy_Wismer:
misusing a Server as a Switch…

My plan is to use one VM as a Router/Firewall and an other VM for Nextcloud and co. But that seems to be not possible…

Show the output of brctl <name_of_the bridge>.
Also ethtool ensXX for every interface.

1 Like
Settings for ens34:
        Supported ports: [ TP ]
        Supported link modes:   1000baseT/Full
                                10000baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: No
        Supported FEC modes: Not reported
        Advertised link modes:  Not reported
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Advertised FEC modes: Not reported
        Speed: 10000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: off
        MDI-X: Unknown
        Supports Wake-on: uag
        Wake-on: d
        Link detected: yes
Settings for ens40:
        Supported ports: [ TP ]
        Supported link modes:   1000baseT/Full
                                10000baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: No
        Supported FEC modes: Not reported
        Advertised link modes:  Not reported
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Advertised FEC modes: Not reported
        Speed: 10000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: off
        MDI-X: Unknown
        Supports Wake-on: uag
        Wake-on: d
        Link detected: yes
Settings for ens41:
        Supported ports: [ TP ]
        Supported link modes:   1000baseT/Full
                                10000baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: No
        Supported FEC modes: Not reported
        Advertised link modes:  Not reported
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Advertised FEC modes: Not reported
        Speed: 10000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: off
        MDI-X: Unknown
        Supports Wake-on: uag
        Wake-on: d
        Link detected: yes
brctl show
	bridge name     bridge id               STP enabled     interfaces
	br0             8000.000c290a3001       no              ens34
															ens40
															ens41

The bridge is configured correctly. We don’t have enough details to investigate further.