Questions tagged [network-interface]

hardware (or its representation by software) that connects a computing device (host) to a computer network (net)

Filter by
Sorted by
Tagged with
63 votes
4 answers
85k views

Bind unix program to specific network interface

Question: How do I launch a program while ensuring that its network access is bound via a specific network interface? Case: I want to access two distinct machines with the same IP (192.168.1.1), but ...
Skeen's user avatar
  • 1,021
107 votes
3 answers
278k views

How can I create a virtual ethernet interface on a machine without a physical adapter?

I have a Dell XPS 13 ultrabook which has a wifi nic, but no physical ethernet nic (wlan0, but no eth0). I need to create a virtual adapter for using Vagrant with NFS, but am finding that the typical ...
STW's user avatar
  • 2,271
23 votes
3 answers
66k views

What does eno mean in network interface name 'eno16777736' for CentOS 7 or RHEL 7?

Under consistent network device naming scheme, what does 'eno' stand for in network interface name eno16777736 for CentOS 7 or RHEL 7?
Andy Huang's user avatar
12 votes
2 answers
17k views

The difference between ip link down and physical link absence

In Linux, is there any difference between after-ip link down-condition and real link absence (e.g. the switch's port burned down, or someone tripped over a wire). By difference I mean some signs in ...
red0ct's user avatar
  • 655
4 votes
2 answers
3k views

Debian workaround 838871: dhcp network configuration without blocking boot process

Is there a workaround for Debian Bug #838871? Problem: I want to have a network configuration on Debian with the following properties: Automatically ifup network interface when a cable is plugged in ...
838871's user avatar
  • 43
67 votes
3 answers
111k views

iptables redirect outside requests to 127.0.0.1

I have a service running on 127.0.0.1 with port 2222. I need to forward all requests to 192.168.2.2:2222 (outside IP) only from subnet 192.168.1.0/24 to 127.0.0.1:2222. I'm trying to use this, but it'...
SimWhite's user avatar
  • 795
28 votes
2 answers
86k views

What is a hotplug event from the interface?

According to Debian Network setup document allow-hotplug <interface_name> stanza in /etc/network/interfaces file starts an interface when the kernel detects a hotplug event from the interface. ...
Martin's user avatar
  • 7,556
18 votes
3 answers
97k views

Change Mac Address permanently inside /etc/network/interfaces

QUESTION: How might I be able to specifically change the Mac Address of the enp3s0 and wlp2s0 interfaces through the /etc/network/interfaces file? What code would I have to include inside? I have ...
Webeng's user avatar
  • 423
17 votes
2 answers
55k views

Difference between ppp0 vs wwan0

I am Running Raspian on a RaspberryPi. When I plug in a GSM modem I see two interfaces - wwan0 & ppp0. wwan0 exists even when the GSM modem is plugged but not connected ppp0 exists only when ...
OneGuyInDc's user avatar
9 votes
2 answers
20k views

How does the loopback interface work

there are strange things: on my virtualbox: centos7 Interfaces: enp0s3: 192.168.10.110/24 lo:0 10.0.3.110/24 (ip alias) route: default via 10.0.3.2 dev lo 192.168.10.0/24 dev enp0s3 enp0s3 is ...
godcrying's user avatar
7 votes
3 answers
17k views

Creating eth0 with consistent network device naming

From my understanding, Arch Linux uses Consistent Network Device Naming where the network devices are no longer named eth0, eth1, etc. I use the proprietary MATLAB software which requires a device ...
StrongBad's user avatar
  • 5,271
6 votes
1 answer
4k views

WiFi not working Kubuntu 20.04 - Intel 8265 Network Interface

I have a problem with my WiFi card on Kubuntu. Sometimes the system doesn't recognise it, but what is strange is that it doesn't happen everytime, but just about one boot on four, and I can't ...
Bernard Borio's user avatar
3 votes
1 answer
3k views

What are these unexpected network devices which appear in kernel log?

I have enp7s0 (ethernet) and wlp5s0 (wifi) that I've been using, but there's some other network interfaces that I don't recognise that keep showing periodically in dmesg. What are they, and how can I ...
Kokizzu's user avatar
  • 9,719
24 votes
6 answers
86k views

How can I make changes to the network routing metric permanently

I'm able change my network routing metrics with ifmetric, for example ifmetric enp0s3 1. Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 ...
marathon's user avatar
  • 943
23 votes
6 answers
55k views

How can I tell whether a network interface is physical (device) or virtual (alias)?

I have a small home router running OpenWrt (Kind of embedded Linux for routers). It has five Ethernet ports, one labeled WAN and four labeld LAN 1 to 4. It has the following Network Interfaces defined ...
Lumi's user avatar
  • 762
19 votes
6 answers
74k views

How can I show the old eth0 names and also rename network interfaces in debian 9 stretch?

I would like to do 2 things: 1) Revert back the interfaces to the old classic name: eth0 instead of ens33. 2) Rename the interfaces in the way I want so that for example I can call interface eth0 ...
user3450548's user avatar
  • 2,932
16 votes
7 answers
16k views

Naming convention standard for Ethernet and Wi-Fi interfaces on Linux machines

What is the naming convention standard for Ethernet and Wi-Fi interfaces on a Linux machine? We are developing a tool that should show only the Ethernet and Wi-Fi interfaces of the Linux machine and ...
Mohan Raj's user avatar
  • 161
14 votes
3 answers
41k views

changing the names of network interfaces, debian wheezy

I'm trying to set a name for an interface, "ethLan" instead of eth0. Doing so also ensures that the if's name will remain consistent at every reboot and kernel. I did find some articles in the ...
user's user avatar
  • 141
9 votes
3 answers
5k views

FreeBSD cannot use WiFi with BCM4360 on MacBook Air

I've installed FreeBSD 11.0 on my MacBook Air (13-inch, Early 2015). However, when configuring the network, no list of network interfaces is shown to me. Instead, I was brought to the Choose IPv4 ...
nalzok's user avatar
  • 369
8 votes
3 answers
46k views

Intel Ethernet Connection I219-V not working under Linux on an ASUSPRO B laptop, e1000e driver reports: "The NVM Checksum Is Not Valid"

I have a problem with an ASUSPRO B8430UA laptop: when I boot it with Ubuntu 16.04 (or NixOS 16.03) the Ethernet port does not work. The driver used is e1000e, it reports: $ dmesg | grep e1000e [ ...
Alexey's user avatar
  • 1,988
7 votes
1 answer
16k views

Create Network Interface from SSH Tunnel

To route your network traffic through SSH, most people would tell you to pass the -D option to create a SOCKS proxy on localhost that you can configure your applications to use. However, a simple ...
Billy's user avatar
  • 665
6 votes
2 answers
7k views

Wifi not working in debian 8.9 having RTL8723de driver ([10ec:d723])

Please help me to make my wifi working. I was working on this for last two weeks and tried many workarounds. Now I have freshly reinstalled Debian and ready to start from the beginning. Below are the ...
Sreejith's user avatar
  • 159
6 votes
1 answer
21k views

How does iptable work with linux bridge?

Setup: VM1 --- Bridge -- VM2 VM1 and 2 are on same subnet. Bridge has 2 interfaces added to brctl bridge. When I block VM2 ip using uptables -A FORWARD -s (VM1 ip) -j DENY it doesn't work. I ...
user415612's user avatar
5 votes
1 answer
15k views

rtl8821ae Wifi driver

I've been having problems with my wifi connection (rtl8821ae driver). I can stay connected for hours (as long as 6 hours) and then sometimes it just crashes and doesn't work on reboot. I have to wait ...
sugarraysam's user avatar
3 votes
2 answers
7k views

CentOS 7 DHCP Client - How to use "classless-static-routes" ("code 121")?

According to this answer... https://unix.stackexchange.com/a/457577/61742 ... I can use the following configuration to use pushed routes from my DHCP server in my DHCP client by placing in the /etc/...
Eduardo Lucio's user avatar
3 votes
0 answers
86 views

How is it possible to send ping to all 127.0.0.0/8 successfully? [duplicate]

I have some wonders about 127.0.0.0/8 network and have 2 question about it. Firstly, why 127.0.0.0/8 is not considered as private network? I wonder this because wiki page does not mention about it. ...
ibrahim's user avatar
  • 1,087
2 votes
1 answer
5k views

Can jumbo frames - MTU=9000 be set on VM machines?

We have a hadoop cluster; some of the machines in the cluster are VM machines and all others are physical machines. According to documentation, it is better to set MTU=9000 on all machines, but I am ...
yael's user avatar
  • 13.2k
1 vote
1 answer
37 views

Use parrent attribute "serial" in UDEV configuration to assign lan interface another name instead of relying on the mac address

Given this kernel problem awaiting to be fixed and that randomly assign mac address to this usb3 lan adapters: Debian 12 - All of sudden my USB3 Lan adapter get assigned random mac address each reboot ...
user3450548's user avatar
  • 2,932
1 vote
1 answer
2k views

setting up static ip

I tried setting up a static ip on my ubuntu 16.04 system using this guide so I bought a network card since my motherboard's ethernet port is broken but when i enter sudo nano /etc/network/interfaces ...
paranormal brotivity's user avatar
1 vote
1 answer
379 views

ip address "@" (at) in output

I'm having hard time reading the output of ip a command. Normally it prints something like this: 3: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UP ...
lakier's user avatar
  • 376
0 votes
1 answer
2k views

Wi-Fi adapter not showing any IPv4 address in Kali Linux [closed]

I have bought an Alfa AWUS036NH and I think I have set it up properly but when I type ifconfig while running Kali Linux, there is no device showing an IPv4 address. Output: eth0: flags=4163<UP,...
wrench's user avatar
  • 1
0 votes
0 answers
244 views

When does an IP address not need to be assigned to a network interface?

ping 127.0.0.2 can receives response. $ ping 127.0.0.2 PING 127.0.0.2 (127.0.0.2) 56(84) bytes of data. 64 bytes from 127.0.0.2: icmp_seq=1 ttl=64 time=0.068 ms 64 bytes from 127.0.0.2: icmp_seq=2 ...
Tim's user avatar
  • 102k
0 votes
1 answer
916 views

Network manager goes bad after hot unplugging an external usb wifi adapter

While my Lubuntu 18.04 is connected to a wifi network via an external wifi adapter, I hot unplug the external wifi adapter. Symptoms of the problem: When I plug the external wifi adapter back to my ...
Tim's user avatar
  • 102k
0 votes
1 answer
16 views

Use usb path of an usb nic address in udev rules in order to assign an interface name instead of mac address

Related to: Debian 12 - All of sudden my USB3 Lan adapter get assigned random mac address each reboot Use parrent attribute "serial" in UDEV configuration to assign lan interface another ...
user3450548's user avatar
  • 2,932
-1 votes
1 answer
654 views

why such behavior in Linux Network over Loopback Interface

I have one physical interface Ethernet with name eth0 and IP address 192.168.40.50 and a lo(loopback) with 127.0.0.1. After manually down lo using ifconfig lo down command, then I observed that self ...
G Aravind's user avatar
-1 votes
1 answer
632 views

How to cancel the kernel's rename of the Network interface? [duplicate]

I compiled the kernel of Linux 6.4.0 myself and used busybox to create a root file system. I customized my own Linux system and installed it on an embedded board with four network ports, which were ...
just a student's user avatar
49 votes
3 answers
82k views

How can I bridge two interfaces with ip/iproute2?

I know how to create a bridge using brctl, but I have been advised not to use this anymore, and to use iproute2 or ip instead(since brctl is deprecated presumably). Assuming this is good advice, how ...
Totem's user avatar
  • 1,111
32 votes
7 answers
222k views

CentOS 7 - Rename network interface without rebooting

I'm renaming network interfaces by modifying the files in /etc/sysconfig/network-scripts. eth0 -> nic0 eth1 -> nic1 The content of the network scripts looks like this, after modification: # cat /...
udondan's user avatar
  • 513
24 votes
7 answers
153k views

'iwlist' -> interface doesn't support scanning (Ubuntu LTS 10.04)

I am using Ubuntu 10.04 (LTS) on a Samsung N150+ netbook. I cannot scan wifi networks using iwlist and I would like to do so. Here is the output from some tests: alex@alex-laptop:~/Desktop/...
Vass's user avatar
  • 5,381
19 votes
1 answer
121k views

proper syntax to delete default route for a particular interface?

summary: me@client:~$ sudo route del default ppp0 SIOCDELRT: No such process me@client:~$ sudo route del default dev ppp0 SIOCDELRT: No such process me@client:~$ sudo route del -net default dev ppp0 ...
TomRoche's user avatar
  • 1,285
18 votes
2 answers
21k views

How to determine the logical type of a linux network device

with logical I mean everything legal in the command ip link as in, for instance: ip link add link dum0 name dum0.200 type vlan protocol 802.1Q id 200 where the logical type would be "vlan". ...
JdeHaan's user avatar
  • 944
15 votes
2 answers
77k views

How can we create multiple dummy interfaces on Linux?

To Create a Fake Ethernet dummy Interface On Linux we First initialize the dummy interface driver using the below command: /sbin/modprobe dummy. Then we Assign Ethernet Interface alias To Dummy Driver ...
Kushal's user avatar
  • 347
14 votes
1 answer
134k views

How to set up an usb/ethernet interface in Linux?

me@me:~$ sudo /etc/init.d/networking restart [ ok ] Restarting networking (via systemctl): networking.service. me@me:~$ sudo service network-manager restart me@me:~$ sudo ifup eno1 Internet Systems ...
jenny's user avatar
  • 373
13 votes
1 answer
70k views

Interface doesn't go up with ip link set interface up

EDIT A posteriori, the problem was most likely related to the one described here. Original post Until yesterday, Internet was just fine and I connected without much problems. I then disabled the ...
glS's user avatar
  • 806
12 votes
1 answer
23k views

How can I list net work devices and ipv4 address on linux without ifconfig/ip command [duplicate]

I already figured out that on Linux I can list network devices (cd /proc/net/dev_snmp6/ && for device in *; do echo $device; done|sort) but how can I get the ipv4 address of the device? I ...
Mandragor's user avatar
  • 1,060
12 votes
2 answers
23k 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 ...
Jędrzej Dudkiewicz's user avatar
12 votes
1 answer
58k views

How to route between interfaces

I have the following setup: (192.168.4.1) Device A <-------> device B <-------> Device C (192.168.5.84) (192.168.5.1) (192....
Steven's user avatar
  • 151
11 votes
1 answer
12k views

Why is my wlan device being renamed? [duplicate]

This is a selection from my dmesg: rtl8192cu 1-3:1.0 wlx10bef501e1cd: renamed from wlan0 wlx10bef501e1cd: authenticate with 90:94:e4:e7:99:cc wlx10bef501e1cd: send auth to 90:94:e4:e7:99:cc (try 1/3) ...
maja's user avatar
  • 285
10 votes
3 answers
35k views

Making /dev/net/tun available to qemu?

I have created a tap device (tap0) which I would like to provide as a network interface to qemu. I created the device with the following command and attached it to a network bridge I set up: tunctl -...
Nathan Osman's user avatar
  • 6,240
10 votes
5 answers
16k views

Predictable Network Interface Names break vm migration

How do you reset /etc/networking/interfaces when using "predictable network interface names"? Versions of Ubuntu older than 15.10 use network adapter names like: eth0 eth1 eth2 Replacing a ...
spuder's user avatar
  • 18.1k