Answer the question
In order to leave comments, you need to log in
How to use two network cards at the same time?
I have two network cards:
enp4s0f1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.180 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::2b14:8e31:6d4b:d724 prefixlen 64 scopeid 0x20<link>
ether a8:1e:84:8c:fb:38 txqueuelen 1000 (Ethernet)
RX packets 2352125 bytes 3392624997 (3.3 GB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 885625 bytes 61615312 (61.6 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Локальная петля (Loopback))
RX packets 3142 bytes 300770 (300.7 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3142 bytes 300770 (300.7 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.117 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::83ef:eb3d:58c0:8c3c prefixlen 64 scopeid 0x20<link>
ether 3c:a0:67:fa:be:8d txqueuelen 1000 (Ethernet)
RX packets 945335 bytes 1230791402 (1.2 GB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 178906 bytes 23943428 (23.9 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
auto enp4s0f1
iface enp4s0f1 inet dhcp
auto wlp3s0
iface wlp3s0 inet static
address 192.168.1.117
netmask 255.255.255.0
Answer the question
In order to leave comments, you need to log in
The right question contains the answer.
What do you mean "use two network cards at the same time"?
What do you want from them?
First, it would be good to decide on which interface the traffic will go to the gateway. Then - consider whether it turns out that the response to the packet through one interface will leave through the second - in many distributions this behavior is not handled by default.
Wired and wireless cannot be combined into one bond. That is, it is possible, but it will work poorly, a lot of incomprehensible glitches.
If addresses from the same subnet are simply registered, then only one interface will be used, as a rule, the one that rose last.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question