Questions tagged [interface]
The interface tag has no usage guidance.
126
questions
0
votes
0
answers
26
views
Inbound connections fail to connect after initiating OpenVPN connection
There is a cronjob on another box which is reaching out to me every minute;
$ nc -lvnp 80
GET / HTTP/1.1
[snipped for brevity]
I want to eventually relay the traffic over a VPN, so I've connected to ...
0
votes
0
answers
30
views
ALSA - USB Interface - How to choose only one channel
I am currently trying to record audio with ALSA and a USB interface. I am using a focusrite scarlett 4i4 3rd gen and a raspberry pi 4b with linux debian bookwarm installed.
My question is how do I ...
3
votes
1
answer
57
views
Audio playback from assembly language in Unix?
Looking for a simple audio interface for Unix
For fun, I'm learning x86 assembly language by porting an old game. The trickiest part is finding a way to play simple sounds (square waves, mostly). The ...
0
votes
0
answers
58
views
3-Port Network Bridge for Single Pair Ethernet
i have two SPE network Interfaces and want to bridge them to a bridge with both of them + a interface which i can use for my linux environment.
I created a bridge with both interfaces and set them ...
0
votes
1
answer
54
views
How to interpret "functions ... may also be defined as macros"?
For the sake of public record, I'm asking here at SE rather than on the standardization mailing list, so that it'd be more accessible to people.
With practically every headers that specify functions (...
-5
votes
2
answers
47
views
Display the IP addresses of all currently configured interfaces [closed]
Display the IP addresses of all currently configured interfaces. The output should
done in the following format:i
The interface eth0 currently has the IP 192.168.178.22
The interface eth1 currently ...
1
vote
0
answers
317
views
renaming wireless interface
I know I can rename my wireless interface with ip link set name , but when I do other programs won't identify the new name, namely wash, and then if I run iwconfig down I can't get systemctl won't ...
0
votes
0
answers
168
views
Debian name wifi interfaces according to their drivers using udev persistent-net.rules?
Hi I am working on Debian. Would like to name my wifi interfaces according to their driver
modifying /etc/udev/rules.d/90-persistent-net.rules
with:
SUBSYSTEM=="net", ACTION=="add&...
3
votes
1
answer
1k
views
Interface groups
I started to study Linux networking system (especially Ubuntu) lately.
I got interface info by command ip a like this:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group ...
0
votes
1
answer
653
views
nmcli add a route to dev not a next hop
Need to add a static route with nmcli to a device interface.
I would like to mimic a command like this with ip route (traffic sent to the interface NOT a next-hop ip)
ip route add 4.4.0.0/30 dev ens4
...
0
votes
1
answer
31
views
Measure traffic for an interface monthly
I am running a small RPi server in a remote home and I have a simcard with very limited data usage. I would like to have a file that measures cumulatively month by month (starting, for example, from ...
1
vote
1
answer
1k
views
RTNETLINK "file exists" error when attempting to create veth interface that was previously a dummy
Linux Mint 20.2
I used this command to create a dummy ethernet interface called veth0:
sudo ip link add veth0 type dummy
Once finished I removed it with:
sudo ip link delete veth0 type dummy
The ...
1
vote
2
answers
2k
views
Meaning of "default" in "iface default inet dhcp" in interfaces file
My /etc/network/interfaces file contains the line:
iface default inet dhcp
I vaguely remember putting it in there years ago, but I don't remember why I did so.
If I am not mistaken, iface precedes a ...
0
votes
2
answers
5k
views
nmcli - command line means to delete all wifi / wlan0 connections
I'd like to delete all active or inactive Wifi connections on interface wlan0, with the intention of having a known-empty clean slate to set things up. Is this possible?
I was hoping for something ...
0
votes
0
answers
1k
views
How to redo renaming interfaces with 70-persistent-net.rules?
I use Ubuntu 18.04 and renamed the interfaces and want to redo this renaming. I don't want to use the 70-persistent-net.rules for the back renaming.
I delete the content and removed the file with ...
0
votes
0
answers
706
views
I can't state up my interface
sudo ip link
output:
2: wlp1s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN mode DORMANT group default qlen 1000
link/ether 80:c5:f2:81:ca:31 brd ff:ff:ff:ff:ff:ff
sudo ip link ...
2
votes
1
answer
2k
views
Logical Device Name assigned to Physical NIC mapping
I'm looking for a scripted solution that will show which logical network interfaces are mapped to which physical NICs.
That is, if a server has 2+ interfaces and 2+ NICs, how do I know which NIC ...
0
votes
2
answers
5k
views
how can I change the interface ip address in linux without ifconfig command. my current interface and want to change the ip to 192.168.10.100
network:
version:2
renderer :
ethernets:
ens160:
dhcp4: no
dhcp6:
no address: 192.168.10.13/24 gateway4:192.168.10.1
nameservers:
addresses: 142.55.100.25
142.55.44.25
10
votes
2
answers
19k
views
/etc/network/interfaces - difference between auto and allow-hotplug
I am running Debian 9.13. I tried to check what is the difference between auto eth1 and allow-hotplug eth1 in /etc/network/interfaces. I have eth1 networking interface connected via USB. I tried ...
0
votes
0
answers
662
views
Secondary (Virtual) Interface on Same NIC with DHCP
I'm currently working on Buster, but the more portable the solution, the better.
I have a system for which I would like to add a second IP address to the same adapter. The initial IP address is DHCP, ...
4
votes
2
answers
3k
views
Automatic set-up, the network can bus with Ubuntu 20.04
I want to set-up the network of the CAN bus automatically with Ubuntu 20.04.
For other distributions, it is done like this in /etc/network/interfaces:
allow-hotplug can0
iface can0 can static
...
0
votes
1
answer
299
views
What are the key components of a desktop environment?
I'm a relatively new Linux user. I started with Ubuntu 20.04 a few months ago, and eased myself into the experience, learning a bit of the command line and becoming familiar with the system structure
...
0
votes
1
answer
1k
views
How to configure 2 network interfaces which make use of the same physical ethernet port?
I currently have a linux system with only one physical ethernet port. This physical port has the eth0 network interface attached to it. I want to create another ethernet interface which also makes use ...
1
vote
0
answers
662
views
Ubuntu 20.04 problems with interface after installation
I have just installed Ubuntu 20.04 Focal Fossa. After the restart, I found a particular problem with the interface (see figure attached).
I'm a beginner in the use of Ubuntu, I have managed to work ...
0
votes
1
answer
1k
views
Create can0 interface for USB CAN Converter Basic (UCCB) on Arch
I have a USB CAN Converter Basic as described here:
https://ucandevices.github.io/uccb.html
When I plug it into my Arch Linux laptop, dmesg shows the following:
usb 1-6: new full-speed USB device ...
0
votes
1
answer
20
views
My CentOS do not have the brief command vie0
I watch a video, theres has a brief command:
I use vie0, but there do not have this command:
[root@ansible-master ~]# vie0
-bash: vie0: command not found
My CentOS version is: CentOS 7.2
3
votes
1
answer
4k
views
How to change network mask using ip command
I tried to change the network mask using Linux ip command and got confused. Google search doesn't clarify it either. If someone could explain? Say I have interface enp0s31f6 on my Linux machine
rtuser@...
2
votes
1
answer
2k
views
Route traffic between interfaces on same device ( wlan0 to usb0 )
I have a usb0 interface with 10.0.0.1 ip with a router on 10.0.0.2 and unaccessible to internet. I also have a wifi adapter on wlan0 with 192.168.0.3 connected to my router at 192.168.0.1 (this is ...
1
vote
1
answer
1k
views
How to reduce the time of the "networking.service" service?
I have been using linux for some time and I have already learned to adapt to this new operating system so I want to improve some details of my configuration.
Currently the system loads fast, but I see ...
1
vote
0
answers
86
views
How can I switch dinamically the output interface in a router depending on input interface?
I have an Ubuntu 18.04 acting as router with 3 interfaces. Two of them end up in the same device (they are used as dual path since depending on the situation one of the paths can be down or viceversa)....
0
votes
2
answers
2k
views
Send packet on one interface and receive it on another one for testing purposes
I would like to test the DHCP client that I wrote on Ubuntu 16.04.6 LTS. I would like to do it locally on my laptop i.e. send and receive DHCP packets inside.
Here is what I tried:
created two dummy ...
0
votes
1
answer
1k
views
Change interface name
I'm with NetworkManager
I want to change the interface name, what I don't know sure the steps....
First I should know my interface name and mac from it,
ip a
Seconds, set down the interface,
...
5
votes
1
answer
5k
views
dummy interface on linux
I need to create a second separate virtual interface on Linux.
I choose dummy. And do these steps:
$ cat /etc/modules-load.d/dummy.conf
# Load dummy.ko at boot
dummy
$ cat /etc/sysconfig/network-...
0
votes
1
answer
414
views
Traffic into lo vs eth, why might I be seeing only half the traffic on lo compared to eth?
I am forwarding traffic to ports on eth0 and lo.
For the same traffic at the same ports and different ports, when I do a tcpdump and count the packets, for time t, I only see about half the number of ...
0
votes
0
answers
80
views
How to route network traffic through an interface on another host?
I have limited networking knowledge, so please bear with me :)
I have a host that runs a VM that has 2 interfaces (ens33 and crc). My host has an interface (eth0) that is on the same subnet as "ens33"...
0
votes
1
answer
2k
views
How to Combine a Bridge with VLAN over a Bonding and Two Default Gateways
I have a Linux server with three NIC that are connected to a switch (one NIC is the management, two NIC form a LACP bonding). In addition I need to use a VLAN (167), because the switch is configured ...
0
votes
1
answer
1k
views
How to set the interface name in `kickstart.cfg` file?
How to set the interface name in kickstart.cfg file?
We know if we install CentOS system in a Server, there maybe eth0, ens0, ensxxx, eno1 and so on.
I have questions,
Why there will generate ...
1
vote
1
answer
8k
views
Bonding of two NIC does not work/go up
I have a Linux server with two NIC that are connected to a switch (and one NIC for management) and I want to use combine them and use LACP there, but for some unknown reason to me the bonding will ...
5
votes
1
answer
3k
views
Where does ethtool get information from?
When I run the command ethtool -S wlp2s0, I get the following information:
NIC statistics:
rx_packets: 63
rx_bytes: 14163
rx_duplicates: 2
rx_fragments: 58
rx_dropped: 30
...
0
votes
1
answer
80
views
I do not want a debian interface [duplicate]
Today I set up an old portable pc to be a dedicated machine
I have installed debian and at installation process I have chose Cinnamon for graphical interface
Now my system is configured and working ...
-1
votes
1
answer
1k
views
Kali Linux (Kernel 4.19) MT7610u failed to load
I have installed Kali Linux alongside windows 10 on my system all is good except I get the following errors in dmesg every time I boot.
mt76x0 1-1.3:1.0: firmware: failed to load mediatek/mt7610u....
1
vote
0
answers
3k
views
UDP send buffer error in netstat
I we are running voice application which stream UDP (RTP) packets for voice, I am investigation some strange issue where my ifconfig ens4 | grep error counter going up specifically overrun
If you see ...
5
votes
6
answers
4k
views
setting firewall-cmd --permanent is not sticking after reboot
I have two network interfaces: eth0, and p2p1. My default zone is set to public. I would like to permanently set p2p1 to be trusted.
In order the achieve this I run:
sudo firewall-cmd --permanent --...
0
votes
1
answer
248
views
Error running vlc on Redhat Enterprise Linux 7
I have installed vlc using following commands-
#> yum install vlc
#> yum install vlc-core
When i try to run vlc, i am getting the following error-
[0000000001bce288] core demux error: ...
-1
votes
1
answer
9k
views
eth: error fetching interface information: Device not found
I have an ubuntu 18.04 linux server.
Why does the command(ifconfig eth) says Device not found whereas this command(ifconfig eth0) works?
$ ifconfig eth
eth: error fetching interface information: ...
9
votes
1
answer
5k
views
What does "if1@if2" mean in interface name in output of "ip address" command on Ubuntu
What does at sign (@) mean in interface name in output of "ip address" command (or the "ip link" command) on Ubuntu, for example interface name "eth0@if44" in the following output:
root@aafa1fc24a0b:/...
2
votes
1
answer
2k
views
Edit interfaces file in C++
Is there any known API to edit /etc/network/interfaces file?
I've written a piece of code to make the user able to change IP address of the system from the frontend (web interface). I'm modifying the ...
2
votes
1
answer
2k
views
Linux emulate multiple Wifi connections
I have a Linux machine that creates a Wifi hotspot. I need to simulate a few clients connecting to that hotspot and then using that connectiong to talk to a service, through the wlan interface. The ...
1
vote
1
answer
1k
views
How to use different virtual network interfaces for different processes?
The solution to non-virtual network interfaces is here: https://unix.stackexchange.com/a/210992
But the problem is I have multiple IPs on one network interface and I'd like to be able to assign each ...
0
votes
1
answer
336
views
How to interface LCD for new WaRP7 (imx7s-solo)?
I'm trying to interface LCD for my new WaRP (imx7s-solo). (we can found both LCD and WaRP7 here LCD and WaRP7 product) The problem is I can not have enough knowledge to verify my work is right or ...