I'm new to linux and I have server with four network cards. I have to identify which physical network interface is assigned to the names eth0, eth1, eth2 and eth3. I have to disconnect cable from eth2 and do not know which network card it is.  Thanks
120493
I remember using a command line tool to flash a NIC's link light to identify it. I can't remember for the life of me what it was.
85808
Hello I having having issues seeing my wifi I bought my computer built from newegg and recently switched to Ubuntu it picks up my wired connection fine but doesn't even give my any options for my wifi dongle  would be grateful for some help if possible and thank you I have been trying to get it to work for days  I am not sure what type of device it is is says ac600 on the dongle which i look up and says it could be netgear or edimax  "lshw -C" *-network                       description: Ethernet interface        product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:03:00.0        logical name: enp3s0        version: 06        serial: 74:d4:35:b8:50:ac        size: 1Gbit/s        capacity: 1Gbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168e-3_0.0.4 03/27/12 ip=192.168.0.2 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s        resources: irq:28 ioport:ce00(size=256) memory:fdfff000-fdffffff memory:fdff8000-fdffbfff   "lsusb" Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 005: ID 0bda:0811 Realtek Semiconductor Corp.  Bus 002 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 003: ID 154b:fa05 PNY Flash Drive Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 003: ID 093a:2521 Pixart Imaging, Inc. Optical Mouse Bus 003 Device 002: ID 1130:1620 Tenx Technology, Inc.  Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 008 Device 004: ID a012:b012   Bus 008 Device 003: ID 046d:0829 Logitech, Inc.  Bus 008 Device 002: ID 2109:3431 VIA Labs, Inc. Hub Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  "ifconfig" enp3s0    Link encap:Ethernet  HWaddr 74:d4:35:b8:50:ac             inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0           inet6 addr: ::355f:6ae4:a42a:7481/64 Scope:Global           inet6 addr: fe80::a92f:a3c8:1f6b:6322/64 Scope:Link           inet6 addr: ::cc28:f3c5:70b1:420f/64 Scope:Global           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:61536 errors:0 dropped:0 overruns:0 frame:0           TX packets:43687 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:55328319 (55.3 MB)  TX bytes:5679616 (5.6 MB)  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:65536  Metric:1           RX packets:5312 errors:0 dropped:0 overruns:0 frame:0           TX packets:5312 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1            RX bytes:536533 (536.5 KB)  TX bytes:536533 (536.5 KB)
12529
How can I create a virtual interface, that connects to the same network as the physical interface? I tried searching around but all I found is loopback. I need the other end of the wire recognizes this as two interface, so loopback won't do it. Hypervisors like VMWare have an option to do exactly this (VM and host are recognized as two devices on router's arp table), but in my situation using a VM is pretty much overkill. I just want another connection, or maybe some apps that can behave as a "virtual switch".  I'm on Windows, and it should be like this.     Seems like I'm not the only one having this problem. Someone  and  have also asked but there's no acceptable answer. My apologize, but it is extremely hard to search for this problem.
121372
I did a fresh install of Ubuntu 16.04.3 on my laptop, which is also running Windows 10. The install was successful and during the process I was able to connect to my wifi network with no issues (I can still do so when using Windows) - but now I can't see any networks at all when trying to select one. I can use a wired connection.  Using sudo lshw -C network, I get:  *-network                   description: Ethernet interface    product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller    vendor: Realtek Semiconductor Co., Ltd.    physical id: 0.1    bus info: pci@0000:01:00.1    logical name: enp1s0f1    version: 12    serial: 80:fa:5b:35:06:d7    size: 1Gbit/s    capacity: 1Gbit/s    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation    configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8411-2_0.0.1 07/08/13 ip=192.168.0.21 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s    resources: irq:127 ioport:e000(size=256) memory:df214000-df214fff memory:df210000-df213fff *-network UNCLAIMED    description: Network controller    product: Wireless 8260    vendor: Intel Corporation    physical id: 0    bus info: pci@0000:02:00.0    version: 3a    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress cap_list    configuration: latency=0    resources: memory:df100000-df101fff   I thought it was maybe an issue with missing drivers because the driver is unclaimed, so I copied the driver for 8260 from  to /lib/firmware, but still nothing.  I've tried a couple of other solutions, such as checking for software updates and additional drivers, but so many are for previous versions, so I've found that they haven't made any change. The kernel version is 4.13.0-1015-oem if that helps at all.  Results from terminal:  lspci -nnk | grep 0280 -A3 02:00.0 Network controller [0280]: Intel Corporation Wireless 8260 [8086:24f3] (rev 3a) Subsystem: Intel Corporation Wireless 8260 [8086:1010] Kernel modules: iwlwifi 03:00.0 Non-Volatile memory controller [0108]: Intel Corporation Device [8086:f1a5] (rev 03)  $ sudo modprobe iwlwifi &amp;&amp; dmesg | grep iwl [   15.839409] iwlwifi 0000:02:00.0: enabling device (0000 -&gt; 0002) [   15.857552] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-8000C-    33.ucode failed with error -2   [   15.857562] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-8000C-32.ucode failed with error -2 [   15.857568] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-8000C-31.ucode failed with error -2 [   15.857573] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-8000C-30.ucode failed with error -2 [   15.857579] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-8000C-29.ucode failed with error -2 [   15.857584] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-8000C-28.ucode failed with error -2 [   15.857590] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-8000C-27.ucode failed with error -2 [   15.857595] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-8000C-26.ucode failed with error -2 [   15.857600] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-8000C-25.ucode failed with error -2 [   15.857605] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-8000C-24.ucode failed with error -2 [   15.857612] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-8000C-23.ucode failed with error -2 [   15.857618] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-8000C-22.ucode failed with error -2 [   15.857619] iwlwifi 0000:02:00.0: no suitable firmware found! [   15.857621] iwlwifi 0000:02:00.0: minimum version required: iwlwifi-8000C-22 [   15.857622] iwlwifi 0000:02:00.0: maximum version supported: iwlwifi-8000C-33 [   15.857623] iwlwifi 0000:02:00.0: check git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
111257
I currently have 2 network cards in my PC -- one connected to an internal network on a router with a disconnected WAN port (10.x.x.x), and one connected to the internet through a consumer router (192.168.0.x).  Windows seems to recognize them correctly (my "Network and Sharing Center" lists them as "No Internet" and "Internet" respectively), however when I try browsing the internet it always tries the internal network's default gateway, rather than the one with internet access. Trying to ping a website results in "Reply from 10.0.0.1: Destination net unreachable.".  A simple "route delete 0.0.0.0 mask 0.0.0.0 10.0.0.1" fixes the problems, but they return upon reboot, or upon renewing my IP.  Is there any way to tell Windows to ignore one NIC's default gateway, or to at least give them priorities?
10604
I need to sniff all the wifi traffic that I can capture using wireshark in Ubuntu. My wireless interface is named as eth1 in the interfaces list. When I select that interface in Wireshark and start new sniff, I got following error;    As  thread says, I tried to installed the mentioned driver but I got an error in installation saying that that driver is not supported by my device. After that I tried the second answer in the same thread and run following command to enable monitor mode in my wireless card.  echo 1 &gt; /proc/brcm_monitor0   Then I saw a new Ethernet interface (not a wireless interface ) called prism0 in wireshark interface list. I couldn't start a sniff using that interface using monitor mode because in that interface settings, monitor mode check box has been disabled.  I have installed a broadcom wireless driver in Additional Drivers as follows:    Is there an error listing my Wifi interface as eth1 rather than wlan0 in the interfaces list? How can I start my wireless interface in monitor mode for sniffing?   Thank you.
119076
I have  a static IPv6 address I would like to assign.  When I add the address to the /etc/sysconfig/network-scripts/ifcfg-eth0 file and restart networking I realize I get several IPv6 addresses.  The first one is my static address (Prefix::host) and the second one is my autoconfiguration address (Prefix::MAC_ADDRESS).  I realized traffic was going out of the autoconfiguration address so my solution was to disable it.  I added "IPV6_AUTOCONF=no" to the /etc/sysconfig/network-scripts/ifcfg-eth0 file.  That solved the issue since the autoconfiguration address was gone.  However since there is no autoconfiguration I was not getting the default gateway.  I believe Solaris has something called "token based IPv6" where you can specify the host portion of the address and autoconfiguration still runs to assign the prefix, dns, and default gateway.  Can I do this in linux?
59803
I have multiple harddisks which get connected to my server and I'm not sure which one is what in the view of sdXY . If I can see the serial numbers of my harddisks from terminal, I can easily identify them.  Is there any way I can see them from terminal?
35760
I have purchased a TP-LINK TL-WN823N (EU) V2.0 device, which is a USB device that should work as a Network Interface Card, allowing me to connect my computer to wireless networks. Unfortunately, I am unable to find any wireless networks using this device using either wicd or network-manager (no networks appear in the list of networks supplied by either application).  A CD came with the device claiming "Linux support". The CD contained a URL to a corrupted archive file for downloading installation resources. I try to mask my immense frustration.  Here is the additional dmesg output I receive when I connect the device to my computer (similar content is present when I boot the computer with the device connected):  [17096.009912] usb 2-1.2: new high-speed USB device number 4 using ehci-pci [17096.103501] usb 2-1.2: New USB device found, idVendor=2357, idProduct=0109 [17096.103513] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [17096.103527] usb 2-1.2: Product: 802.11n NIC [17096.103529] usb 2-1.2: Manufacturer: Realtek [17096.103530] usb 2-1.2: SerialNumber: 00e04c000001   This is my lsusb, where the offending device corresponds to Bus 002 Device 004:  Bus 002 Device 003: ID 0a5c:5800 Broadcom Corp. BCM5880 Secure Applications Processor Bus 002 Device 004: ID 2357:0109   Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 004: ID 0c45:6433 Microdia  Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub   As lsusb -v:   It seems the device is working to me, but no new interface is found in 'ifconfig':  docker0   Link encap:Ethernet  HWaddr 02:42:6e:bf:92:16             inet addr:172.17.0.1  Bcast:0.0.0.0  Mask:255.255.0.0           UP BROADCAST MULTICAST  MTU:1500  Metric:1           RX packets:0 errors:0 dropped:0 overruns:0 frame:0           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)  enp0s31f6 Link encap:Ethernet  HWaddr 30:5a:3a:e1:96:b1             UP BROADCAST MULTICAST  MTU:1500  Metric:1           RX packets:0 errors:0 dropped:0 overruns:0 frame:0           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)           Interrupt:16 Memory:df200000-df220000   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:65536  Metric:1           RX packets:412 errors:0 dropped:0 overruns:0 frame:0           TX packets:412 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1           RX bytes:31876 (31.8 KB)  TX bytes:31876 (31.8 KB)   Running 'lshw -class network' as root contains only information about the 'enp0s31f6' interface.  Additionally for sanity, my 'uname -a':  Linux home-z170a-ubuntu 4.4.0-22-generic #39=Ubuntu SMP Thu May 5 16:53:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux   I am using Ubuntu 16.04.  My questions are:   Why are no networks present in the list for wicd or network-manager? Why is there no additional network interface created when I plug in the USB device? Is it possible to create this network interface?   Thanks for reading.
82477
I have two internet connections from two different ISPs and I need to balance the traffic originating to and from my network between the two ISPs. I am using Debian GNU/Linux.  My set-up is like this -  eth0 (192.168.0.0/24) -- Local network  eth1 (192.168.1.0/24) -- ISP #1  eth2 (192.168.2.0/24) -- ISP #2  My local network is connected to this server via eth0 and the box is the DHCP server cum Gateway for all the machines in the LAN.  The server needs to do load-balancing between the two ISPs and also needs to do NAT-ing.  I have followed the routing instructions on  but I still need instructions to do the NAT-ing properly.  Any help will be appreciated.   PS - I know about pFsense but I need to use Linux.
38473
I just want ask how the socket in the image is called?   I couldn't really find and the closer I could get is only Raspberry's module.
94759
I'm trying to understand some basic concepts of networking. I have following home LAN:     Is it right (like above) to have 2 NIC's each one having 2 different gateways on one station? There PC2 have 2 NICs - the first's one gateway is 192.168.0.1 the second's 192.168.1.1? Initially (just after system startup) the ip table is like that:  192.168.0.0    255.255.255.0         On-link      192.168.0.11    276 192.168.0.11   255.255.255.255       On-link      192.168.0.11    276 192.168.0.255  255.255.255.255       On-link      192.168.0.11    276    and when i run netcat:  nc -zv -s 192.168.0.11 192.168.0.11 80    to test if port 80 is open it works - the port 80 is indeed open. But when i remove the 192.168.0.11 route i got "TIMEOUT" on nc test. Shouldn't it pick 192.168.0.0 route and work? Moreover when i add the route manually:   route add 192.168.0.11 mask 255.255.255.255 0.0.0.0   it still doesn't work! I can't change the metric to desired value. When i run for eg. route change 192.168.0.11 mask 255.255.255.255 192.168.0.11 metric 500 the result metric is't 500 but 520! (no matter if auto-metric is enabled or not)? Is there any connection between -s flag (local source address) in netcat and routing table's Interface column?
54816
I am on Ubuntu 12.04, and the ip utility does not have ip netns identify &lt;pid&gt; option, I tried installing new iproute, but still, the option identify doesn't  seem to be working!.  If I were to write a script (or code) to list all processes in a network-namespace, or given a PID, show which network-namespace it belongs to, how should I proceed ? (I need info on a handful of processes, to check if they are in the right netns)
38878
I'm trying to set up a system that joins an untagged Ethernet network to a TAP tunnel, adding a VLAN tag as the traffic moves to the tunnel.  So far I have:   eth0 - the physical Ethernet interface carrying untagged traffic. tap1 - the TAP tunnel interface. br0 - a bridge that contains tap1 (and some other physical interfaces)   I know I can add a VLAN tag on the Ethernet side by doing this:  $ ip link add link eth0 name eth0.5 type vlan id 5 $ brctl addif br0 eth0.5   But how can I do the reverse?  Edit I've figured out I can do this:  $ ip link add veth0 type veth peer name veth1 $ ip link add link veth0 name veth0.5 type vlan id 5 $ brctl addif br0 veth0.5 $ brctl addbr br1 $ brctl addif br1 eth0 $ brctl addif br1 veth1   I think this does what I want - it creates two bridges, with a virtual ethernet device connecting them, and adds/removes the VLAN tag as the traffic passes between the bridges.  Is there anything simpler?
59312
I'm trying to set up apache2 server on Debian 9. I'm using an laptop with Ralink network-card, witch was able to use eth0, at Debian 8, with looks more familiar for me. Since I update my system to 9 my network interface has changed and looks something like this:  Iface      MTU    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg enp37s0   1500        0      0      0 0             0      0      0      0 BMU lo       65536      612      0      0 0           612      0      0      0 LRU wlo1      1500    36736      0      1 0         20492      0      0      0 BMRU   and  in the /etc/interfaces.d/setup file it's defined like:  auto lo iface lo inet loopback  auto eth0 iface eth0 inet dhcp   What is the enp37s0? And why am I connected to the router with wlo1, not eth0?   My routing table:  Destination     Gateway         Genmask         Flags Metric Ref    Use Iface 0.0.0.0         10.63.16.1      0.0.0.0         UG    600    0        0 wlo1 10.63.16.0      0.0.0.0         255.255.255.0   U     600    0        0 wlo1 169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlo1   Is that a proper configuration?
110382
Let me preface this by saying that I've taken a look at the other ethernet &amp; 16.04 issues on here and believe mine to be different.  I'm having issues connecting to the internet on a new installation of Ubuntu 16.04. I have an ethernet connection running to my desktop computer and am able to establish an internet connection via a separate operating system on the same machine. The motherboard doesn't have a WiFi card.  Here's the output from ifconfig:  shloosh@Desktop:~$ ifconfig enp2s0       Link encap:Ethernet  HWaddr e0:3f:49:7f:db:f5     UP BROADCAST MULTICAST  MTU:1500  Metric:1   RX packets:0 errors:0 dropped:0 overruns:0 frame:0   TX packets:0 errors:0 dropped:0 overruns:0 carrier:0   collisions:0 txqueuelen:1000    RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)  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:65536  Metric:1   RX packets:804 errors:0 dropped:0 overruns:0 frame:0   TX packets:804 errors:0 dropped:0 overruns:0 carrier:0   collisions:0 txqueuelen:1    RX bytes:61616 (61.6 KB)  TX bytes:61616 (61.6 KB)   enp2s0 is the interface name that Network Manager assigned to the ethernet connection. I find it strange that it doesn't have an inet addr assigned.  And lshw:  shloosh@Desktop:~$ lshw -C network    *-network                   description: Ethernet interface    product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller    vendor: Realtek Semiconductor Co., Ltd.    physical id: 0    bus info: pci@0000:02:00.0    logical name: enp2s0    version: 09    serial: e0:3f:49:7f:db:f5    size: 10Mbit/s    capacity: 1Gbit/s    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation    configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8168f-1_0.0.5 06/18/12 latency=0 link=no multicast=yes port=MII speed=10Mbit/s    resources: irq:26 ioport:e800(size=256) memory:fbfff000-fbffffff memory:fbff8000-fbffbfff   And my /etc/network/interfaces file:  shloosh@Desktop:~$ cat /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. # interfaces(5) file used by ifup(8) and ifdown(8)  # The loopback network interface auto lo iface lo inet loopback   And lspci:  shloosh@Desktop:/etc$ lspci -nnk | grep -e 0200 -e 0280 -A2 02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 09) Subsystem: ASUSTeK Computer Inc. P8 series motherboard [1043:8505] Kernel driver in use: r8169   And finally lsmod:  shloosh@Desktop:~$ lsmod | grep r816* r8169                  81920  0 mii                    16384  1 r8169   My routing table is empty. I'm new to Network Manager and fairly new to networking and am at a loss as to how to proceed. Any advice is appreciated.
45579
Sometimes I need to access some servers running Linux (or maybe another Unix-like SO), but I don't know how to verify which  is in use on the server (there are times that even the "responsible" person for the server doesn't know).   Is there an easy and reliable way to discover that, one that is uniform and consistent across all of them?