select incorrect network interface on ubuntu 20.04.3
jakane opened this issue · comments
John Kane commented
I have a lot of interfaces (mostly virtual) on my machine. I expect eno1
to be selected (that is the physical interface), however toptop selects a virtual interface (vethacf3bfc in this case).
I would really like to define an environment variable (tiptop_net) or command-line flag (--net) to force election of an interface.
$ cat /proc/net/dev
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
vethacf3bfc: 316700731 24655 0 0 0 0 0 0 2113849936 343113 0 0 0 0 0 0
br-d266d89317cd: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
veth55c75e0: 661706604 113223 0 0 0 0 0 0 117348026 587397 0 0 0 0 0 0
eno1: 3797543484664 4400450459 0 1088 0 0 0 10788249 3567014262499 4196462622 0 0 0 0 0 0
br-7360eb7107c1: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
br-d97c504c507d: 660121482 113223 0 0 0 0 0 0 117348026 587397 0 0 0 0 0 0
lo: 7349578962 29952387 0 0 0 0 0 0 7349578962 29952387 0 0 0 0 0 0
docker0: 316666568 26044 0 0 0 0 0 0 2114125269 344828 0 0 0 0 0 0
veth49c7311: 952073846 304906 0 0 0 0 0 0 152216565 851237 0 0 0 0 0 0
br-867b3a9015a7: 947805162 304906 0 0 0 0 0 0 152216565 851237 0 0 0 0 0 0
br-6b911ca9bb3d: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
br-31b870ab3794: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
zeki893 commented
On mine it selects pxe0
Nico Schlömer commented
You can now manually pick your interface with --net
/-n
.