date int64 1,220B 1,719B | question_description stringlengths 28 29.9k | accepted_answer stringlengths 12 26.4k | question_title stringlengths 14 159 |
|---|---|---|---|
1,570,710,319,000 |
I'm trying to configure on Linux bonding active-backup (2 physical interfaces eth2 and eth3, one is used) but also with two VLANs, and later connect it to internal bridges.
I see two options for connections, both are working,
First method works fine and looks easy, but all VLANs are routed through single physical int... |
After day of searching and testing I found two solutions. First config maybe not elegant, but works:
# Using default ifupdown on Debian 11:
# Set up NIC and NIC's alias with VLAN:
auto eth2
iface eth2 inet manual
post-up ip link add link eth2 name eth2.10 type vlan id 10
post-up ip link add link eth2 name eth2... | Bonding with VLAN and bridge on Debian 11 |
1,570,710,319,000 |
I have disabled 802.1Q module in my Cento 7 VM and did arping through one of the interface to it's gateway IP and captured packet traffic on that interface from the same VM.
[root@vm1 ~]# lsmod | grep 8021q
8021q 33208 0
garp 14384 1 8021q
mrp 18542 1 8021q
[ro... |
Issue is with the decoding type I have selected. I selected decoding as VLAN for link and then selected decoding as do not decode. Thus somehow ended up with the above wrong decoding.
I just need to clear decoding to see the actual data and the VLAN tag is then added only when the 8021q module is loaded + when a VLAN ... | Why do I see VLAN tag in my ARP IP packet even though I have disabled the module 8021.q in CentOS 7? |
1,570,710,319,000 |
I am trying to set up a honeypot server in different VLANs. The company I work in has 3 VLANS: 10, 20, 30. My goal is to use a Raspberry Pi to host a simple honeypot and broadcast sniffer (for ARP and DHCP) in each of those VLANs.
I am connected via trunk to main switch, and for each VLANs, I think I would need a vir... |
For this "simple" case (ie not involving bridges and bridge ports, overlapping VLANs or any other fancy setup), you just have to create three vlan sub-interfaces with their default settings. Once done you can now consider you have three interfaces as usual and forget about the physical interface or VLANs. Default sett... | Hosting a simple honeypot server in each of 3 VLANs using one ethernet port |
1,570,710,319,000 |
A discussion with the manufacturer stated this configured is not supported or even possible with the router's hardware and OS.
|
Interpretation of the default setup so far:
The Realtek switch already tags frames with VLAN 1, the other LAN ports are tagged by the Broadcom switch and show up tagged on port 8, which is connected to the SoC. The WAN port shows up untagged on port 8 (if that's what the "u" means, the robocfg source is unhelpful her... | Isolating ports on a router |
1,490,767,764,000 |
When creating network interface files ifcfg-tttN (ttt in {eth,em,bond}) in /etc/sysconfig/network-scripts/ on RHEL/CentOS servers, what are the different values for VLAN_NAME_TYPE and what do they mean?
|
The parameter VLAN_NAME_TYPE defines the naming convention that you want to use for the VLAN device names, and thus for the file names.
Here are a few assumptions:
- I'm using interface eth0. The configuration is the same for a bonding interface, where the physical device name would be bond0, or for the new Dell nami... | What are the values for VLAN_NAME_TYPE when setting up a VLAN interface on Linux |
1,490,767,764,000 |
I try to setup VLANs on a virtual Debian machine. It's connected to an Cisco 2960 Switch.
The Switch has 3 VLANs (1,100,200) which're allowed the pass the trunk. The Switch Configurations was tested with an other layer2 switch, which was also configured as trunk. It worked perfectly so it has to be the VM.
The 8021q K... |
First of all, is the host machine network interface is connected to the trunked port ?
you can test this simple with the command vconfig to create the vlan interface on the fly,
# vconfig add [interface-name] [vlan-id]
# ( you will need 8021q module loaded )
# -e.g.
vconfig add em1 100
ip addr show
...
12: em1.100@e... | Debian VLAN (8021q) Configuration doesn't work |
1,490,767,764,000 |
I am working on an embedded system that will connect a processor running Linux to an Ethernet switch via a "conduit" Ethernet link (e.g. eth0) using the port-based Ethertype DSA (Marvell) frame tagging protocol, so that the Linux kernel will present the userspace with separate Ethernet links for each of the switch's u... |
OP said:
Are the dsa_loop and dsa_loop_init modules intended to allow EDSA tagging to be performed on a "normal" Ethernet link?
Yes.
The problem I was running into is the result of an ordering problem between these loadable modules and the fixed-phy layer code which was being compiled as a built-in module.
When the ... | Is it possible to configure Ethertype DSA VLAN tagging on an Ethernet port that has a real PHY connection to the outside world? |
1,490,767,764,000 |
I am attempting to use ebtables to match a specific VLAN ID (non zero) along with a specific VLAN PCP value.
I tried the following:
ebtables -A FORWARD -p 0x8100 --vlan-id 5 --vlan-prio 3 -j DROP
Ebtables does not complain (as the check has been commented out in ebtables), but the rule reported back using "ebtables -L... |
The explanation isn't really making sense, but here it is in the kernel at linux/net/bridge/netfilter/ebt_vlan.c:
if (GET_BITMASK(EBT_VLAN_ID)) {
if (!!info->id) { /* if id!=0 => check vid range */
if (info->id > VLAN_N_VID) {
pr_debug("id %d is out of range (1-4096)\n",
... | Matching vlan id and priority with ebtables |
1,490,767,764,000 |
I have developed a server using Linux. The server is a DHCP VLAN server consisting of two VLANs 110 and 120. I am trying to get it working to the client side.
My /etc/network/interfaces for VLAN 110
auto lo
iface lo inet loopback
#VLAN 110
auto enp0s9.110
iface enp0s9.110 inet static
address 192.168.110.1
... |
Since, as told in a comment by OP, the client is supposed to get tagged frames, then it's up to the client's system to untag it for normal operations. That means the client needs an additional vlan interface to untag the frames.
The vlan package should be installed, mostly for its plugin vlan-interfaces provided to if... | DHCP VLAN not working on the client side? |
1,490,767,764,000 |
I have been trying to configure the static IP addresses with Ubuntu 16.04 Dabian version. The network as follows in the graph
I have been failing to ICMP (ping echoing) between the Client and the HTTP server. Is there a way I can connect both of the Server and Client through the router 192.168.1.11 and 192.168.1.12? ... |
Let me quickly explain how VLANs work on the wire: A normal ethernet packet does not have a special field for the VLAN id. VLAN packets, on the other hand are a later extension that uses a new packet format which consists of all fields of the old format plus the additional tag, as definined in 802.1Q. So on the same w... | Network Interface VLAN static addressing |
1,490,767,764,000 |
I want to connect three of my computers in a LAN as nodes in a single VLAN. How do I do it? I know I can create a VLAN using the
vconfig add [interface name] [vlan id]
command. But how do I connect the other computers to the same VLAN?
Is the VLAN id, a local reference in a particular computer or is it visible to a... |
For physical servers, it is best to define a VLAN on your network / infra-structure.
Furthermore if you define a VLAN at interface level on your servers they won't be able to talk with your router to leave that network as the router won't be part of that VLAN. That is as you are defining a Virtual LAN, only the eleme... | Creating a VLAN |
1,490,767,764,000 |
Red Hat 5 Family & Red Hat 6 Family.
I haven't found documentation for anyone who has successfully set up an LACP pair, put two IP addresses on it, and then tagging the primary and Virtual IP address with two different VLAN numbers. Does anyone know of anyone?...
# cat /etc/sysconfig/network-scripts/ifconfig-bond0.123... |
Yes, you can do this, but your configs are a little off.
You don't need bonding information on the VIFs. That's handled a layer below on bond0. In these cases, I normally create an interface (like bond0), and then create my VLAN interfaces on top of that (such as bond0.123 and bond0.124). This works as expected, in th... | Bonded *and* primary & virtual IP addresses *and* VLAN tagged |
1,490,767,764,000 |
In a Ubuntu 20.04 machine connected to my home LAN, I created macvlans under my ethernet device:
$ sudo ip link add macvlan1 link enp37s0 type macvlan mode bridge
$ sudo dhclient macvlan1
$ sudo ip link add macvlan2 link enp37s0 type macvlan mode bridge
$ sudo dhclient macvlan2
By chance, they got the following addr... |
The Linux kernel detects incoming packets with a local source address, considers them a routing mistake (packets that a particular computer sends out should never come back), and drops them to prevent network flooding.
Try to put each macvlan into a different network namespace (after all, macvlans were designed to be ... | Why I can't ping between two siblings macvlans in bridge mode? |
1,490,767,764,000 |
For some very specific reason, I need to create 4 virtual interfaces with different MAC address on each virtual interface, the frames from those interfaces will needs be sent over a single physical interface without any VLAN tags (the device on other ends will look at my PC and thinks my PC is a dumb switch because fr... |
Thanks to LL3 I found out that this feature is called macvlan, for your reference I'll put the command here:
ip link add link eth0 address 00:cc:cc:cc:11:33 eth0mac2 type macvlan
ip link set eth0mac2 up
Source: https://serverfault.com/questions/576337/macvlan-interface-and-ppp-session
This can be used to create a L2 ... | Create multiple untagged virtual interface on a single physical interface |
1,490,767,764,000 |
I have the following routing rules (displayed using route -n):
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.2.1 0.0.0.0 UG 100 0 0 enp0s3
10.0.2.0 0.0.0.0 255.255.255.192 U 100 0 0 enp0s3.100
10.0.2.0 0.0.0.0 2... |
Firstly, it's best to only use the ip commands, so you should have used ip route show (or ip r for short) to list the routing table.
In this case, the route over the VPN is for 10.0.2.0/255.255.255.192 or 10.0.2.0/26. This subnet is 0 - 63. Your example destination 10.0.2.70 falls outside of this range, hence it's not... | Linux route selection not taking expected rule |
1,490,767,764,000 |
I have a physical system with Centos 6 as OS. In eth0 I set IP, gateway and netmask as below and the physical port is attached to a switch port that its VLAN is 12.
DEVICE=eth0
TYPE=Ethernet
UUID=20b60816-f5eb2e4
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.60.2
GATEWAY=192.168.50.55
NETMASK=255.255.2... |
Well, it seems gateway (also known as default gateway) is something different from what you think it is, since the way you have it configured looks incorrect to me.
The default gateway defines how the machine should try to reach an IP in a network it doesn't know about, which is not in any of the networks directly att... | system get wrong gateway when bonding |
1,490,767,764,000 |
I am novice at networking and am really new to vlan terminology. I want to separate my network to stuff and guest users depending on the switch port.
I prepared a lab with the following:
At switch I mirrored the port 10 to port 2.
At machine A with Linux, I installed wireshark and connected to switch at port 2
At ma... |
All packets which are sent from the VLAN interface are tagged with the respective VLAN ID. And that interface gets only those packets with its VLAN ID.
| Sending vlan-tagged packets from Linux |
1,490,767,764,000 |
on my RedHat 7, i noticed that network connection for Netbackup stopped working and i tried everything including rurning off my firewall and disabled SELINUX with no luck. the only thing i noticed different between this server and other servers is that port 1556 is listening on tcp & tcp6 where the same port on other ... |
It's hard to say exactly what's causing the error.
Having IPv6 enabled, and listening on the same port shouldn't cause issues.
Any system which has dual-stack capability should handle it fine.
I've found this bug report from Veritas (and I'm making an assumption that you're using what
they refer to as Netbackup) but I... | port 1556 listening on tcp6 causing issues |
1,490,767,764,000 |
8 port router over two switches (4+4)
Using kernel 2.6.x
I'm trying to setup private VLANs to enable port isolation on this router. Each physical Ethernet port should only be able to communicate with the eth0 interface (WAN) for Internet access.
Netfilter/iptables only sees the "br0" bridge interface, not the physical... |
You do not trust any of the (LAN) ports so the only tagged port should be the one of eth1.
It is not clear to be which interfaces are bridged and it may not matter for your case but iptables does see the bridge ports. Have a look at the physdev module.
| When to tag physical ports on private VLANs? |
1,490,767,764,000 |
My lab is on a VLAN. If the machines are connected to the VLAN they can connect to the Internet. If not they can't. Installing the VLAN package enables network connectivity. However, I don't know how load a .deb during an install. I tried installing a base system without network connectivity -- however, that failed wh... |
You don't need a VLAN package on Debian unless you are configuring the Debian box as a VLAN switch. As long as the Debian machine has a NIC in that VLAN that is routed to the Internet.
If machines are connected and during installation you configure the IP address and DNS server, are you able to scan the mirror during ... | Network Install Debian on a VLAN |
1,490,767,764,000 |
There's a requirement setup needs to address to our pSeries box. We have one p770 box intended to setup UAT and Development VM Clients, but the requirement is to set different VLANs per Environment (UAT & Dev).
Also a separation of VLANs with applications and databases, it will be assigned by specific VLAN ids by ou... |
You have a lot of options.
you could create multiple VIO servers and run DEV and UAT off different VIOs
you can create multiple SEA's on VIO servers and assign different physical adapters to each of the SEAs
you can assign multiple VLANs to the same SEA as long as the network side is set up for it (referred to as VLA... | How can i set-up VIOs multiple VLANs in our p770 box? |
1,503,054,508,000 |
I installed Debian 9 stretch (GNOME desktop) 64-bit on my PC. My USB wireless adapter (TP-LINK TL-WN722N) was detected automatically after installing atheros firmware:
apt-get install firmware-atheros
But I can't connect to any wireless framework, whether they are protected with password or unprotected.
I plugged my ... |
Somehow, my firmware got trouble with long interface name. So I ran this command to prevent it:
ln -s /dev/null /etc/systemd/network/99-default.link
and it worked.
| "aborting authentication by local choice (Reason: 3=DEAUTH_LEAVING)" when trying to connect to wifi |
1,503,054,508,000 |
I built an embedded Linux using Buildroot and I have some trouble to stay connected to my AP. Cannot get an IP address more than once.
I use wpa_supplicant to connect to my AP using WPA2-PSK. It works with other AP such as my smartphone in AP mode.
When I use iwconfig wlan0 I see that I'm associated with my AP
wlan0 ... |
I changed the "Auto channel" option to a fixed channel and the "Channel width" option to 20 MHz in my AP and it solved my problem.
| How to fix "deauthentication by local choice"? |
1,503,054,508,000 |
I use wpa-conf in /etc/network/interfaces to make the WLAN interface automatically connect to the AP:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
... |
As for /etc/network/interfaces, when you install wpa-supplicant, a script hook is installed in:
/etc/network/if-down.d
/etc/network/if-post-down.d
/etc/network/if-pre-up.d
/etc/network/if-up.d,
The hook is called wpasupplicant and is a symlink to /etc/wpa-supplicant/ifupdown.sh, that invokes in turn /etc/wpa-supp... | Where is wpa-conf documented? |
1,503,054,508,000 |
I was trying to fix my wifi on Kali Linux the other day and was following some tutorial. That didn't work, so I read somewhere that if I run this command
iw dev wlan0 del
After that command I can't seem to find my wlan device. When I type iwconfig it shows this:
lo no wireless extensions.
eth0 no wirele... |
Easiest way is to just reboot. The type of configuration change you've made does not persist across reboots.
| Accidentally deleted my wifi device wlan0 |
1,503,054,508,000 |
I recently bought this WLAN adapter on Amazon.
When I attempt to switch to monitor mode:
ifconfig wlan1 down
iwconfig wlan1 mode monitor
ifconfig wlan1 up
I receive the following error:
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan1 ; Invalid argument.
This adapter is listed as follows... |
According to this, https://wikidevi.com/wiki/R8712u your chipset does not supports monitor mode.
Not all combinations of hardware/software support wifi monitor mode. Like any other functionality implemented in silicon/firmware, be it listening to the media, sending and listening to packets, monitor mode has to be usua... | How to run my RTL8191SU USB Wifi adapter in monitor mode on Linux? |
1,503,054,508,000 |
(I was trying and trying for hours to find a workaround, which proved much harder than initially expected.)
The problem itself is easy to understand, though. I recently installed a GUI-less Debian derivative on one of my machines and configured /etc/wpa_supplicant/wpa_supplicant.conf to access one of my access points ... |
To debug what wpa_supplicant is doing, wpa_cli status will give information about whether wpa_supplicant still thinks it's connected to an AP, or searching for a new AP.
Wpa_supplicant needs to be in roaming mode to automatically switch between networks. You enable roaming by using a wpa-roam entry after the iface sta... | wpa_supplicant doesn't auto-change AP |
1,503,054,508,000 |
How can I encrypt/hide my - wpa-psk "password" - line in the /etc/network/interfaces file? Since it's uncovered and readable for everyone who can get in the file now.
Or is it better that I use something else if I don't want to store my blank wifi password in a file?
I'm running on debian without desktop environment.
|
The best you can do is hash the password. Set wpa-psk to the output of:
wpa_passphrase <SSID> <KEY>
This will obfuscate the password, but it will not prevent someone else from using the hash to connect with another device.
As an additional measure you should also set /etc/network/interfaces file permission to rw-----... | How to encrypt/hide password in /etc/network/interfaces file on debian? |
1,503,054,508,000 |
i have been fiddling with wpa supplicant for days now and i've finally come to the point where i can't find any new leads on google. so here is the problem: i just installed a new tp-link tl-wn881nd pci-e wifi card on my desktop pc running debian wheezy. wlan0 claims to be connected (ish? see below) to the access poin... |
the bloody wifi card wasn't plugged in to the pci-express slot properly! i took it out, blew the slot to get any dust out and pushed it in really hard this time. now all is working fine:
# the wifi led is not lit up on the outside of the pc case
$ sudo ip link show wlan0
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc... | wpa_supplicant nightmares |
1,503,054,508,000 |
How can I read out WLAN RSSI value for each radio channel from command line? Target system would be either Ubuntu 15.04 or Raspberry Raspbian.
By RSSI, I mean the raw received power, before any WLAN specific L1 operations. This is pretty much same way as in the 3GPP WCDMA, RSSI value means the raw energy received on ... |
As I wrote above, following utility does what is required: https://github.com/simonwunderlich/FFT_eval
This one uses laptop's existing WLAN card (assuming card has certain chipset) to make the proper FFT scan over WLAN band.
This utility can be set up to measure by e.g. one minute intervals when script is added to cro... | How to scan WLAN RSSI in command line? |
1,503,054,508,000 |
I've some problems with the wlan0 interface on an embedded linux distro (compiled with yocto). The problem is that when I use the command:
iwconfig
the wlan0 results with no wireless extensions. But if I write the command:
iw wlan0 scan
it works correctly! And it also works well if I use connman as connection manag... |
It sounds like either your kernel or the driver for the wireless interface will only support the newer cfg80211 configuration interface used by the iw tool, not the older wireless-extensions interface used by iwconfig.
Does your kernel configuration enable the CONFIG_WIRELESS_EXT option, and/or the CONFIG_CFG80211_WEX... | iwconfig: wlan0 no wireless extensions |
1,503,054,508,000 |
Trying to connect to my WLAN on an Acer Travelmate 2301LM. System installed is a Puppy Linux Wary 5.3.
Since it doesn't have an internal adapter, I'm trying to integrate a Netgear N300 WLAN-USB-Mini-Adaptor - precisely a WNA3100M.
The Puppy Internet Connection Wizard doesn't list the wireless device.
If I plug it into... |
your device is not defined on http://wireless.kernel.org/en/users/Devices/USB I also don't see what driver is needed for the chipset. I assume you can use wext driver since it is a generic one, but you need to load the module by modprobe if you don't see the driver on lsmod. But before it, you need to be able to see i... | Connecting to wireless USB adapter - Puppy Linux Wary |
1,503,054,508,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,503,054,508,000 |
I have just installed wifite on Debian GNU/Linux 8 (jessie). And when I execute it from Gnome-terminal started to loop prompting this:
enabling monitor mode on wlan0... done
How can i fix it?
|
It could have multiple causes:
Have you installed aircrack-ng?
Does your wireless card support monitor mode? If it's your laptop's internal card, it probably doesn't. Here is a list of recommended cards https://forums.kali.org/showthread.php?19387-802-11-Recommended-Wireless-Cards
The versions of wifite and aircrack-... | Wifite problem (loop when I execute) |
1,503,054,508,000 |
For Nokia N900 there is an app called AutoDisconnect which monitors the WLAN usage and closes the connection if the traffic is very low.
I'd like to have something like this on my future notebook in order to save battery life, i.e. to auto disable WLAN when not needed. Is there any solution to achieve this in Linux? I... |
You can use some bandwidth monitoring tool, such as vnstat, for this. To install it on Linux Mint, do:
sudo apt-get install vnstat
Then, you can monitor the average speed of your connection over some specified time, and if the speed comes out to be lower than some specific limit, then turn off your WLAN.
So, let's s... | Auto disconnect from WLAN if unused |
1,503,054,508,000 |
I am trying to use Fedora 19 on my Lenovo Yoga 13. A common issue with this setup is that the laptop's Wi-Fi does not work out of the box on any Linux distribution yet. This question and also this question is very similar to mine, in which the askers found working WLAN drivers but had trouble installing them. However,... |
You can yum install from a local repository rather than a network one. If you haven't installed any updates on your system (and it sounds like you haven't), you can use the installation DVD (although not the Live CD / Live USB) version. There are instructions for this in the install guide; the quick version is to moun... | Installing developer libraries for Fedora 19 without internet connection |
1,503,054,508,000 |
I have a LXLE 18.04 LTS and wlan adapter with name wlp7s0b1, which I'm not comfortable with.
Recommended by all /etc/udev/rules.d/70-persistent-net.rules is not present in my installation, although udev is.
/lib/udev/rules.d/75-persistent-net-generator.rules is successfully missing from my distribution and udevadm tri... |
I am very interested in pci-0000:07:00.0-bcma-1. I believe this can be used as a unique identifier instead of a MAC.
Right, the ID_PATH can be used to rename the interface name.
Create a /etc/systemd/network/10-rename-wlp7s0b1.link with the following content:
[Match]
Path=pci-0000:07:00.0-bcma-1
[Link]
Name=wlan0
... | How to propertly permanently rename network interface in LXLE? |
1,503,054,508,000 |
I want to configure guessnet and wpa_supplicant such that if I plug in my LAN cable, it connects to the network via the cable and if I unplug it, it automatically switches to WLAN and vice versa. I managed to make it work, however if I unplug the cable, it takes 10 to 20 seconds to connect to the WLAN network, which i... |
Try looking into route metrics. You should be able to sort this by inserting two default routes with different metrics to your routing table. Metrics are used to determine the cost of a route, a route with a lower cost is considered better and will be chosen over other higher cost path.
If you want your LAN-interface... | Configure guessnet to switch automatically between LAN and WLAN |
1,503,054,508,000 |
I'm new to FreeBSD, it's working fine one my Laptop. Only problem is, that my wifi device isn't in ifconfig so I can't use it. I tried a lot of reading but I couldn't get it to work. How can I get my Broadcom chip to work?
Model: Acer Aspire 5820TG
# uname -a
FreeBSD rindtop 10.2-RELEASE-p7 FreeBSD 10.2-RELEASE-p7 ... |
Broadcom has always ignored FreeBSD and fail to supply drivers so we choose to use other wifi devices, mostly Atheros. As of a year ago, I don't see anyone getting that chip to work and can't find it in the FreeBSD hardware compatibility list.
You'll find far more responses and questions about this on the FreeBSD wif... | FreeBSD Broadcom BCM43225 Setup |
1,503,054,508,000 |
I am troubleshooting WLAN connections from my laptop. I have several possible WLANs to connect to. When connection is established, I am unable to see to which AP I am connected.
In my /var/log/daemon.log I only see the DHCP negotiation, but I don't see the AP info.
I am using Debian and dhclient.
Is there a way to ge... |
Try iwconfig, it might be in the wireless-tools package if not already installed.
| WLAN: get info about AP |
1,503,054,508,000 |
Following these instructions, I found that phy0 on my desktop should support wake on wlan and turned it on.
[root@Arch alex]# iw phy0 wowlan show
WoWLAN is enabled:
* wake up on magic packet
However, when I suspend the system and try to wake it up from a distance, it doesn't work:
[alex@Archlaptop tmp]$ wol 44:E5:17... |
I found the problem: I had to use wakeonlan with the -i=<ip> option (with ip of course replaced with the ip of the system).
| Wake on wlan should work but doesn't |
1,503,054,508,000 |
I need to install remotely Omxplayer on a Raspberry Pi.
RPi is connected by a LTE modem through PPP0 interface.
My RPI is placed another country and I connect to Raspberry through my VPN using SSH.
My VPN does not have access to Internet and the default gateway is 10.1.64.1 (PPP0).
RPI has also WiFi Connection: WLAN0 ... |
If I understand correctly you have this arrangement:
(Client)---LAN?---(VPN)---ppp0---(Raspberry Pi)---wlan0---(the internet)
You mentioned that when you change your default route to use wlan0, you lose SSH access. You also indicated that you can't access the internet through ppp0 (through your VPN).
If you just wa... | How can I select the network interface for installing a program in linux? |
1,503,054,508,000 |
I have a Linux machine that creates a Wifi hotspot. I need to simulate a few clients connecting to that hotspot and then using that connectiong to talk to a service, through the wlan interface. The service is running in it's own process and the clients would be connecting from another process. Is there a way to achiev... |
Have a look at the mac80211_hwsim kernel module. This module simulates a number of virtual "radios" (wifi cards, or phys) that communicate with each other. E.g.,
modprobe mac80211_hwsim radios=3
will give you 3 of those. Use iw dev to view them and see their MAC address. Then you can use iw and ip to configure them, ... | Linux emulate multiple Wifi connections |
1,503,054,508,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,503,054,508,000 |
switching from Ubuntu 14.04 to Debian jessie (LXDE) on a ThinkPad T500
Lan (eth0) is configured in
/etc/network/interfaces
and works fine.
After setting up LXDE i wanted to switch to WLAN and it lasted hours to get it running.
tried wicd and network-manager with different configurations and browsed many forums.
I... |
There are three reasons, history, purpose and philosophy. Debian is much older than Ubuntu, and is hesitant to break things that work, particularly when the replacements require user intervention. Ubuntu is newer and had no install base when they developed their solution. Ubuntu is designed to be easy to use, Debian i... | Why is setting up WLAN in Debian so hard? (compared to Ubuntu) [closed] |
1,503,054,508,000 |
I'm installing a Angstrom (custom build, not the default build) on a Beagleboard XM.
I can scan for wireless networks using iwlist and see the neighborhood wireless devices.
I have set my SSID and Key (a 10-digit hex code using lowercase) in /etc/network/interfaces
When I do a ifup wlan0, it goes through the process o... |
Thanks to @slm for sending me to the how-to reference.
It appears the biggest issue was that NetworkManager was running and because I have no GUI (the BeagleBoard version of nmcli does not have the "connect" feature allowing for the creating of new interfaces on the command-line, and I am only connecting to the beag... | Why is my wlan0 interface on Angstrom (Beagleboard) "Not Associated"? |
1,556,748,703,000 |
I'm trying to setup the WiFi connection on my Lenovo B590 but I get the following error :
ifdown: interface wlan0 not configured wpa_supplicant:
/sbin/wpa_supplicant daemon failed to start run-parts:
/etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Internet Systems Consortium DHCP Client 4.2.2... |
If your system is not reporting a device wlan0 as available then the Linux kernel was unsuccessful in detecting your hardware and associating a driver to it. I would start by looking in the dmesg output for any messaging related to the Broadcom device.
If it's being reported there in any way then the appropriate driv... | Why is my BCM43142 chipset is not recognised and device wlan0 not found? |
1,556,748,703,000 |
I wish to use a laptop and simultaneously connect wirelessly to an intranet and to the Internet. Assume the subnet IP address ranges are 192.168.0.X for the network with Internet access and 10.10.0.X for the intranet. I'm running Arch Linux on a 2017 model Lenovo ThinkPad. It seems that my wireless card supports combi... |
Your interface combinations
* #{ managed } <= 1, #{ AP, P2P-client, P2P-GO } <= 1, #{ P2P-device } <= 1,
total <= 3, #channels <= 2
clearly say "number of simultaneous managed interface must be less or equal than one". In other words, you can't add a second interface of type station (which is the same as managed).
S... | How to simultaneously connect to two different networks via WiFi access points (laptop with one WiFi card) |
1,556,748,703,000 |
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... |
Please do see Chapter 2. What's new in Debian 9 from the Release Notes for Debian 9 (stretch), 64-bit PC
2.2.9. New method for naming network interfaces
The installer and newly installed systems will use a new standard
naming scheme for network interfaces instead of eth0, eth1, etc. The
old naming method suffered... | Debian 9; setting network devices for an www server |
1,556,748,703,000 |
I'm looking for a simple way to configure an external Access Point (IP address, SSID, WPA key, turn WiFi on/off, etc.) via Linux command line instead of the standard web interface that APs offer.
This could be either an off-the-shelf AP that offers this feature, or a procedure to accomplish this with any standard APs... |
You'll (almost certainly) need to flash a custom firmware on the AP to enable this functionality. The two most common firmwares to use for this are OpenWRT and DD-WRT. They're very similar but have slightly different hardware compatibility lists. If you already have the AP check to see if one of them support it. I... | Access Point configurable via Linux [duplicate] |
1,556,748,703,000 |
I've changed my PCI wireless cards several times, and the wlan# interface numbers keep increasing by one. To be more specific, the first wifi interface name was wlan0, after removing that card and installing new one to same slot, the interface name became wlan1 after another one it became wlan2 and so on.
I've been wo... |
You can Found the entries at /etc/udev/rules.d/70-persistent-net.rules
| DEBIAN - How to clean known wifi interface list |
1,556,748,703,000 |
Debian Wheezy on ARM: wlan0 works with DHCP but doesn't work with static IP.
This is my /etc/network/interfaces
auto lo wlan0
iface lo inet loopback
iface wlan0 inet static
wpa-ssid "mySSID"
wpa-psk "myPASS"
address 10.1.30.33
netmask 255.255.0.0
gateway 10.1.1.1
But it doesn't work: I get the interface liste... |
A few things to consider here:
What's the output of route command? There should be a
"default" destination listed.
cat /etc/resolv.conf should have
at least one address in it. mine is 127.0.0.1 but can be your routers
address or others.
Are you actually connected to a router? try iwgetid I believe that shows the con... | Cannot configure wlan0 with static ip? |
1,556,748,703,000 |
I have a mid-old laptop that I want to use for learning more details about Linux, so I decided for a first-time Gentoo installation. I can only connect via WLAN to internet with this laptop. My router only supports WPA(2). My biggest USB stick has 2GB for the live linux, so the full Gentoo live DVD (larger than 2GB) i... |
Just Download a Live-Distro of your choice (with wpa_supplicant) with the same arch (32/64 bit) you'll choose for gentoo later, too
Create a bootable USB-Stick from it
Boot from the USB-Stick
Most of the upcomping steps require root privileges, so you could do a su in your Live-Distro and go on as root.
Create your p... | What live linux smaller 2GB and with pre-installed `wpa_supplicant` is suited best for Gentoo installation? |
1,556,748,703,000 |
I have a Compaq CQ58 laptop with fresh Debian 12. I would like to fix one problem, namely the non-working WLAN on/off button. Constantly lights up yellow (it should be either yellow or blue) and does not respond to pressing. xev does not catch its pressing.
|
Debian 12 ships with the latest Linux LTS when it was released: Linux 6.1
For the 6.1 version the driver handling WMI keys exists:
CONFIG_HP_WMI:
HP WMI extras found in drivers/platform/x86/Kconfig
The configuration item CONFIG_HP_WMI:
prompt: HP WMI extras
[...]
found in Linux kernels: 2.6.29–2.6.39, 3.0–3.19, 4.0–... | HP Wlan button and led dont't work |
1,556,748,703,000 |
With the following configuration on Devuan Chimaera Linux:
/etc/network/interfaces
auto wlan0
iface wlan0 inet dhcp
pre-up /sbin/wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
post-down /usr/bin/killall -q wpa_supplicant
/etc/wpa_supplicant/wpa_supplicant.conf
network={
... |
quoting from man:
the ifup and ifdown commands may be used to configure (or, respec-
tively, deconfigure) network interfaces based on interface definitions
in the files /etc/sysconfig/network and
/etc/sysconfig/network-scripts/ifcfg-<configuration>
while
Ifconfig is used to configure the kernel-resident network
int... | How to make dhclient run when wlan0 is brought back up (but already has an old address) |
1,556,748,703,000 |
I'm brand new to server configuration. I'm just a developer, so forgive me if I don't understand what you're talking about, if I haven't posted enough information, or if I don't understand your terminology.
You should know that my SSID is hidden. I have confirmed both the SSID and passkey are correct on a computer th... |
You are missing the wpasupplicant package. You need to install it properly first.
You can do it with apt-get as below:
apt-get install wpasupplicant
Make sure it is properly installed.
And then to be on the safe side, put double quotes around the values like following and try again:
wpa-ssid "mySSID"
wpa-psk "myHashe... | Failure starting Wlan connection with wpa_supplicant? |
1,556,748,703,000 |
I'm trying to set up an own Cloud Lab on a self-built server.
Server details:
Board: Gigabyte Z77MX-D3H TH
CPU: Xeon E3-1245 v2
16GB Crucial Ballistix CL8 1600Mhz
NETWORK: ALFA AWUS036H
additional crap (like crap-hdd, cooler, etc).
I can only use (at this moment) a wireless connection because the box is far away fro... |
You should use devstack. Have a look at the instructions here:
http://devstack.org/guides/single-machine.html
| Problems setting up own Cloud Lab |
1,556,748,703,000 |
Proxy server
In computer networking, a proxy server is a server application or appliance that acts as an intermediary for requests from clients seeking resources from servers that provide those resources. A proxy server thus functions on behalf of the client when requesting service, potentially masking the true orig... |
If the Xisilon.Xyz network has a proxy available, and the network administrator has set up the proxy auto-discovery information correctly, then yes, the web browser(s) and any HTTP/HTTPS features of your Kali desktop environment should use that proxy if you set that setting to Automatic.
The proxy may still be set to ... | proxy in kali linux |
1,556,748,703,000 |
I'm trying to make the WLAN USB stick connect to a wireless network.
There was an official Linux driver available for download (v4.0.2_9000.20130911, which supports my Linux kernel version) and I used wifi-radar
Both had no success in making it work. Probably the driver is not compatible with my Oracle Linux (based ... |
After plugging the USB in and out and running the updated script again I made it work. I also ran the install.sh script provided with the driver, but it seems that was not needed. Here is my setup:
# cd RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911
# make
(no errors... | Setting up a WLAN usb stick |
1,406,187,154,000 |
I'm using a Flask application with virtual environment. When I start the server, I can access it locally via the IP 127.0.0.1:5000, but I'd like to make it accessible on my WLAN (pointing at 10.0.0.1:5000). I don't know if it is possible, the fact that virtual environment kind make my server sandboxed.
I tried naively... |
Why don't you make Flask to listen on all public IPs.
http://flask.pocoo.org/docs/0.10/quickstart/#a-minimal-application
Externally Visible Server
If you run the server you will notice that the server is only
accessible from your own computer, not from any other in the network.
This is the default because in debu... | Is it possible to redirect a local port to a LAN port? |
1,406,187,154,000 |
The problem concerns a driver support regression for the RTL8192CUS WLAN chip under antiX 13.1, a Debian Wheezy (stable) based distribution.
The chip actually resides in a Edimax EW-7811Un 802.11n wireless adapter.
First, here is some general system information.
$ inxi -F
System: Host: 4000cdt Kernel: 3.7.10-antix.... |
FATAL: Module p80211 not found. is usually an indication that the provided driver is outdated for the used kernel.
Moreover, current version 3.4.4_4749.20121105 of Realtek's driver will not compile with the latest Linux kernels. The solution consist in installing a downgraded kernel, compiling Realtek's driver on it a... | FATAL: Module p80211 not found. RTL8192CUS WLAN regression under antiX 13.1 (Debian Wheezy) |
1,406,187,154,000 |
I have recently installed Debian 10.9 with KDE. And tried to use WiFi and learned that my wlan is unclaimed by doing this:
neevan@nebian:~$ sudo lshw -C network
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: R... |
Install the wifi driver from lwfinger/rtw88 git repository:
sudo apt-get update
sudo apt-get install make gcc linux-headers-$(uname -r) build-essential git
git clone https://github.com/lwfinger/rtw88.git
cd rtw88
make
sudo make install
sudo modprobe -r rtw_8723de
sudo modprobe rtw_8723de
echo "options rtl8723de ant_s... | drivers issue for Realtek RTL8723DE wlan on debian 10 with kernel 5.10 |
1,406,187,154,000 |
tcpdump -i mlan0 -n
tcpdump: verbose output suppressed, use -v or -vv for full protocol
decode listening on mlan0, link-type EN10MB (Ethernet), capture size
262144 bytes
Why is this Ethernet here? I am using wifi, not an Ethernet.
decode listening on mlan0, link-type EN10MB (Ethernet), capture size
262144 ... |
Why is this Ethernet here? I am using wifi, not an Ethernet.
Because you're not capturing in monitor mode; on most operating systems, the only way to get 802.11 headers, rather than fake Ethernet headers, on a Wi-Fi capture is to capture in monitor mode. This includes Linux, OS X, and Windows (although WinPcap does... | Itcpdump output - why is it showing an Ethernet status? |
1,406,187,154,000 |
I have downloaded g2ipmsg from http://www.ipmsg.org/archive/g2ipmsg-0.9.6.tar.gz
While installing this package, it is causing some error.
checking for G2IPMSG... configure: error: Package requirements (libgnomeui-2.0 >= 2.14
gtk+-2.0 >= 2.4
glib-2.0 >= 2.8) were not met:
No packa... |
Ensure that you have the package libgnomeui-2.0 mentionned into the error message correctly installed. Depending of your distribution, use apt-get or yum to install it.
You may also need to install gtk+-2.0 and glib-2.0 (install first package and check the updated error message if any).
| Installation causing error |
1,406,187,154,000 |
I have two network interfaces on a client PC, one wired, one wireless. The
wired is connected directly to a server PC running DHCP, which gives the
client PC a 10.0... address. The client PC also connects to a wireless
router, which gives it a 192.168... address. This was all set up and
detected automatically by Netwo... |
Ok, I figured it out by looking at the answer to this question:
NetworkManager changes default routing policy
To summarize:
Open up NetworkManager's graphical connection editor
$ nm-connection-editor
In the GUI:
Click on "Wired connection 1".
Click on the gear button for settings.
Click on the "IPv4 Settings" tab.
Cl... | Set up wired ethernet LAN to coexist with wireless WAN using NetworkManager |
1,406,187,154,000 |
Straight forward wifi client to infra AP connectivity from debian by using wpa_supplicant
wpa_cli -iwlan0 add_network
1
wpa_cli -iwlan0 set_network 1 ssid '"myssid"'
OK
wpa_cli -iwlan0 set_network 1 psk '"mypwd"'
OK
wpa_cli -iwlan0 enable_network 1
As result "Association request to the driver failed"
in syslog strang... |
It is related to interesting side effect of driver initialization optimization. I have one physical wireless adapter with two virtual interfaces: client (managed) and hotspot (access point). The correct order of load is AP and then Managed (this is another issue, not sure where it comes from). When both interfaces are... | Unable to establish connection with MLME connect failed: ret=-1 (Operation not permitted) |
1,406,187,154,000 |
I am using rpi v3 so I have wlan as well. With this network config, when I am connected to wlan, I have internet access:
auto lo
iface lo inet loopback
iface eth0 inet manual
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
allow-hotplug wlan1
iface wlan1 inet manual
... |
Remove the gateway entry under eth0. This adds a default route via 10.10.10.5, which is not what you want if internet traffic is supposed to go through wlan0.
| No internet on wlan then eth0 set to static |
1,406,187,154,000 |
I know how to make a wifi hotspot on my linux machine(using Manjaro with i3 DE), also I managed to connect my iPhone to the wifi connection I made, but the goal is to start lampp and make my iPhone and other devices, like another PC, a smart TV have access to my localhost server.
Is it possible to make this even witho... |
Thanks for the replies, actually it worked by itself :D
I had to create the hotspot via NetworkManager, and then start lampp, or the other way, the order doesn't matter.
The problem was that I tried to access localhost, instead of the my IP :D
So after I tried to access my IP, it worked as desired. Sorry for wasting ... | How can I create a wifi hotspot and share my localhost across |
1,406,187,154,000 |
Im using a 3G USB huawei modem to get access to the internet, therefore, i have an active ppp interface addressed.
I want to share this access with my wlan interface so that every device that will get connected to my wifi hotspot will get access to the internet too.
How can i do that?
Thanks
|
In ubuntu 14 or ubuntu 15, you can use this command :
- first, you activate routing :
sudo echo 1 > /proc/sys/net/ipv4/ip_forward
- second, you write a dynamic translation rule source IP address.
sudo iptables -A POSTROUTING -t nat -s address/mask -o internet_interface -j MASQUERADE
where adress/mask is a address r... | How to share a ppp internet connection over wlan interface on ubuntu? |
1,406,187,154,000 |
My router (Netgear DGN-2200-64) has a USB port usable as SMB storage (with the default firmware - I guess it's Linux under the hood). I plugged in an old flash disk (FAT formatted I think) & set it up without access restrictions (it's only accessible from the local network).
I'd like to set permissions on a folder (eg... |
The FAT formatting won't allow you to set any permissions. There is no way to change that since FAT can't store that kind of meta-data.
(Well, actually, from Linux side, you can specify permissions while mounting the FAT device, but the permissions will be the same for all that device and I think you can't change the ... | Setting permissions on SMB |
1,406,187,154,000 |
I removed gnome(running bare openbox)and now lan and wlan both do not work anymore.
I used this to set up my wifi before, but now it does not work anymore and insmod tells that the file already exists, even though I did not insert the module yet:
How to check if USB WiFi-Adapter is not working or router is out of rang... |
Check all interfaces by running ifconfig -a and then run ifup command on disabled interfaces, e.g. ifup eth0
| No internet connection after uninstalling gnome [Fedora + Openbox] |
1,406,187,154,000 |
I have a tftp server on lan 192.168.0.0/24
I want a qemu vm reach it, with ethernet is simple
a) First create br0
MAC1="52:54:$(dd if=/dev/urandom count=1 2>/dev/null | md5sum | sed 's/^\(..\)\(..\)\(..\)\(..\).*$/\1:\2:\3:\4/')";
nmcli con add ifname br0 type bridge con-name br0 bridge.mac-address $MAC1
b) then add ... |
Waiting for better solution
I consider ok this solution atm: the wifi cannot be "bridged" for a driver issue or limit.
| A solution to bridge wlan0 or permit to use the same lan for tap/br? |
1,406,187,154,000 |
I have computer that only have Wifi network. There is no RJ45 socket. I have to configure Wifi using command line.
My Wifi:
Authentication : WPA2-Personal
Cipher : CCMP
Connection mode : Profile
Channel : 1
On FreePBX I have file: /etc/wpa_supplicant/wpa_supplicant.conf:
... |
You should give the full path to the configuration file wpa_supplicant.conf
killall wpa_supplicant
wpa_supplicant -B -i wlan0 -D wext -c /etc/wpa_supplicant/wpa_supplicant.conf
| FreePBX configure wifi from command line WPA2 |
1,406,187,154,000 |
LG G3 Android 5.0 device, rooted with Linux Deploy app, Kali Linux 2.0 installed with all components.
I'm connected to Kali Linux through SSH and trying to monitor wireless traffic.
$ ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 34:...:b9
inet addr:172.20.10.6 Bcast:172.20.10.15 Mask:255.255.255... |
This may happen if wlan0 WiFi adapter does not support monitor mode.
Specifically, LG G3's internal WiFi device does not support monitor mode.
| wlan0 disappears after running airmon-ng on Android running Kali Linux |
1,406,187,154,000 |
I have a TP-LINK TL-WN823N wireless usb stick (Realtek Module 8192cu) for my desktop. I cannot get the network manager to use it.
Wicd says no wireless networks found and the standard network monitor says wireless is disconnected.. I have executed the instructions at https://wiki.debian.org/rtl819x. At the bottom I ha... |
Edit the configuration file in wicd to direct it to wlan1, since it is being registered but not seen.
sudo nano /etc/wicd/manager-settings.conf
and set instead of wlan0 or none
wireless_interface = wlan1
| Cannot get TP_LINK / TL-WN823N / Realtek 8192cu usb wireless adapter to be utilized on Debian Wheezy |
1,406,187,154,000 |
I have 150 mining servers. They all have own ssd drives, and EthOS distribution based on Ununtu. Now I want to crate centralized server without ssd. All machines will connect by wlan and take the image of OS from central server. I have read about LTSP open source project that gives you posibility to make this. But thi... |
LTSP is probably not the best option here. DRBL might be a reasonable option, but I don't know how well it works (if at all) with ethOS. I would suggest asking on the ethOS IRC channel about netbooting diskless systems. I would be kind of surprised if it's not reasonably possible (though some distros, notably Alpin... | Creating "fat" Termimal multiboot server LTSP |
1,577,802,032,000 |
we want to capture the disk device that belong to the OS ( Linux )
since each linux machine have list of disks that are not the OS , we want to capture the disk that belong to the OS
so by fdisk we can see that boot is on sda1
# sfdisk -l | grep Linux
/dev/sda1 * 0+ 63- 64- 512000 83 Linux
/d... |
I find the simplest command to identify the operating system disk
to be df /.
Unfortunately, it produces a lot of output
(by which I mean a header line and many fields),
so you would still need to do some filtering
to get just the device name.
You're right; your command is overly long and somewhat clumsy.
awk is a ... | Linux + how to capture the OS disk device [closed] |
1,577,802,032,000 |
lsblk -d -o NAME,SIZE,TYPE | grep disk
show me the such things
sda 894.3G disk
sdb 894.3G disk
sdc 3.7T disk
sdd 3.7T disk
nbd0 64G disk
Are the sda and sdc have sdb and sdd similarly physical devices?
Either they're "physical" and "logical" devices?
It's not my own server, so I cannot see its specificati... |
Yes, those are 5 separate disks. You have 4 disks connected via the SCSI interface (sda, sdb, sdc and sdd). You also have one network block device, a physical disk on a remote machine that has been made available to your machine over NBD.
This is quite a normal setup (apart from the NBD which isn't very common these d... | Why the output of lsblk have almost the same lines? |
1,577,802,032,000 |
sudo lsblk --fs -o NAME,FSTYPE,SIZE,FSSIZE,FSUSED,FSAVAIL,FSUSE%,MOUNTPOINTS,LABEL,PATH | grep -v '^loop'
NAME FSTYPE SIZE FSSIZE FSUSED FSAVAIL FSUSE% MOUNTPOINTS LABEL PATH
zram0 8G [SWAP] /dev/... |
ext4 by default reserves 5% of the filesystem for root-only use. This reserved space isn't counted in FSUSED.
For example, if we create a 10G filesystem:
truncate -s10g disk.img
loopdev=$(losetup -fP --show disk.img)
mkfs.ext4 $loopdev
mount $loopdev /mnt
...and then run your lsblk command:
lsblk --fs -o NAME,FSTYPE,... | lsblk: Why FSSIZE is not equal to FSAVAIL + FSUSED |
1,577,802,032,000 |
I intend to get a list of all partitions with their corresponding types but arranged in the proper tree order.
This is what I get with lsblk -o NAME,TYPE -i
sda disk
|-sda1 part
|-sda2 part
|-sda3 part
| |-2cl-root lvm
| |-2cl-swap lvm
| |-2cl-home lvm
| |-2cl-data2 lv... |
This should do it:
lsblk -o NAME,TYPE -n -i -r
If you cannot ask lsblk to format the output as you want, you can pipe it and change it.
For example, if the tab is really important:
lsblk -o NAME,TYPE -n -i -r | tr ' ' '\t'
| How to output only dev names and types in lsblk? |
1,577,802,032,000 |
the linux ( OS ) installed on sda
and machine also have additional disk - sdb
sdb 8:16 0 20G 0 disk
but we want to add two new partitions as sdb1 and sdb2
as the following:
sdb 8:16 0 20G 0 disk
├─sdb1 8:1 0 500M 0 part
└─sdb2 8:2 0 500M... |
Assuming GNU parted, and assuming the snippets you are showing are from the output of lsblk, here is a minimal set of actions you can perform to accomplish what you are asking for:
Running parted as root, select the device you want to act upon:
(parted) select /dev/sdb
Create a MBR partition table (no particular reas... | how to create parted disk |
1,577,802,032,000 |
so I can see in lsblk that I have a 250G disk, but when I run pvresize /dev/sda3 I am not able to see the free space to extend the volume group.
Do I need to modify the partition table in single user mode since this is the root filesystem?
On a similar system, I was able to run pvresize, vgextend, lvresize and then re... |
You'll need to expand the sda3 partition first, as doneal24 said in the comments.
If your distribution has the growpart command (sometimes packaged as its own package, sometimes as cloud-utils or cloud-utils-growpart), it would offer an easy and safe way to extend the sda3 partition: growpart /dev/sda 3.
As the sda3 a... | Extending rootfs on centos |
1,577,802,032,000 |
I have a SD card that is giving me some trouble.
I followed some instructions from here https://forums.linuxmint.com/viewtopic.php?t=368230 and used the command
sudo dd if=/dev/zero of=/dev/sdb bs=1M count=1
(I know this is dangerous. i've done it because the card was really cheap, and I suspect it is bogus). it ran ... |
When a card suddenly changes to 0 capacity, that's not under the control of your PC: that's the controller within the SD card stopping to work.
Since you have no way of debugging the software running on that controller, nor any way to look inside its hardware:
Your card is e-waste. That was essentially clear when you ... | unable to find or mount sd card |
1,577,802,032,000 |
I recently tried to power up my laptop and received a "Reboot and Select Proper Boot Device" error. This seems to indicate that the firmware is not able to find the boot partition. So, I opened up the laptop and pulled out the NVME SSD, which I then plugged into another computer with a USB NVME adapter.
lsblk finds th... |
lsblk shows the information the kernel receives on boot, fdisk -l tries to read the partition table directly off the device and since the device is seemingly dead (considering the errors in dmesg) fdisk fails.
smartctl -a /dev/sdd could confirm "the patient is dead" status but the fact that basic reads off the device ... | lsblk shows disk partitions but fdisk fails |
1,577,802,032,000 |
I don't know what my colleague exactly did but I know that he was trying to increase the size of LVM. For now I can see such an output after executing the command lsblk:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
fd0 2:0 1 4K 0 disk
sda 8:0 0 100G 0 disk
├─sda1 8:1 ... |
Your colleague has successfully extended the rhel-root LV with lvextend, so one part of it is now on sda2 and another on sda3. But the filesystem inside the LV has not been extended yet.
There is just one rhel-root LV, but lsblk shows it here in a way that can be a bit confusing: it shows the total size of the LV appa... | How to merge lvm |
1,577,802,032,000 |
when I want to get the size of sdb size on remote machine - master
I get that:
# ssh master "lsblk | grep \"^sdb\" | awk '{print \$4}' "
100G
but
when we want to set the size value in variable and then to print it
then we get that:
# VAR=` ssh master "lsblk | grep \"^sdb\" | awk '{print \$4}' " `
# echo $VAR
sdb ... |
Don't run stuff remotely that you could run locally.
var=$( ssh master lsblk | awk '/^sdb/ { print $4 }' )
For when the value sdb is in a variable (from comments below):
var=$( ssh master lsblk | awk -v disk="$variable" '$0 ~ disk { print $4 }' )
or, to force a match at the start of the line,
var=$( ssh master lsblk... | why we get values in variable that are different |
1,577,802,032,000 |
I am trying to crate a folder with the label and uuid of a media device plugged in as its name, on another flash drive which I am using to log.
I have the following code:
LOGDEVICELABEL=FLASHDRIVENAME
MD=`lsblk -I 8 -o label,uuid -n|sed -e '/^$/ d' -e '/^$LOGDEVICELABEL.*$/ d'`
MDLOGDIR=/media/$LOGDEVICELABEL/Log/$MD
... |
One thing I'll do is use echo to strip unwanted whitespace. In this context, it's important to omit any quotes:
LOGDEVICELABEL=FLASHDRIVENAME
MD=$(lsblk -I 8 -o label,uuid -n|sed -e '/^$/ d' -e '/^$LOGDEVICELABEL.*$/ d')
MD=$(echo $MD) # <-- This line
MDLOGDIR=/media/$LOGDEVICELABEL/Log/$MD
mkdir $MDLOGDIR
The shell... | Can't remove space from beginning of variable |
1,577,802,032,000 |
The following code was tested on RedHat 7 using df verison 8.2 and lsblk version 2.23.2. This is important as the lsblk utility has signficantly more output options than the RedHat 6 version (2.17.2)
It is rather easy to determine the filesystem that contains a file:
df -h /path/to/file | tail -n 1 | awk '{print $1}'... |
Looking at the code you've provided, it seems that you want to be able to map a file on a filesystem back to a physical disk on which it resides. There appears to be no consideration of RAID, LVM, or encrypted filesystems.
The following code will print the disk device(s) that contain the specified file. For RAID and L... | Programmatically identify block device of filesystem [closed] |
1,577,802,032,000 |
we have a lot of linux working machines
all mount point are configured in the /etc/fstab
as the following:
/dev/sdc /grd/sdc ext4 defaults,noatime 0 0
/dev/sdd /grd/sdd ext4 defaults,noatime 0 0
/dev/sdb /grd/sdb ext4 defaults,noatime 0 0
/dev/sde /grd/sde ext4 defaults,noatime 0 0
/dev/sdf /grd/sdf ext4 defaults,noa... |
There shouldn't be any issues. If you do changes to your machine configuration (for example add or replace disks) the device names (/dev/sdX) might change at next boot. Using UUIDs avoids this issue.
Since you use device names to name the mount points (/grd/sdX), those might not match the device name anymore should th... | reconfigure the fstab file with UUID |
1,530,474,646,000 |
I'm launching a VM using qemu-system-x86_64. I know two ways to pass through a USB device.
Say for example, I had a mouse that showed up in lsusb like
Bus 003 Device 011: ID 6ade:9582 Amazing Mouse Maker
I could pass it through using
-device usb-host,vendorid=0x6ade,productid=0x9582
or
-device usb-host,hostbus=3,hos... |
For some reason this is not documented on the Qemu 2.12.50 User Doc and I had to learn what I learned from this guy
They mention:
-device usb-host,hostbus=bus,hostaddr=addr
Pass through the host device identified by bus and addr
-device usb-host,vendorid=vendor,productid=product
Pass through the host device identifi... | Can I pass through a USB Port via qemu Command Line? |
1,530,474,646,000 |
I was wondering why some of my USB devices where not recognized by lsusb and stumbled upon /usr/share/hwdata/usb.ids.
When I read the contents of the file I could see that the hardware database was dated from mid-2015 (roughly two years before the distribution, Debian 9 "Stretch", was released in June 2017).
I ran the... |
Running update-usbids by default isn’t an option because users don’t necessarily want their systems to “phone home” in any way (which update-usbids does, even if the download URL is currently trustworthy), and Debian avoids configuring them to do so.
I imagine the package maintainer didn’t think of uploading a package... | Why is the hardware database of usbutils not updated? |
1,530,474,646,000 |
I've recently installed Fedora 25 Server on a relatively old machine (HP Compaq dc7700 Small Form Factor). It previously used to run Windows 10, but all the USB ports suddenly stopped working (I don't recall if it's worked since); I've installed Fedora in the hope of resolving the USB issue.
My understanding is that a... |
It's probably a hardware issue on the machine, especially if this intermittent behavior was seen on it with Windows installed. Here's a few things you could try:
Try some other USB devices, particularly flash drives while doing some file transfers. The keyboard is probably fine, but this would be another confirmation... | lsusb error -- can't get device qualifier / descriptor: Resource temporarily unavailable |
1,530,474,646,000 |
I have a CH341a Programmer and when I plug it into a usb port everything seems to be working except it doesn't get assigned to a Device Path (eg /dev/ttyUSB0).
Does anyone have any clue as to why this might be happening, or how to resolve this issue?
Here are some of the things I've done to troubleshoot.
lsusb
Bus 002... |
Your device isn't being assigned a serial device path because it's not a serial port. From your lsusb output, we see:
Bus 001 Device 004: ID 1a86:5512 QinHeng Electronics CH341 in EPP/MEM/I2C mode, EPP/I2C adapter
The key part is in EPP/MEM/I2C mode. The device is not configured as a UART; if it were, we would see:
B... | Why isn't my CH341a Device Getting Assigned a Device Path (/dev/ttyUSB0) |
1,530,474,646,000 |
/dev/bus/usb/*/* lists all the usb devices connected on Alpine Linux. For example a phone could be /dev/bus/usb/001/009. When that phone is reconnected it will be /dev/bus/usb/001/010, i.e. it increments.
My question is what happens after 1001 connections?
/dev/bus/usb/001/009
010
...... |
If I read correctly https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/tree/drivers/usb/core/hub.c#n2030 (code for a function called choose_devnum), it may wrap far earlier than that, at value 127 in fact, and then going back to 1:
/* Try to allocate the next devnum beginning at
* bus->de... | What Happens to /dev/bus/usb After 1001 Connections |
1,530,474,646,000 |
I have tried to use a hub with hdmi port that connects to the USB-C port of my computer but this one doesn't work.
Checking other similar threads on Internet (and here), I see that the problem is probably that the USB-C port in question does not support video output (the hub itself has USB ports and they work properly... |
Finally, my laptop's USB-C doesnt support Video output, and it seems that it cannot be demonstrated by software, just going to the hardware manufacturer.
Therefore I had to install a USB 3.0 to HDMI adapter that supports displaylink drivers and install it to get a second external monitor.
| How can I find out if the USB-C port on my laptop has video output (for adapter USB-C - HDMI)? |
1,530,474,646,000 |
I have a USB device that I wish to reset automatically, there are two USB devices currently, but at times there may be more.
[user1@gs10 devt]$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 1604:10c0 Tascam Dell Integrated Hub
Things to note:
The device number will chang... |
One option could be to use system() directly from within awk:
1. Validate
Validate by requesting device from lsusb:
lsusb | awk '/Tascam.*Hub$/{ system("lsusb -d " $6) }'
That would take vendor:product, (field 6), from whole lines matching:
Tascam<Anything zero or more times>Hub<END-OF-LINE>
and execute: lsusb -d... | USB reset using lsusb output |
1,530,474,646,000 |
I am building a script that will let the user select a USB disk as a backup target. The idea is to create a partition spanning the entire device. lsusb gives the vendor ID and name, which I intend to present to the user.
I obviously only want to list disks, no other devices. I also need to figure out the /dev device ... |
The answer to your question depends somewhat on what mechanism will be used to trigger the script.
Assuming that the script is called from some kind of backup program which is not immediately called when the USB device is attached (as would be the case if you trigger it from a udev rule, for example), then you can use... | How can I derive block device information using the output of lsusb |
1,530,474,646,000 |
I'm looking at one of those detachable hybrid laptops, which has extra hard drive in the keyboard base; this laptop runs Ubuntu. Sometimes these drives mount at startup, sometimes not - and in inspecting, I just noticed something that I don't understand.
So when this drive is mounted and working properly, here is the ... |
This drive isn't a USB device, but a SATA device which is accessed via the Genesys bridge (which is a USB device). Since it isn't itself a USB device, it doesn't show up in lsusb's output.
USB thumb drives are USB devices without bridges (well, usually), so they do show up as-is on the USB bus and in lsusb's output.
| lsusb not listing a SCSI drive, connected through USB (SATA bridge)? |
1,530,474,646,000 |
Using Ubuntu 18.04, with my desktop motherboard I obtain:
$ lsusb -t
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/14p, 480M
|__ Port 13: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 14: D... |
The USB3 standard brought the SuperSpeed mode, with new cables and connectors. Your bus 4 covers the SuperSpeed mode, which uses an entirely different set of wires in the USB cables. So as the higher-speed mode is physically separate from the old USB wiring, it makes sense for it to appear as a separate bus altogether... | Phony USB hubs in Linux |
1,530,474,646,000 |
I put the USB wlan NIC into my server.
However it did not work correctly, I pull it off.
But it still remains the lsusb's result.
$ lsusb
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 009: ID 04bb:0948 I-O Data De... |
You can try USBdetach :
./usbdetach -v -p /dev/ttyUSBx
There is brief explanation given on this blog you can refer to that page for more information.
| How to remove unplugged device from lsusb's result |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.