date
int64
1,220B
1,719B
question_description
stringlengths
28
29.9k
accepted_answer
stringlengths
12
26.4k
question_title
stringlengths
14
159
1,384,222,990,000
I'm unsure if this is hard or software issue but I really need to find out. I was running Windows 8.1 for some time, then swapped to Linux mint with kernel 3.13 which worked fine. I updated kernel to 3.19 without issues. Later I swapped to 4.0. One day, my network stopped working, (eth0) does not matter if I'm docked ...
Networkmanager was the issue. Update helped because it rendered my NM unusable. I just set dhcpaddress through "dhclient eth0" and it worked. So I uninstalled NM and installed wicd, to have a gui. Works like a charm. Advice if u have the same issue: Remove NetworkManager.
Linux network stops functioning after random time (wired)
1,384,222,990,000
Looking for an inexpensive embedded device that contains 2 Ethernet Ports, runs Linux (or some other type of Unix), and is under $50. My main concern is cost. It must be under $50 and have 2 Ethernet ports. It can be a bare circuit board, it doesn't need to be a complete device with cover and all.
http://soekris.com/ Not at the $50 level, but probably what you're looking for in general.
Low Cost, 2 Ethernet Ports & Runs Linux [closed]
1,384,222,990,000
I am using RHEL6, but I could not find the Ethernet interface configuration file ifcfg-eth0 under /etc/sysconfig/network-scripts. Issuing ifconfig -a shows that eth0 does exist. Could it be that the configuration file is hidden or saved in some other directory? If not, could I create such a file in the default directo...
You could find an example in /usr/share/doc*/initscript*, can't remember the exact name, but I'll provide a comprehensive example here: All fields are fairly easy to understand DEVICE=eth0 BOOTPROTO=none ONBOOT=yes NETWORK=10.0.1.0 NETMASK=255.255.255.0 IPADDR=10.0.1.27 Docs here
Where could I find the ifcfg-eth0 file?
1,384,222,990,000
I need to read permanent (burned-in) MAC address of network adapter. Since MAC address can be easily spoofed, I need to read the real one which is written on EEPROM. I need to do it using C++ on Linux. I tried using ethtool which is quite good and works fine. However on some systems it does not work as intented. ethto...
If you trust the local machine not to be spoofing, both ifconfig and ip addr will give you the MAC address of the hardware. If you don't trust the local machine, neither ethtool, ifconfig, nor ip is going to provide you the information you need. Because there are very legitimate reasons for MAC spoofing (for example, ...
ethtool get permanent MAC address returns all 0's
1,384,222,990,000
I'm quite new to Linux networking. I have a Debian PC with two Ethernet interfaces, one embedded on the motherboard and another on a PCI card. The first one, let say eth0 is connected to my router (which is connected to Inet). I want to "link" eth1 to eth0, in order to access my router (and Inet) when I plug a cable i...
You can use a bridge interface. You can use brctl from bridge-utils to create a bridge interface. For example, $ brctl addbr br0 $ brctl addif br0 eth0 eth1 $ brctl show bridge name bridge id STP enabled interfaces br0 8000.00004c9f0bd2 no eth0 ...
Linking Ethernet interfaces
1,384,222,990,000
I changed out a NIC card that was the exact same make and model. The setup process for Ubuntu 11.04 was very seemless and easy so I figured it would be smart enough to setup up the replacement card. However, it gave the replacement card a new name of eth1 where all my scripts make reference to eth0, not to mention e...
Check udev config files. A file like this: /etc/udev/rules.d/70-persistent-net.rules ties the NAME (ethX) to the Mac address. You probably have the old cards MAC tied to eth0. Remove its line and change the new card to eth0.
Replacing identical NIC cards creates eth1 instead of using eth0 in Ubuntu
1,384,222,990,000
I'm following this excellent article to use bridged networking with libvirt and KVM, however there are some fundamental knowledge I'm lacking for me to fully understand/follow it. The article says, No physical interfaces should ever be added to the virbr0 bridge, since it uses NAT to provide connectivity. Virtual in...
A "physical interface" refers to an actual network device on your computer -- that is, something into which you can plug an ethernet cable, or a wireless network device. A "virtual interface" refers to network interfaces that aren't associated with a specific physical device: so, vlan interfaces, bridges, tun/tap inte...
Adding a physical ethernet interface to kvm qemu bridge
1,384,222,990,000
Is it possible to find out the details about Linux cards? For example we tried: dmidecode | grep -i network Function key-initiated network boot is supported Port Type: Network Port Port Type: Network Port Port Type: Network Port Port Type: Network Port # dmidecode | grep...
For getting the brand/model of the network card, usually you run: $ lspci | grep -i Ethernet 02:01.0 Ethernet controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01) Or for getting more detail of the NIC(s): $ sudo lshw -class network *-network description: Etherne...
How to find network card details on RHEL machines
1,384,222,990,000
This time I did not install firmware-linux-nonfree. I opted to avoid it and found that everything is working fine (well, my wireless indicator light doesn't work, but the adaptor does, so it's cool). Anyway, the last call to update-initramfs produced this error: W: Possible missing firmware /lib/firmware/tigon/tg3_tso...
This isn't an error, just a warning. The tg3 module drives many Broadcom chipsets, and needs these firmware files only for BCM5705 TSO, BCM5703/BCM5704 TSO and BCM5701A0. If you include a currently loaded module in your initramfs, but not all possible firmware files it can theoretically request, update-initramfs gives...
"Tigon" ethernet firmware: error message though working
1,384,222,990,000
This is for "research" not pragmatic purposes -- I want to know how this is supposed to work, since my guess below does not. In other words, I do not want an answer that involves /etc/network/interfaces or anything else distro specific, or NetworkManager. Please do not close this as a duplicate of a question which pr...
As written in the comments, you need to fix the routing table. The syntax ip route add X via Y is used for gateway traffic, i.e. if the traffic to X should be sent to the (most time external address) Y. There need to be a extra route how Y could be reached. If Y is your own interface address and you do not solve the ...
Direct connection w/ ethernet cable
1,384,222,990,000
I have a computer that is connected to the router with DHCP and is in fully working order, what I am having issues with adding raspberry pi zero's in link-only mode. First I can get the pi's to connect by just editing the connection from DHCP to link-only but then I obviously lose internet as I can only have one wired...
How to setup Networking via Network Manager's nmcli for a Raspberry Pi connected to a host PC via the USB port running in OTG mode. I successfully setup a bridged network to a Raspberry Pi Zero using Network Manager via the nmcli commandline interface. Raspberry Pi Setup I followed these instructions listed in the com...
NetworkManager Multiple Wired Connections Issues
1,384,222,990,000
I have to secure interfaces on Linux servers by setting bonding interfaces. The cabling information is not accurate. Is there a simple way to know if two interfaces are connected to the same LAN? Some interfaces have no IP, if possible I would prefer to not set dummies IPs. I finally did it using arping, it was alre...
Some ideas, assuming interfaces are eth0 and eth1: Sniff on both interfaces at the same time for non unicast traffic. You should see all packets twice ( tcpdump -nni eth0 -c 10 broadcast or multicast & tcpdump -nni eth1 -c 10 broadcast or multicast & ) | sort Probe with an IP-less protocol. For example with this too...
How to tell if two ethernet interfaces are on the same lan?
1,469,709,653,000
After an IP address is assigned to this network interface, with any of the the following commands: ip addr add 10.0.0.0 dev eth1 valid_lft forever preferred_lft forever ip addr replace 10.0.0.0 dev eth1 valid_lft forever preferred_lft forever ip addr add 10.0.0.0 dev eth1 ip addr replace 10.0.0.0 dev eth1 I can verif...
Your problem is not ip addr but some process (network manager?) which deletes the IP address. Unfortunately I am not aware of a possibility to determine which process made this access. In case the disturbing process calls ip it should be possible with process accounting (man acct) but not if the configuration is made ...
how can one manually assign a permanent / static IP address with "ip addr add"?
1,469,709,653,000
While I know that lot of packet processing(CRC calculations, packet segmentation handling, etc) can be offloaded to NIC, then does each packet still cause an interrupt to CPU? Is there a difference if NIC is in promiscuous mode?
Normally, the NIC will only interrupt the CPU if it needs to send the received packet to the system. In non-promiscuous mode, this would only be for packets addressed to its MAC address, the broadcast address ff:ff:ff:ff:ff:ff, or a multicast address to which it has been subscribed. It also does validation before send...
Does each network packet cause an interrupt to CPU?
1,469,709,653,000
I have an unmanaged dedicated server that I administer, running CentOS. Recently when I reboot the server, I am unable to use SSH. Both times this has happened the server host has determined the issue and explained it like this: "Please check now - I'm not sure how and why but eth0 and eth1 were both active on boot...
cd into /etc/sysconfig/network-scripts. In there, you will find ifcfg-eth0 and ifcfg-eth1. Edit them, and set the ONBOOT line's values to yes and no, respectively. (Or vice versa, if it's eth1 you'd rather come up on boot.) If you have to prevent the kernel from even attempting to touch the Ethernet hardware, you can ...
How do I configure which ethernet connections are active on boot?
1,469,709,653,000
Netdiscover keeps showing a lot of "Unknown vendor" devices, when I generally can find the vendor pretty quickly via Google. Is there any way to manually update whatever OUI list Netdiscover uses?
EDITED after having found the update script. The OUI list is compiled into the Netdiscover binary, so you'll have to recompile it to update the list. You can download the source from the Netdiscover site, but the releases (up through 0.3beta6) are very old (circa 2007), so download a snapshot. The list itself is stor...
How can I update the OUI list used for Netdiscover?
1,469,709,653,000
I have this bizarre problem with my PC. Linux networking stops working after I play a game on Windows. Situation I have dual boot, Windows 10 for gaming and Manjaro linux for day-to-day use. I'm using a cable connection to my router, so it is fast and stable. I bought a new game recently, and my typical PC use looks l...
I will answer my own question because I was able to finally fix it. I found this on Manjaro forum and that lead me to checking what driver I'm using. lspci show two kernel modules available r8169 and r8168. And somehow I was using older module. I checked few more things and found this: $ ls -la /etc/modprobe.d/ total ...
Linux networking not working after playing a game on Windows
1,469,709,653,000
Why am I getting the "operation not permitted" with nmap - even when executed as root? $ sudo nmap 192.168.1.2 Starting Nmap 7.12 ( https://nmap.org ) at 2017-01-13 02:12 CST sendto in send_ip_packet_sd: sendto(5, packet, 44, 0, 192.168.1.2, 16) => Operation not permitted Offending packet: TCP 192.168.1.1:53769 > 192...
This looks to be an issue with the iptable_nat module in the current 4.8.x Linux kernels (< 4.8.16), as per https://bugzilla.redhat.com/show_bug.cgi?id=1402695. The 4.9 kernel includes a "real" fix - but as for Ubuntu, I am guessing we'll have to wait for Ubuntu 17.04 (Zesty Zapus) to see this officially. (4.9 will b...
nmap raw packet privileges not working ("operation not permitted", even as root)
1,469,709,653,000
The RHEL 5 documentation is good about bonding pairs of ports in various ways. The Oracle team where I work want to get more complex than that. They want an active bonded pair, with a third interface ready as a passive backup. Has anyone tried bonding at this level of complexity? I thought about trying to layer bondin...
You cannot do this, as you cannot bond bonds. What you should do is configure three ports in a Mode 4 bond to each switch, and use the ad_select=count bonding option. Each switch will negotiate a separate Aggregator ID, and only one Aggregator can be used at a time, so all traffic to and from a given Linux system will...
RHEL 5 complex port bonding
1,469,709,653,000
For an embedded Linux system, if I have two or more network interfaces, how do I ensure that they always get the same interface names every boot In other words, I want, for example, eth0 to always map to one physical Ethernet port, eth1 to the next, etc. My Linux "distribution" is home-grown, and I use devtmpfs for po...
This works for me with Linux 3.9.0 on an x86_64 architecture. #!/bin/sh # This assumes the interfaces come up with default names of eth*. # The interface names may not be correct at this point, however. # This is just a way to get the PCI addresses of all the active # interfaces. PCIADDRLIST= for dir in /sys/class/ne...
How do you ensure physical network interfaces always get the same interface name across reboots on an embedded Linux system?
1,469,709,653,000
On one of my servers I set up a bond-device consisting of an onboard network-card and an PCIe network card. (eth1 and eth5) I set up the configugration according to man ifcfg-bonding - i.e. eth1 and eth5 will not be brought up on system boot, but bond0 will do this. Now the problem seems to be that eth5 takes too long...
Assuming eth1 and eth5 are at least set to ONBOOT=yes (although it has no other configuration), you can use the POST_UP_SCRIPT variable in ifcfg-eth5 to call a sleep 5. Or, the other way round, in ifcfg-bond0 set PRE_UP_SCRIPT to give eth5 some time to settle. Compare with Suse Documentation.
Bond slave link up is too slow
1,469,709,653,000
I recently dug out some prototyping equipment from the trash and I want out figure out what the heck it is. It has a port labelled 'Ethernet' and when I plug it into a router the lights flash like its trying to pull an ip but it does not. My router is running DD-Wrt and I have a netbook with Knoppix I can use on the r...
Perhaps the easiest way is to use your netbook - just because you don't have to filter out unrelated traffic later. You can use tcpdump to dump all traffic on your ethernet device. After starting up tcpdump you connect your equipment. After nothing flashes any more you disconnect it and you can look at the dump with w...
Ethernet Sniffing Embeded Device
1,469,709,653,000
Lately I have been having to switch between a wifi and wired internet connection with some frequency, and have found that the only way I am capable of doing this is to restart the computer. Here are the two cases of how this works: 1) Start computer with wireless automatically connected. This makes it impossible to la...
Your problem lies in the fact that you're using two different things to manage your interfaces. NetworkManager (which is the usual default connection manager on Debian) does not manage any interfaces whose names are listed in /etc/network/interfaces by default. Either comment out the lines about eth0 in /etc/network/i...
Can't switch internet connections without restart (Debian)
1,469,709,653,000
I have multiple ARM devices on which Debian runs. I have a single image saved from the SD Card and intend to use it on all devices. Now I have the problem that, each time the MAC address of the eth, wlan, etc... port changes, it adds a new entry to the 70-persistent-net.rules file. For me this is a problem because in...
This is what I put in my 70-persistent-net.rules file; you might only need the first two: SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="*", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth0", NAME="eth0" SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="*", ATTR{dev_id}=="0x0", ATTR{t...
Don't add new ethernet interfaces, use it as eth0
1,469,709,653,000
Alias interfaces defined in /etc/network/interfaces cannot have multiple default gateways. Unfortunately I would like to use the same interface to access 2 different nets, and I need to define 2 addresses and 2 gateways, on the same interface. This alias interface has to be on eth1 interface because eth0 is used on th...
This setup should not work since alias interfaces can´t have gateways on legacy mode(aka: /etc/network/interfaces: https://wiki.debian.org/NetworkConfiguration#Legacy_method An alias interface should not have "gateway" or "dns-nameservers"; dynamic IP assignment is permissible. What about if you use ip to define t...
multiple default gateways for alias interfaces
1,469,709,653,000
How do I check that packet socket support has been compiled into my kernel? I'm running Crunchbang, a Debian-based distribution.
Most Linux distributions include the config parameters used to compile the kernel in /boot/config-<kernel-version>. So grep -x 'CONFIG_PACKET=[ym]' "/boot/config-$(uname -r)" Should tell you if AF_PACKET socket support is included (m for as a module). Otherwise, you can just try and create a socket (using socket(2), ...
How do I check if I have packet socket support enabled in my distro's kernel?
1,469,709,653,000
What happens when I plug in a Ethernet cable? I want to be able to see what's happening on the Level 2/3 (I believe the protocols I'm trying to watch is Ethernet, IP (v4 and v6) and DHCP for IP connections). So, when I plug a cable and the connection is refused, can I try again seeing/debugging what really happen?
Bonsi Scott mentioned wireshark, which will allow you to observe ethernet packets, and all the protocol headers going up. It has a nice GUI interface too (the console version is 'tshark'). Wireshark is build on libpcap, which is fairly well documented and easy to use if you are into programming. Libpcap is also the...
What happens when I plug a Ethernet cable?
1,469,709,653,000
I want to make a cluster computer out of Raspberry Pis (with a network switch/hub, and mpiexec), and have run into the issue about how they will get internet access. Since it would be a hassle for all of them to have their own adapters and cables, I want to know if I can just put a wlan connection into the switch, or ...
Are you wanting all of the Raspberry Pi devices to be accessible from the internet, for example to run a web server cluster? Or are you just trying to be able to have the Raspberry Pi devices access the internet from behind a firewall? If you are just trying to give them access from behind a firewall then, just use a ...
How to give all computers connected to a network switch internet?
1,469,709,653,000
I recently installed debian on an old G4 iMac, and everything is working fine except that the console is constantly spammed with alternating eth0: switching to forced 10bt eth0: switching to forced 100bt messages. eth0 isn't configured at all in /etc/network/interfaces; I'm using the wireless interface on eth1 (whic...
Try unloading the sungem kernel module (after ifconfig eth0 down to release the interface). If that works you can blacklist it to avoid it being loaded on next reboot.
PPC Debian: eth0: switching to forced 10bt / 100bt
1,469,709,653,000
I have various small NUCs with attached on each one some of this USB3 LAN adapters (because the NUCs have only one Ethernet, so I added extra ones with USB3 adapters). You can see an image of the product here. All of a sudden, probably due to an unattended automatic upgrade, these devices started getting random MAC ad...
This 6.8 kernel commit, backported to 6.1.x: net: usb: ax88179_178a: avoid two consecutive device resets intended to avoid a double reset on the AX88179-based NIC had as side effect to get a random MAC address for the NIC. There's a fix in the works for future 6.9 kernel, already backported to kernel 6.1.85+ which ack...
Debian 12 – All of a sudden my USB3 LAN adapter gets assigned random MAC address at each reboot
1,469,709,653,000
I just installed the Ubuntu Server 16.04.1 LTS and wanted to configure my ethernet connection. My /etc/network/interfaces file looks like this: source /etc/network/interfaces.d/* auto lo iface lo inet loopback auth eth0 iface eth0 inet static address 192.168.0.99 *whatever my ip is* netmask 255.255.255.0 network 192....
The easiest way for you now is simply replacing eth0 with the actual name Ubuntu gave your device (both lines). You mention emp2s0, but I suspect it should be enp2s0. Also, the auth should be auto If you really dislike the new naming scheme, you can follow the many different howto's, but this will solve your immediate...
Ubuntu Server ethernet configuration naming error
1,469,709,653,000
I have a wlan1 connection that I want to share to other computers on my LAN (via Ethernet - eth0). As this is somehow a temporary solution, I want this to be done by a script, so that I do not touch the network configuration files of my host (i.e I'll run this script after each reboot if I want to). The problem is tha...
Is it possible to bypass the bridging part and use iptables instead? If so, you can setup source NAT to masquerade traffic going out on the wlan interface. First you need to enable IP forwarding: echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward Next, you need to masquerade traffic going out: sudo iptables -t nat -A PO...
Share wlan connection to ethernet using command line
1,469,709,653,000
I was putting somes static addresses to my interfaces then it shows me this: 172.16.1.0 overlaps with FastEthernet 0/0 What does it mean when two addresses overlaps and how can we avoid it? EDIT: The problem happens on the router (on Ubuntu server everything works well)
It means that you are using the same IP range on both interfaces, or overlapping IP ranges. For example: Interface IP Address Subnet Mask eth0 192.168.2.10 255.255.255.240 eth1 192.168.2.2 255.255.255.252 It causes an overlapping because, according to the subnet mask: eth0 is in ...
Addresses overlaps
1,469,709,653,000
I have just installed ubuntu server edition in order to create a home network. But I am not able to find IP of the machine through ifconfig (showing only localhost). Then I tried lspci | grep -i ethernet output: 09:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8040 PCI-E Fast Ethernet Controller (rev 13...
The command to list ip address associated with an interface was ifconfig, To activate an interface, use ifconfig XXX up, otherwise it would shown as DISABLED
Network Disabled
1,469,709,653,000
I am currently testing netfilter / nftables / nft. As a starting point, I have made a ruleset that drops nearly everything in and out, and have written the rules so that every dropped packet is logged. As always, and as it probably has to be, I don't understand the very first thing the machine tries to do and that I n...
This is a bug in Netfilter's ARP logs. There was a bug report about this problem. It was discovered that ARP didn't log using the correct data (it used data from link layer header instead of ARP's network layer). A patch was committed to fix this a few days later and appeared in kernel 5.19: netfilter: nf_log: incor...
What are ARP hardware type 37, opcode 21 and protocol type 0x90bd?
1,469,709,653,000
I switched my whole desktop-setup from windows to GNU/Linux + Debian 10. I am able to run the debian netinstaller and connect the mainboard for internet-software-updates. But whenever I got the full setup up and running, Debian is not able to connect to the network via ethernet. Immediately after login the interface s...
Your integrated Intel NIC most likely supports Energy Efficient Ethernet (EEE): if a link is inactive for a while, it will drop to a lower speed level until there is traffic again. This is mostly important for gigabit links, but according to the messages, the interface is negotiating only a 100Mbps link, so perhaps th...
Network Manager unable to connect to network (Debian 10 / Kernel 4.19)
1,469,709,653,000
I have a newly built computer with MSI MEG X399 CREATION Motherboard, which includes two Ethernet ports with Intel i211 Gigabit Ethernet. I am running Debian 10, but the Ethernet doesn't work. I can't ping any host: sometimes the lights on the Ethernet plug become bright, sometimes they don't and I need to restart the...
Well, I could resolve the problem. Running sudo ethtool -s enp8s0 speed 10 duplex half autoneg off I was able to get a connection (although slow and unstable). I figured out the problem was an ancient long CAT5 cable in the wall and potentially also the low quality router.
Debian 10 intel i211 LAN not working
1,469,709,653,000
I'm working on a custom board equipped with a iMX28 module and the LAN9500A USB to Ethernet controller without EEPROM for the network interface. Operating system is Linux (kernel v3.16). The LAN9500A is connected to a RJ45 jack with integrated Magnetics and LEDs. I check the reference schematics of Microchip against m...
I realize this problem has been somewhat solved in Linux Kernel 3.16.48.
LAN9500A Linux USB Ethernet Driver Problem!
1,417,084,429,000
In my server-client architecture, I multicast 100 MB files to many clients from server via satellite link. Network traversal is through 5 hops. I have the 10Mbps ( i.e. 1250 Kilo Byte per second ) bandwidth link. When I multicast the first file to many client, first hop get the incoming speed is of ~9.0 mbps but the ...
Tools Is there any way to find out, what is the incoming and outgoing bandwidth usage of each hop (for a particular port.)? Unless you own the network element, or your third-party WAN provider discloses the information, you can only estimate end-to-end available ingress and egress bandwidth along a network path. Se...
Network issue in vsat
1,417,084,429,000
We have a PCIX board (with MIPS CPU) from some vendor and it has an RJ-45 jack on the "board-side", where the cable has an RS-232 plug on the other side. The expected protocol is clearly the same as when using a nullmodem cable between two machines. Now I am wondering whether there is some Linux or *nix flavor that al...
It's not clear exactly what you want. If you want to use your existing Ethernet port, that won't be an option for many reasons; the most fundamental being that Ethernet requires precise termination and voltage levels, the hardware on the interface (the PHY) is made to deal with that. Ethernet uses strictly +/- 0.85V a...
RJ-45 <-> RS-232, can I substitute the RS-232 side and abuse my Ethernet port as COM port?
1,417,084,429,000
I've seen lots of examples that turn the bridging machine into another router with its own DHCP server, etc. But I want to use a wired device as if it were connected directly to the original router. The bridging machine has no trouble connecting to the WiFi on its own. This answer seems to be close to what I want, b...
I got it! Just needed some slight tweaking from this starting point, which appears to translate one direction, but not the other. Filling in the other direction made it "click". Apparently, you can't use DHCP through this kind of bridge for reasons I still don't fully understand (wired device onto a WiFi network), b...
Transparent Bridge from Existing WiFi to Ethernet?
1,417,084,429,000
Is there a way to send some (non-broadcast) packets out on an Ethernet interface that doesn't have an IP address assigned to it? Thus allowing me to see which light blinks on the network switch? The issue is I have a server with three network interfaces. I know which three switch ports they are connected to, but not w...
You can use arping (from the iputils-arping package, in Ubuntu): arping -I enp0s25 10.10.10.2 will ping 10.10.10.2 using ARP on interface enp0s25, even if the interface doesn’t yet have an IP address. If you use an IP address corresponding to a machine connected to another port on your switch, you can use that to ide...
How to identify the switch port an interface is connected to?
1,417,084,429,000
I know that I can poll the link state via the SIOCETHTOOL/ETHTOOL_GLINK ioctl but this would require to endlessly request the state. The same goes for parsing /var/log/messages. So my questin is, is there any way under Linux to wait on a state change of the ethernet cable from userspace?
How about ifplugd? ifplugd is a Linux daemon which will automatically configure your ethernet device when a cable is plugged in and automatically unconfigure it if the cable is pulled. This is useful on laptops with onboard network adapters, since it will only configure the interface when a cable is really connected....
Wait for ethernet cable plug-in/plug-out event under Linux?
1,417,084,429,000
On Linux, the command mii-tool displays the list of Ethernet interfaces and other information. What equivalent command existson Solaris? My goal is to view all LAN networks that my Solaris machine is connected to.
On Solaris 11: dladm show-phys On older releases: kstat -c net ":::link*"
Display all network interfaces on Solaris
1,417,084,429,000
Managing NIC ring buffer sizes with ethtool is simple, for example: ethtool -G eth0 rx 4096 tx 4096 (Or replace eth0 with whatever interface you need to manage.) Doing this live is easy. Trouble is, when you do this on each slave interface that's part of a bonded interface, you mess up the bond. (The aggregator IDs ...
The systemd native way to set parameters is with a .link file (see the systemd.link manpage, however it currently doesn't have a way to set the ring buffer parameters. So AFAIK there isn't a native systemd way to do this. This will change when a new systemd with Wildcard's feature request is released with RxBufferSize...
What is the systemd-native way to manage NIC ring buffer sizes before bonded interfaces are set up?
1,417,084,429,000
According to a computation I did on the data from ifconfig, my ethernet connection between my router and computer averages 1298 bytes/packet for TX (close to the MTU of 1500) and only 131 bytes/packet for RX. What could cause such a large discrepancy in the average TX vs. RX packet sizes?
One possibility is that if you are sending data out predominantly, most of the packets coming back to your system will be ACKs, and those are going to be much smaller than the PUSH you're sending.
What can cause a large TX vs. RX average bytes/packet discrepancy?
1,417,084,429,000
I've recently installed Linux Mint 18.1 and I'm very new to it. Everything is fine with wifi, but I cannot access the internet via ethernet cable. When I try to connect, Chromium just says that there is no internet connection. Output of sudo ifconfig -a: enp5s0 Link encap:Ethernet HWaddr 1c:75:08:26:90:db ...
It turns out you need to run PPPoE to connect to the Internet. The easiest way to do that is to run pppoeconf and follow the prompts. If instead you want to instead configure it by hand, it'd be something like this (taken from a working config I have): /etc/network/interfaces auto enp5s0-ppp iface enp5s0-ppp inet ppp ...
Linux Mint and wired connection problem
1,417,084,429,000
I have two PCs directly connected like this: PC1[eth1] <-> [eth0]PC2 MTU on eth1 interface in PC1 is 9000 bytes. MTU on eth0 interface in PC2 is 2000 bytes: root@PC2:~# ip -s link show dev eth0 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 2000 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/...
This is the difference between MTU (Maximum Transmission Unit) and MRU (Maximum Receive Unit). Normally one expects the MTU (and MRU) to be set the same across all of the members of a single broadcast domain and therefore the difference doesn't matter, but under your misconfigured setup, it does matter. I would expec...
interface MTU different than seen in "ip link show" output
1,417,084,429,000
I'm trying to implement a way to prevent network scans from my notebook. One of the things I want is to allow arp request to specific hosts, like my gateway. I added some rules using arptables and they seem to work (at first) arptables -A OUTPUT -d 192.168.1.30 -j DROP arptables -A INPUT -s 192.168.1.30 -j DROP This...
I'll complete OP's setup: address 192.168.1.38/24 on eth0 and a gateway (not really needed) 192.168.1.1. If the setup uses Wifi rather than actual Ethernet, the first method (bridge) won't be available without additional efforts (probably easy if Access Point, very difficult to impossible if not AP). nmap uses a pac...
arptables not working with nmap
1,417,084,429,000
I'm running Alpine Linux, which is based on Busybox and musl, on Raspberry Pi. When I run ifup eth0, it also starts udhcpc in the background for that interface. That means that if the ethernet cable is connected when I run ifup, it immediatelly obtains an IP address and if it's not connected, it will spin in the backg...
On usual systems the command ip monitor link dev ethX could be used for an event-driven method reacting to changes to the carrier state (eg: NO-CARRIER). As it's not available with busybox's minimal implementation, as described in an answer I made to the Q/A The difference between ip link down and physical link absenc...
How to deconfigure/reconfigure eth interface when cable is connected/disconnected with Busybox
1,417,084,429,000
I am using a new installation of Arch Linux and whenever I boot my system I have to wait for 90 seconds as there is a start job running for my network interfaces. I installed Arch yesterday and whenever I do ip a I get that ethernet interfaces is in DOWN state. I used a wired usb tether to complete the whole installat...
I'd say it's very likely the problem you're seeing is with the [email protected] that's configured on your system. So my recommendation would be to disable it, hopefully that's enough to make that timeout during boot disappear: $ sudo systemctl disable dhcpcd@eth0 I'll go over the evidence to support that claim. Ther...
A start job is running for eth0
1,417,084,429,000
Sometimes network completely fails on my server for samba shares (e.g. I could'n connect to server via ssh and samba shares were unavailable). Since there is no working solution to fix it (full description here) I wrote small script which does network restart and I guess it would help to establish connection. In case...
In one compact line: ping 192.168.1.121 -c1 -s1 -w1 -q || ping 192.168.1.189 -c1 -s1 -w1 -q || systemctl restart network
Script for network restart
1,417,084,429,000
I just installed Fedora 22 alongside Windows 10 on my desktop and I've been trying to get the Ethernet to work for a long time. There is no wireless and this is my only source of internet connection on linux. I have a Intel Gigabit Ethernet - "Intel(R) Ethernet Connection (2) I218-V" on my motherboard. I don't believe...
I'm not sure the symptoms of your problem are the same, but I had some similar issues with dual booting recently. Is your network connection fine in Windows? I had issues where I would install Linux, network would be fine, then would reboot into Windows, network would be fine, then reboot into Linux, eth0 wouldn't co...
Trying to get Ethernet working in Linux
1,417,084,429,000
I set up CentOS yet. it's no network connection. eth0 is not device list. I take a message network is unreachable while ping 192.168.0.1 the screen shot of device list How can I do reachable network?
Your Ethernet port is called enp2s0, not eth0. This naming system is called Predictable Network Interface Naming and details are available here. Check the file /etc/sysconfig/network-scripts/ifcfg-enp2s0, which should be similar to the following: DEVICE='enp2s0' TYPE=Ethernet BOOTPROTO=none ONBOOT='yes' IPADDR=a.b.c....
eth0: ERROR while getting interface flags: No such device [duplicate]
1,417,084,429,000
I actually wanted to post the below as an answer to this question titled: ifup eth0 timeout during boot. But am not sure if this is right approach or it's a way of screwing up things badly. We can actually check if the network cable is connected to the machine, or not, by running the command, grep "" /sys/class/net/...
Unfortunately, the interface has to be up for the above suggested method to work. I made the changes in my file as I suggested in the question and ended up receiving the error as "Invalid argument". So, I believe the interface should be up to query if the wired connection is available or not. I also found more useful ...
Check for plugged in network cable on startup
1,417,084,429,000
I have an acer aspire 7551 laptop running windows 7 and I've successfully used wubi to also install ubuntu (the latest release version). Wireless works fine on windows 7, but neither wireless nor ethernet works on ubuntu. In particular, the wireless icon shows up at the top-right (but no available connections show up ...
I have the same network hardware in my laptop running Ubuntu 10.10 Maverick. For the wireless adapter, you need the binary Broadcom STA proprietary drivers. Ubuntu should prompt you to install them when you first start, but if you're lacking a network connection, that might be why it's not working. Fortunately, the ...
How can I get wireless and ethernet to work with ubuntu?
1,417,084,429,000
For processor usage, we can use top or htop. For internet status, I would like to know the current TX/RX status, any command/tool to use?
Use nload. From its manpage: nload is a console application which monitors network traffic and bandwidth usage in real time. It visualizes the in- and outgoing traffic using two graphs and provides additional info like the total amount of transfered data and min/max network usage. Another tool that you could find u...
What tool can check internet TX/RX status as top/htop?
1,543,697,175,000
I want to assign multiple IP4 addresses to a USB->Ethernet adapter in an Ubuntu 18.04 LTS system. I have removed netplan, since I find the yaml-based configuration even more obscure than the traditional way of configuring the network. Since I want the extra addresses to be permanent, I put them into /etc/network/inter...
Because ifupdown is deprecated since the Ubuntu 17.10 release (the /etc/network/interfaces file is used by ifupdown), you should reinstall netplan on your system and remove the ifupdown package. There is how to configure a multiple IP address for a network interface using the following example from the official websit...
Can't permanently assign additional IP addresses to USB ethernet adapter via /etc/network/interfaces. Why?
1,543,697,175,000
I connect my Linux laptop to an Onkyo P-3000R (a USB DAC) using a 10 meter USB cable. I would like to replace that long USB cable with a WiFi connection, if possible. I could connect my Onkyo USB device to a WiFi router using a short cable. I could also possibly connect the USB device to a server on my LAN using USB...
You need to install the usbip server on the computer the real USB device is connected to. If that is your Wifi router, you need to be root on the router, and you need to be able to install custom software (or have installed a firmware which provides the usual Linux software as packages, e.g. OpenWRT, DD-WRT etc. This ...
Share USB audio device over Ethernet [closed]
1,543,697,175,000
I have a Debian workstation with two interfaces: the ethernet jack attached to the motherboard (eth0), and a USB to ethernet adapter (eth6). eth0 connects to the internet, while eth6 connects to some special equipment only accessible over ethernet. When the workstation starts, it connects to eth6 by default; when this...
You just need to set the default gateway to the correct interface. It should be configured in your GUI (Network Manager for example) or if you feel a bit geeky, you can configure it in your /etc/network/interfaces This is a minimal configuration example for your /etc/network/interfaces file: auto eth0 iface eth0 inet...
Setting default network interface?
1,543,697,175,000
I have a computer running centOS 7 and Gnome 3.2 and everytime the computer boots it boots with airplane mode enabled and the ethernet interface disabled. I've been looking for a solution but I cannot find a proper way to disable it. I've noticed that both the Airplane mode and the ethernet interfaced can be enabled a...
This helps in debian gsettings set org.gnome.settings-daemon.plugins.rfkill active false
Permanently disable airplane mode gnome 3.2
1,543,697,175,000
I have two Ethernet-wired connected devices. I gave to both of them address from same sub-network. As result I can see second device in arp-table of the first. $ arp -a ? (128.247.77.90) at 10:60:4b:4b:29:50 [ether] on eth0 But ping always fails. $ ping 128.247.77.90 PING 128.247.77.90 (128.247.77.90) 56(84) bytes of...
The problem was with configuration of tftpd-hpa server on host. According to guide the file /etc/default/tftpd-hpa must be something like: TFTP_USERNAME="tftp" TFTP_DIRECTORY="/home/bogdan_liulko/tftp" TFTP_ADDRESS="0.0.0.0:69" TFTP_OPTIONS="--secure --create" RUN_DAEMON="yes" My problem was that my file didn't cont...
ICMP - Destination unreachable (Port unreachable)
1,543,697,175,000
I have to transition between different networks quite often using a laptop and various docking stations. If I remove my laptop from a certain network and place it again on the same network then no issues arise. It is when I move to a different network that I have problems. Although not in any way a dire issue, I just...
Appearantly ifpugd doesn't really look for the interface hardware being removed. I noticed the device in enumerated as eth0 when you plug the dock in. New udev policies should prevent different devices from showing up as the same name. http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames...
Network Manager does not handle switching between networks by default
1,543,697,175,000
I am installed Manjaro Linux 15.09 which is based on Arch Linux, but Ethernet is not working, although WIFI is. How can I solve this problem? Information of my system: output of lspci Output of uname -r: 4.1.8-1-MANJARO output of lsusb Please tell me if you need more information... my laptop is = Lenovo Z50-70, but Et...
I found the package in extra repo of Manjaro Linux called linux41-r8168 for R8168 driver pacman -S linux41-r8168
unable to connect ethernet on manjaro linux
1,543,697,175,000
I'm looking if it's possible to give rights, to only allow the use of one network interface to a specific user on a Linux distribution. My use case: I want, for my studies, testing the interconnection between about 30 servers, all listening on the same port. For now, I can only launch 7-8 VM and on them my server scr...
You should consider the possibility of using less resource-intensive virtualization options. The one I have in mind for your problem is the "network namespace", for which you find a simple yet sufficient introduction here. With this minimalistic virtualization scheme, you endow each shell with exactly one (virtual!) N...
Multiple Lan interfaces on one VM rather than multiple VM
1,543,697,175,000
I installed Scientific Linux 6.2 x86 in VirtualBox on Windows 7 x64. The adapter is Adapter 1: Paravirtualized Network (Bridged adapter, Marvell Yukon 88E8056 PCI-E Gigabit Ethernet Controller) promiscuous mode: Deny But this adapter does not get ip address. [root@server ~]# ifconfig -a eth1 Link encap:Ethernet...
Well, just enter the IP address yourself: ifconfig eth1 192.168.0.x If it doesn't work, go into the setting of the specific virtual drive and enable your network option through one of your virtual adapters.
Configure a bridged Ethernet adapter in a VirtualBox guest running Scientific Linux
1,543,697,175,000
I tried to tap into Belkin Home Base (model #F5L049au) print server. I want to access a printer hosted by it. I set it up as a CUPs printer with the below specifications: Description: Via Belkin @ 192.168.1.10 Location: Peter's Bedroom Driver: Brother HL-4050CDN BR-Script3 (color, 2-sided printing) Connection: ...
Based on comments, it looks like you are using the wrong printer driver. Your are printing to a Belkin F5L049au print server, but you are trying to talk to it as if it understood the custom Brother language. The print server is doing some magic to convert your documents to print over USB to whatever device you have co...
Cannot connect to printer hosted on a Belkin print server
1,543,697,175,000
I have a linux box and has ethernet, wlan STA/client and wlan Access Point. It's a internet connection via ethernet and I can log in to the box via ssh. But I wish to use the box like a wireless router and be able to connect to internet by using for example a smart phone. I can connect my phone to wifi but it has no i...
In order for your linux box to act as a WLAN access point, you will need to: make sure your wireless NICs use a driver which supports AP. Output of lsmod | grep 80211 usually helps. If your driver doesn't support AP mode, you'll have to get a new WLAN adapter which does. make sure your kernels supports IP forwarding ...
WLAN connected but no internet access
1,543,697,175,000
I've got an embedded/headless Debian Linux box which boots from a read-only filesystem image. The configuration is set up so that I can (seemingly) write to the filesystem, but any changes to the filesystem do not actually get written to the flash device and thus do not survive a reboot. This box has an on-motherboar...
You need to run ifup -a to bring up the network interfaces after modprobing e1000e. Adding some small delays with sleep 2 won't hurt either. So, try: ifdown -a ; sleep 2 ; modprobe -r e1000e ; sleep 2; modprobe e1000e ; sleep 2; ifup -a
How to swap out the driver of a network device on a running Debian Linux box?
1,543,697,175,000
I would like to add a virtual IP address, something you normal do with: ifconfig eth0:0 192.168.1.1 (or via /etc/network/interfaces). But, I'd like to do it from the kernel command-line, which has the command format: ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf>:<dns0-ip>:<dns1-ip> How...
It doesn't seem possible. The kernel documentation for the ip parameter says the syntax is ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf>:<dns0-ip>:<dns1-ip> with only one client-ip. The Linux IP-Aliasing doc says that the colon form is deprecated. And the ip option simply treats : as a w...
How do you add a virtual network IP address from the kernel command-line?
1,543,697,175,000
When I create a VLAN sub-interface in Linux, then it gets the same MAC address as its parent interface. For example with ip link add link eth0 name eth0.333 type vlan id 333 command, the eth0.333 gets the same MAC as eth0. Am I correct that server identifies received frames based on VLAN tag or if the VLAN tag is miss...
The default behavior is to add a interface that will only accept packets where the 802.1q field is the same as the vlan id to this given interface. In a very simplified way, the Mac address will be the same as the parent, so the packet is delivered to the phy interface, and processed by the kernel, searching for a 80...
How does server identify frames in case of multiple VLAN sub-interfaces?
1,543,697,175,000
I have an odd problem that seems simple enough but has evaded me thus far. I am attempting to support a legacy application that has a hard-coded ethernet device name ("eth0"). This hard-coding, I am told, will not change. Now, we are attempting to bring this software in a much more modern OS (Fedora 17) that uses pe...
There may be a simpler way. But if compiling your own kernel is an option, you could create a driver based on the existing loopback driver, change the name (line 193 in that version), and load the module. You'd have a second loopback interface with the name you want. Edit: To be more specific, I mean adding another lo...
Creating an Alias to Loopback Interface with an Arbitrary Name
1,543,697,175,000
I am currently running a webserver with Debian 5.0.2. It has been working (more or less) fine for the past 2-3 years but recently it went down due to some power-outage. Ever since I have brought it back online it has been unable to connect to the network. I have disabled and re-enabled the ethernet port but still can'...
Could be that your DHCP client isn't starting for some reason. Maybe a bad lease file, or a pid file is hanging around making it think it's still running. I'm not familiar with Debian so I'm not sure where it keeps its application files, but try deleting /var/run/dhclient* to get rid of any extra pid files, and rm /va...
Connecting Debian webserver to network
1,543,697,175,000
I have a laptop running hostapd, phpd, and mysql. This laptop uses an Ethernet connection to connect to the internet and acts as a wireless access point for my workplace's wifi devices. After installing some software and reconnecting my Ethernet elsewhere, my "em1" device is no longer present and wirelessly connected ...
I opted to solve this issue by starting from scratch. I installed Fedora 17, hostapd, dnsmasq, iptables, and community drivers. The drivers I used were compatible with my hardware and the instructions for installing them are here: http://linuxwireless.org/en/users/Drivers/b43. dnsmasq was used to host a dhcp server...
Fedora 15: em1 recently dissapeared and hostapd no longer serves internet to wirelessly connected devices
1,543,697,175,000
Yesterday, I installed Fedora 16 and found no wireless connection available. Then I found the ar81family driver But it seems like it does not work with kernel 3. I changed the makefile to ignore the kernel version, but it doesn't compile. It complains: asm/linkage.h not found How can I compile this module for my ker...
In general Linux drivers needs to closely match the version of the kernel they were developed for. The driver API changes frequently. It's one of the many reasons Linux kernel developers very strongly encourage people to submit their drivers. Usually it's not too hard to update the driver to match the current kernel, ...
Atheros ar8151 driver for kernel 3.x (fedora 16)
1,543,697,175,000
I have an Intel dual port 10GB NIC. Operating System: Debian GNU/Linux 9 (stretch) Kernel: Linux 4.9.0-7-amd64 01:00.0 Ethernet controller: Intel Corporation Ethernet Controller 10-Gigabit X540-AT2 (rev 01) One port is configured with a static IP, 1000 Mb/s connected to a Cisco switch and works fine. (I've removed...
Here's the unexpected part. I can ping the IP address of the 10Gb/s from my laptop on the production network (see below). That's not unexpected: Both IP addresses are in the same subnet, so any ARP request for 192.168.69.224 in "production network" behind enp1s0f1 will get broadcast to this address, and the Linux ke...
Appears a Dual Interface Network Card is assigning two addresses to the same port rather that one per port
1,515,013,550,000
I have two laptops both of which are running CentOS 7. Both are connected to a wireless access point for Internet connectivity. I also have connected them to each other through a switch as a lab for my RHCSA exam. The problem is that whenever I connect them through the switch, they lose internet connectivity. The wire...
The problem is that your kernel routes IP packets by default to the other laptop instead of through the Wi-Fi card. Your routing table has two default routes (i.e. paths any IP packet may take to any destination): Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default ...
Wireless stop working after enabling Ethernet adapter
1,515,013,550,000
Why no enp1s0 ethernet interface in my os? ip -brief link |cut -d" " -f1 lo enp6s0 Why can't get the result ? ip -brief link |cut -d" " -f1 lo enp1s0
The ethernet interface name enp6s0 means the PCI bus location (as indicated by e.g. the lspci command) of that NIC is 06:00.0. If you don't have a network card at PCI bus location 01:00.0, you won't get interface name enp1s0. On many desktop motherboards, the PCI bus location 01:00.0 refers to the first long (16x) PCI...
The name of ethernet interface for my network
1,515,013,550,000
I do not need some kind of realtime visual status of my ethernet - I want to run my script when last five minutes I uploaded less than X. So I need to get only one number from some command. What can you recommend? I use Ubuntu 14.04.
ifconfig <interface> gives you throughput of a specific interface. For example, root@trinity:~# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 28:92:4a:32:0c:43 inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::2a92:4aff:fe32:c43/64 Scope:Link UP BROAD...
How much was uploaded in the last five minutes?
1,515,013,550,000
I need to create local loopback as shown herein: Performing Loopback Testing for Fast Ethernet and Gigabit Ethernet Interfaces. Excerpt Configure a Local Loopback Action To configure a local loopback without physically connecting the transmit port to the receive port, follow these steps: In configuration mode, go ...
Here is their documentation on interface creation, titled: Red Hat Enterprise Linux 3: Reference Guide - Chapter 8. Network Interfaces. Add this line if it does not exist to /etc/hosts 127.0.0.1 localhost localhost.localdomain run the following commands as root # ifconfig lo 127.0.0.1 # route add 127.0....
How can I create Local Loopback on Linux?
1,515,013,550,000
Running Ubuntu 22.04.3 LTS on top of WSL2 Output of ifconfig: eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1492 inet 172.28.193.11 netmask 255.255.240.0 broadcast 172.28.207.255 inet6 fe80::215:5dff:fe3e:7ffa prefixlen 64 scopeid 0x20<link> ether 00:15:5d:3e:7f:fa txqueuelen 1000 (Ethernet) ...
A few notes, starting with the suggestion to use the ip command and its subcommands. This replaces the deprecated ifconfig command. I'll use ip commands for any examples in this answer. As mentioned in the other answer, WSL2 by default Footnote uses a virtual network interface. As for "where the ... address ... com...
Machine MAC address with Ubuntu on top of WSL2
1,515,013,550,000
Given: Ubuntu laptop with dynamic ip. Raspberry pi headless with static ip. A single Ethernet cable (can be normal or crossover). How can I ssh into the Pi from the laptop?
You have (at least) a couple of choices Run a DHCP server on your Pi. This will assign addresses to clients that connect to it. (Even if there's only one client - your laptop.) As an example this could be dnsmasq or udhcpd. Assuming your Pi has an address 192.168.1.1 with a typical 24 bit subnet you add an address fr...
Communicate between two machines without a switch
1,515,013,550,000
I have 2 similar dual-port NICs here. Both are made by Intel but one in branded HP and the other one is branded Intel. The vendor/device ID for both are different. I can get the device ID using: lspci -nn -vvv | grep Ethernet BUT I do not know how to associate a particular device ID to a network interface. I know I c...
I have 2 ethernet ports from 2 devices with the same vendor/device id. I can match the pci slot to the interface name by comparing the interrupt assignment. I'm not sure you will be able to do this as you seem to have a multi-function device which might share an interrupt. In my case: $ lspci -s 03:00.0 -vv | grep In...
how do I get the device ID for a specific network interface?
1,515,013,550,000
If I connect a straight Ethernet cable where a crossover cable should be used. Can I get the behaviour that it works occassionally, once in a while? Too me it seems it would either work or not, not occassionaly -is this correct? I have a situation where Ethernet sometimes work, and sometimes after reboot it stops work...
Normally it either works or doesn't, but your described behavior can happen if there is a short circuit between some wire(s) or the wires are not connected properly to its connector (inconsistent contact). I would try out another cable and see if this behavior can be reproduced again. If not, the problem was the cable...
(Ethernet cables): Can a straight wire work (slightly) where a crossover-wire is necessary (without MDX)?
1,515,013,550,000
When using: /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp auto wlan0 allow-hotplug wlan0 iface wlan0 inet dhcp wpa-ssid "<myssid>" wpa-psk "<mypasswd>" why is the boot blocked for more than 1 minute if no ethernet cable is connected? Why doesn't it go to the next lines and us...
You should change auto eth0 to allow-hotplug eth0 in your /etc/network/interfaces. This would keep your system away from trying to get address by DHCP when interface isn't connected. This should fix the problem. Also, you can set lower timeout to DHCP client. You may set timeout 3; in /etc/dhcp/dhclient.conf. It will ...
Two networking interfaces trying to get an IP via DHCP
1,515,013,550,000
I'm using an old kernel, 2.6.32, and I would like to boot the kernel over TFTP and mount the filesystem over NFS. Mounting the kernel over TFTP is a plus, but mounting the filesystem over NFS is a must. I would like to drop the ethernet connection on the board, being forced to use the USB for this. How can I understan...
In general linux has very good support for network devices. If the device will work with your version of linux it will allow setup of nfs root with the appropriate initrd. so the problem with root over nfs is that you have to make an initrd that will accommodate it. NFS root without initrd may still work, but will not...
How do I understand if an USB Ethernet adapter is compatible with a certain kernel version to use it to load kernel/filesystem?
1,515,013,550,000
On a device with Debian 10, I want to make a permanent change to the IP via modifying /etc/network/interfaces . Hence, I modify it as follows : auto lo iface lo inet loopback auto eth0 #iface eth0 inet dhcp iface eth0 inet static address 192.168.109.11 netmask 255.255.255.0 gatew...
ifdown and ifup seem to be not the best way to operate on network interfaces due to lots of pseudo-errors with RTNETLINK (Linux routing socket) that will go away only via system reboot, which may not be ideal. IMHO, main way to handle this is via ifconfig commands (please also consider that ifconfig is deprecated and ...
'RTNETLINK answers: Invalid argument' after ifup ethX
1,515,013,550,000
I recently installed Debian 10.6 on my desktop computer, and discovered that I have a problem with my ethernet network connection after waking the computer from sleep mode. Specifically, after waking the computer from sleep mode, I have no ethernet network connection. After rebooting the computer, the connection is re...
It turned out that the problem in my case had to do with the following line in the output from dmesg: [ 7547.437266] do_IRQ: 2.34 No irq handler for vector This problem is addressed in the following post on askubuntu: https://askubuntu.com/questions/1029620/ubuntu-18-04-lts-sky2-ethernet-stops-working-after-system-re...
Network (via ethernet) does not work after sleep mode
1,515,013,550,000
I have a router that provides internet access. Connected to this router is a desktop PC that has working eth0 (static IP address) and wlan0. Also connected to the router is a laptop which I use to access the desktop over eth0 via SSH: Desktop(wlan0,eth0) ---- Router(internet) ---- Laptop(ssh to Dekstop via eth0) // wl...
If I understand correctly what you're asking the closer you can get to what you're describing is by doing this: On the desktop create a bridge (br0) that includes wlan0 and eth0 Assign the static IP address that you now have on eth0 to br0 Setup a dhcp server on br0 The above will place everyone connecting to the AP...
Ho to bridge wlan0 in AP mode and eth0 so that eth0 is static and wlan0 uses DHCP?
1,515,013,550,000
I have an Arris cable modem, and my laptop has a JMC250 PCI Express Gigabit Ethernet Controller. I'm unable to connect to its wired network either with NetworkManager, Wicd, or the command-line on Debian Stable. I have tried also running a Porteus (Slackware based) LiveCD, but the result was the same. I have tried als...
Thanks God I insisted on this :) Taken from the Ubuntu forums: sudo ethtool -s eth0 autoneg off speed 100 duplex full Results after running this command: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000base...
Cannot connect to ethernet on a cable modem
1,515,013,550,000
First of all I am running a CentOS 6.4 installation. My computer is a laptop and I am trying to install the drivers for my ethernet card, because this week end I lost my ability to connect to the Internet. So I downloaded the driver : jmebp-1.0.8.5 I installed gcc, kernel-devel and since it wasn't working I finally in...
First Issue You're missing the kernel-headers package. You need these to compile kernel modules. yum install kernel-headers Assuming this where you downloaded the drivers from. When I unpacked them on a CentOS 6.4 system I got the following error: $ cd jmebp-1.0.8.5 $ ls CHANGELOG jme.c jme.h Makefile scripts $ m...
Problem compiling a driver : "No rule to make target"
1,515,013,550,000
I'm trying to filter traffic by src ether host to see all devices with a specific MAC prefix. If this were like IP, it might filter with src ether host aa:bb:cc:00:00:00/24 to see OUI's matching aa:bb:cc...but it doesn't like that. Is there a way to match by MAC prefix or mask? In case it matters: This is for Wi-Fi, ...
The names (host, src host, ether, ether src,...) are basically shortcuts to specific bytes in the corresponding tcp od ip packets. There are no wildcards allowed in tcpdump-filters, so one has to dig deeper into the tcp-packets themselves. The ethernet src-address is in the 6 bytes starting at ether[6], the ethernet d...
Can `tcpdump ether host` filter with a mask to get, for example, hosts with a specific OUI?
1,515,013,550,000
My laptop has a single Ethernet port and a Realtek Ethernet controller: $ ip -brief addr lo UNKNOWN 127.0.0.1/8 ::1/128 enp2s0f0 DOWN enp5s0 UP 192.168.50.83/24 fe80::3af3:abff:fe0c:886f/64 wlp3s0 UP 192.168.50.127/24 fe80::6dc5:4c36...
According to the Archlinux Wikipage: https://wiki.archlinux.org/title/Lenovo_ThinkPad_T14_(AMD)_Gen_2 enp5s0 is the RJ45 port. enp2s0f0 is the proprietary connector next to the 2nd USB Type-C port for use in the Lenovo ThinkPad Ultra Docking Station or with a Lenovo ThinkPad Ethernet Extension Cable Gen 2 cable. Your...
Why does my Ethernet adapter have two devices?
1,655,319,444,000
I have the following Ethernet to USB-C adapter: $ lsusb | grep Ethernet Bus 002 Device 003: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit Ethernet Currently it is not working when plugged into the USB-C port, in dmesg I get: [23552.344134] ax88179_178a 2-1:2.1 eth1: Failed to read reg index 0x0000: -32 (Howeve...
The axge driver you linked is for the FreeBSD version of Ubuntu. The corresponding Linux driver seems to be named ax88179_178a. It should be included in the standard kernels of all modern distributions, as the copyright marking in the source code is from year 2013. Here it is in kernel version 4.9.318, the oldest kern...
Driver for AX88179 Gigabit Ethernet
1,655,319,444,000
I have a pcap file and need to send it to specific interface. How can I do it?
You can do this with Tcpreplay. The interface to use can be specified with the --intf1 option.
How to send pcap file to ethernet
1,655,319,444,000
I am trying to test the NAPI functionalities on embedded linux environment. I used 'pktgen' to generate the large number of packets and tried to verify the interrupt count of my network interface at /proc/interrupts. I found out that interrupt count is comparatively less than the packets generated. Also I am trying to...
I wrote a comprehensive blog post about Linux network tuning which explains everything about monitoring, tuning, and optimizing the Linux network stack (including the NAPI weight). Take a look. Keep in mind: some drivers do not disable IRQs from the NIC when NAPI starts. They are supposed to, but some simply do not. Y...
How to test linux NAPI feature?
1,655,319,444,000
Yesterday I updated my Arch Linux after 2 Months with sudo pacman -Syu and after the reboot I don't get any connection with the Internet neither from Browser nor with Skype, etc. When I try to ping google.com I get ~]# ping google.com ping: unkown host google.com When I check the ethernet-connection: ip link 1: .......
It seems to be a bug the kernel. After rollback and downgrade of all updated network packages it works again this was the command i used: [root@ulbp2681 ~]# cd /var/cache/pacman/pkg [root@ulbp2681 pkg]# pacman -U linux-4.0.7-2-x86_64.pkg.tar.xz linux-headers-4.0.7-2-x86_64.pkg.tar.xz dhcpcd-6.9.0-1-x86_64.pkg.tar.xz n...
Arch-Linux after system-update no internet connection but connection lan
1,655,319,444,000
I have a Toshiba Satellite PSAG8U-04001W. No eth* interface shows up on ifconfig. $ ifconfig -a lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:32 errors:0 dropped:0 over...
Make sure that the wired network card hasn't been disabled in the BIOS.
wired ethernet interface not detected by lshw, lspci
1,655,319,444,000
I just installed FreeBSD 9 on a new laptop and I'm having some trouble getting the network cards to work. Presumably the file representing the cards is in /dev, but where would the configuration files be? In /etc? Any tutorial or guidance in this matter would be greatly appreciated.
First of all, run ifconfig to get a list of all interfaces known to the kernel. In FreeBSD, interfaces are named after the driver module that controls them, so you might see em0, rl0, or any number of other things. Once you know the name of the interface, you need a few settings in /etc/rc.conf. If you want to use dhc...
Setting up network cards on FreeBSD
1,655,319,444,000
I've working on Arch Linux and in 99% of time I connect to internet by WLAN but sometimes I need to use ethernet connection, so today I see something strange. My eth0 device is down, and I can't get it up. I tried # ip link set eth0 up # ifconfig eth0 up But after any of above commands ip link shows: 1: lo: <LOOPBACK...
Seems RealTek 8168B has problems on Debian Squeeze. Try those: If you have problems with the network interface not going up with RealTek 8168, this may help and provide insight (ie. realtek firmware problem): https://serverfault.com/questions/384165/after-installing-debian-squeeze-ethernet-does-not-come-up If you hav...
Cannot get Realtek r8168 ethernet card up