Two Ethernet Adapters/Interfaces on Debian 12

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
rand0user
Posts: 2
Joined: 2024-12-04 21:15

Two Ethernet Adapters/Interfaces on Debian 12

#1 Post by rand0user »

Debian 12

I have a gigabyte AMD motherboard with onboard lan. I added a 10Gb SFP+ PCI-E Network Card to the computer. I have two networks, LAN w/ VPN and naked LAN.

When both ports are unplugged and I plug in ONE cat5 cable, I get the right IP address (whichever cable I plug in). But when I plug in the 2nd cable, an IP address doesn't pull up on the interface. It shows the cable plugged in broadcasting but doesn't get an address. I installed broadcom-sta-dkms for the nic card driver. Both eth work, both cables work and both networks are online.

How do I get both interfaces working at the same time?

Thanks

arzgi
Posts: 1614
Joined: 2008-02-21 17:03
Location: Finland
Has thanked: 1 time
Been thanked: 85 times

Re: Two Ethernet Adapters/Interfaces on Debian 12

#2 Post by arzgi »

If you use network manager, it does not enable two network interfaces at the same time. Network manager is not mandatory, I have never used that. So your scenario is possible, but your network interfaces can not be in the same network, which you seem to try.

rand0user
Posts: 2
Joined: 2024-12-04 21:15

Re: Two Ethernet Adapters/Interfaces on Debian 12

#3 Post by rand0user »

Is there a way to override and enable them? is there another service that can do this?

thanks

Aki
Global Moderator
Global Moderator
Posts: 4057
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 113 times
Been thanked: 535 times

Re: Two Ethernet Adapters/Interfaces on Debian 12

#4 Post by Aki »

Hello @rand0user,

Please describe:
  • what is the network connection you want to configure using the two network cards
  • what are the existing networks you want to connect and their topology
  • how the current network hardware is recognized by debian; you can use the command (the inxi program must be installed):

    Code: Select all

    $ inxi -n
    
Hope this helps.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

rand0user
Posts: 2
Joined: 2024-12-04 21:15

Re: Two Ethernet Adapters/Interfaces on Debian 12

#5 Post by rand0user »

I have a NIC with two SFP+ slots. the motherboard also has onboard lan. I have an network router operating a lan with vpn. But before that there is a cable router. I want to be able to go from the cable modem (that has a lan without vpn) into the tower operating as a server and host my nextcloud, searx and some other stuff so I can access it remotely with DDNS and DMZ.

I need to bring up two interfaces, one for outgoing traffic and one for hosting traffic. are there other network managers that can bring up two interfaces? it looks like ifupdown is one of the solutions according to grok. we'll see

thanks in advanced.
Last edited by rand0user on 2024-12-17 01:23, edited 1 time in total.

Aki
Global Moderator
Global Moderator
Posts: 4057
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 113 times
Been thanked: 535 times

Re: Two Ethernet Adapters/Interfaces on Debian 12

#6 Post by Aki »

Hello,
rand0user wrote: 2024-12-17 01:17 I have an network router operating a lan with vpn. But before that there is a cable router. I want to be able to go from the cable modem (that has a lan without vpn) into the tower operating as a server and host my nextcloud, searx and some other stuff so I can access it remotely with DDNS and DMZ
I am assuming that the multiple topics quoted above are not part of the current discussion.
rand0user wrote: 2024-12-17 01:17 [..] can bring up two interfaces? it looks like ifupdown is one of the solutions [..]
The ifupdown package should be able to do it [1].

You need to know the network configuration parameters (interface IP address, netmask, gateway IP address, dns-nameservers IP address) for the two network interfaces to set up manually the configuration file named /etc/network/interfaces . The networks connected to the two network interfaces must be independent, of course.

--
[1] https://wiki.debian.org/NetworkConfiguration
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

CwF
Global Moderator
Global Moderator
Posts: 3140
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 63 times
Been thanked: 268 times

Re: Two Ethernet Adapters/Interfaces on Debian 12

#7 Post by CwF »

rand0user wrote: 2024-12-04 21:36 How do I get both interfaces working at the same time?
If both connect to the same external dhcp server then the simple answer is to segregate the task/interface/OS with virtual machines. That would be far simpler and more reliable than trying to segregate process per interface within a single OS.
Mottainai

Post Reply