Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Two Ethernet Connections

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
microsvcBob
Posts: 5
Joined: 2024-01-03 13:32
Has thanked: 1 time

Two Ethernet Connections

#1 Post by microsvcBob »

Debian installed on a device with 2 ethernet connections. Debian is only showing one, not both.
The LEDs for the hardware are on, showing a connection for Ethernet 2.
How do I get Ethernet 2 to work?

~Bob

lindi
Debian Developer
Debian Developer
Posts: 452
Joined: 2022-07-12 14:10
Has thanked: 1 time
Been thanked: 88 times

Re: Two Ethernet Connections

#2 Post by lindi »

What do you see with

Code: Select all

lspci
and

Code: Select all

ip address
commands?

arzgi
Posts: 1198
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 32 times

Re: Two Ethernet Connections

#3 Post by arzgi »

What are you trying to achieve? Linux normally uses the first network it finds, if not otherwise directed. To get load balancing or other more sophisticated functions, you need additional software.

CwF
Global Moderator
Global Moderator
Posts: 2720
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 201 times

Re: Two Ethernet Connections

#4 Post by CwF »

simple check

Code: Select all

$ ls /sys/class/net
should list all enumerated interfaces

Code: Select all

$ cat /sys/class/net/*/address 
will list successful 'up' interface ip's.

microsvcBob
Posts: 5
Joined: 2024-01-03 13:32
Has thanked: 1 time

Re: Two Ethernet Connections

#5 Post by microsvcBob »

lindi wrote: 2024-02-24 20:05 What do you see with

Code: Select all

lspci
and

Code: Select all

ip address
commands?
lspci
Shows all my PCI devices. The Ethernet connections are not listed.

ip address

Code: Select all

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp5s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:14:5e:2a:75:32 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.8/24 brd 192.168.0.255 scope global noprefixroute enp5s0
       valid_lft forever preferred_lft forever
    inet6 fe80::3ab:2f27:89e4:451c/64 scope link noprefixroute
       valid_lft forever preferred_lft forever
3: enp6s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:14:5e:2a:75:33 brd ff:ff:ff:ff:ff:ff

microsvcBob
Posts: 5
Joined: 2024-01-03 13:32
Has thanked: 1 time

Re: Two Ethernet Connections

#6 Post by microsvcBob »

CwF wrote: 2024-02-25 16:37 simple check

Code: Select all

$ ls /sys/class/net
should list all enumerated interfaces

Code: Select all

$ cat /sys/class/net/*/address 
will list successful 'up' interface ip's.
ls /sys/class/net

Code: Select all

enp5s0  enp6s0  lo
cat /sys/class/net/*/address

Code: Select all

00:14:5e:2a:75:32
00:14:5e:2a:75:33
00:00:00:00:00:00

User avatar
fabien
Forum Helper
Forum Helper
Posts: 689
Joined: 2019-12-03 12:51
Location: Anarres (Toulouse, France actually)
Has thanked: 62 times
Been thanked: 161 times

Re: Two Ethernet Connections

#7 Post by fabien »

Please use code tags for terminal outputs. I did it for your in the above posts.

CwF
Global Moderator
Global Moderator
Posts: 2720
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 201 times

Re: Two Ethernet Connections

#8 Post by CwF »

CwF wrote: 2024-02-25 16:37

Code: Select all

$ cat /sys/class/net/*/address 
will list successful 'up' interface ip's.
So what was I thinking? that's the MAC's...

anyway, maybe they are usb, so lsusb.

In any case, they're both there.

Post Reply