Ethernet to USB adapter on LinuxAnti-ghosting (NKRO over USB) keyboardChange kernel device node in Ubuntu 16.04 (static usb interface name based on the port it's plugged in)Linux Mint / Realtek RTL8101/2/6E Ethernet Connection issuesUdev does not rename usb ethernet deviceHow to enable the Wi-Fi network adapter “Intel AC 3168 ” in Ubuntu?Setting default network interface?Ethernet not being detected from USB 2.0 adapterAvoid bringing down ethernet iface when cable is unpluggedUdev - Network cable hotplug event not catchedudev and kernel show no events from usb devices
Company looks for long-term employees, but I know I won't be interested in staying long
Are more expensive chains/casettes more quiet?
Why can't I hear fret buzz through the amp?
How do you name this compound using IUPAC system (including steps)?
What is the name for the average of the largest and the smallest values in a given data set?
Should I have one hand on the throttle during engine ignition?
Should I have shared a document with a former employee?
Why does a tetrahedral molecule like methane have a dipole moment of zero?
What is this green alien supposed to be on the American covers of the "Hitchhiker's Guide to the Galaxy"?
What could make large expeditions ineffective for exploring territory full of dangers and valuable resources?
Is it possible to have a career in SciComp without contributing to arms research?
How many opportunity attacks can you make per turn before becoming exhausted?
Difference between class and struct in with regards to padding and inheritance
Why isn't a binary file shown as 0s and 1s?
Does 5e follow the Primary Source rule?
How to not confuse readers with simultaneous events?
In this iconic lunar orbit rendezvous photo of John Houbolt, why do arrows #5 and #6 point the "wrong" way?
How did Jayne know when to shoot?
Are there any satellites in geosynchronous but not geostationary orbits?
Could a US citizen born through "birth tourism" become President?
Three Subway Escalators
May I use a railway velocipede on actively-used British railways?
Can error correction and detection be done without adding extra bits?
Locked-up DOS computer beeped on keypress. What mechanism caused that?
Ethernet to USB adapter on Linux
Anti-ghosting (NKRO over USB) keyboardChange kernel device node in Ubuntu 16.04 (static usb interface name based on the port it's plugged in)Linux Mint / Realtek RTL8101/2/6E Ethernet Connection issuesUdev does not rename usb ethernet deviceHow to enable the Wi-Fi network adapter “Intel AC 3168 ” in Ubuntu?Setting default network interface?Ethernet not being detected from USB 2.0 adapterAvoid bringing down ethernet iface when cable is unpluggedUdev - Network cable hotplug event not catchedudev and kernel show no events from usb devices
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I've recently bought an Ethernet to USB adapter.
When I plug this into my computer running Linux (Ubuntu in my case) , this just works automatically, and I can see an internet connection over this interface without doing anything.
What I want to know is, how is this working without installing any specific drivers?
I guess when this device is plugged in, udev sets it up, but how does it know that this USB device is actually used as an interface that connects to Ethernet and hence routes traffic over it?
Where is the code that detects and manages this? Thanks in advance
ubuntu usb udev ethernet hot-plug
add a comment |
I've recently bought an Ethernet to USB adapter.
When I plug this into my computer running Linux (Ubuntu in my case) , this just works automatically, and I can see an internet connection over this interface without doing anything.
What I want to know is, how is this working without installing any specific drivers?
I guess when this device is plugged in, udev sets it up, but how does it know that this USB device is actually used as an interface that connects to Ethernet and hence routes traffic over it?
Where is the code that detects and manages this? Thanks in advance
ubuntu usb udev ethernet hot-plug
add a comment |
I've recently bought an Ethernet to USB adapter.
When I plug this into my computer running Linux (Ubuntu in my case) , this just works automatically, and I can see an internet connection over this interface without doing anything.
What I want to know is, how is this working without installing any specific drivers?
I guess when this device is plugged in, udev sets it up, but how does it know that this USB device is actually used as an interface that connects to Ethernet and hence routes traffic over it?
Where is the code that detects and manages this? Thanks in advance
ubuntu usb udev ethernet hot-plug
I've recently bought an Ethernet to USB adapter.
When I plug this into my computer running Linux (Ubuntu in my case) , this just works automatically, and I can see an internet connection over this interface without doing anything.
What I want to know is, how is this working without installing any specific drivers?
I guess when this device is plugged in, udev sets it up, but how does it know that this USB device is actually used as an interface that connects to Ethernet and hence routes traffic over it?
Where is the code that detects and manages this? Thanks in advance
ubuntu usb udev ethernet hot-plug
ubuntu usb udev ethernet hot-plug
asked 8 hours ago
Engineer999Engineer999
3591 silver badge9 bronze badges
3591 silver badge9 bronze badges
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
You already have installed the driver. It is most likely just an adapter that uses the USB-net driver. The system knows the device from the IDs in lsusb
.
add a comment |
how is this working without installing any specific drivers?
The Linux kernel offered by most distros as default already contains a large number of drivers. Most Ethernet-to-USB adapters are marked in the USB descriptor as a CDC device, so one of the standard drivers (there are several variants) will do for most devices.
I guess when this device is plugged in, udev sets it up, but how does it know that this USB device is actually used as an interface that connects to Ethernet and hence routes traffic over it?
All kernel modules can contain patterns that describe for which devices they can be used. These patterns are called alias
. If you do for example modinfo cdc_ether
, you'll see quite a number of aliases starting with usb
. The rest of the aliases matches on values in the USB descriptor.
All aliases are collected into a modules_alias
file (in /lib/modules/<kernel_version>/
), and then the kernel uses this file to decide which driver to activate when a new device (USB or other) is found.
The driver itself will take care of telling the kernel that it represents a device that has a representation in other kernel layers, e.g. a network interface. These upper layers then will take care of other steps, sometimes using interactions with user space, to initialize the network interface, set routes etc.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f531084%2fethernet-to-usb-adapter-on-linux%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You already have installed the driver. It is most likely just an adapter that uses the USB-net driver. The system knows the device from the IDs in lsusb
.
add a comment |
You already have installed the driver. It is most likely just an adapter that uses the USB-net driver. The system knows the device from the IDs in lsusb
.
add a comment |
You already have installed the driver. It is most likely just an adapter that uses the USB-net driver. The system knows the device from the IDs in lsusb
.
You already have installed the driver. It is most likely just an adapter that uses the USB-net driver. The system knows the device from the IDs in lsusb
.
answered 8 hours ago
Ole TangeOle Tange
13.7k17 gold badges60 silver badges108 bronze badges
13.7k17 gold badges60 silver badges108 bronze badges
add a comment |
add a comment |
how is this working without installing any specific drivers?
The Linux kernel offered by most distros as default already contains a large number of drivers. Most Ethernet-to-USB adapters are marked in the USB descriptor as a CDC device, so one of the standard drivers (there are several variants) will do for most devices.
I guess when this device is plugged in, udev sets it up, but how does it know that this USB device is actually used as an interface that connects to Ethernet and hence routes traffic over it?
All kernel modules can contain patterns that describe for which devices they can be used. These patterns are called alias
. If you do for example modinfo cdc_ether
, you'll see quite a number of aliases starting with usb
. The rest of the aliases matches on values in the USB descriptor.
All aliases are collected into a modules_alias
file (in /lib/modules/<kernel_version>/
), and then the kernel uses this file to decide which driver to activate when a new device (USB or other) is found.
The driver itself will take care of telling the kernel that it represents a device that has a representation in other kernel layers, e.g. a network interface. These upper layers then will take care of other steps, sometimes using interactions with user space, to initialize the network interface, set routes etc.
add a comment |
how is this working without installing any specific drivers?
The Linux kernel offered by most distros as default already contains a large number of drivers. Most Ethernet-to-USB adapters are marked in the USB descriptor as a CDC device, so one of the standard drivers (there are several variants) will do for most devices.
I guess when this device is plugged in, udev sets it up, but how does it know that this USB device is actually used as an interface that connects to Ethernet and hence routes traffic over it?
All kernel modules can contain patterns that describe for which devices they can be used. These patterns are called alias
. If you do for example modinfo cdc_ether
, you'll see quite a number of aliases starting with usb
. The rest of the aliases matches on values in the USB descriptor.
All aliases are collected into a modules_alias
file (in /lib/modules/<kernel_version>/
), and then the kernel uses this file to decide which driver to activate when a new device (USB or other) is found.
The driver itself will take care of telling the kernel that it represents a device that has a representation in other kernel layers, e.g. a network interface. These upper layers then will take care of other steps, sometimes using interactions with user space, to initialize the network interface, set routes etc.
add a comment |
how is this working without installing any specific drivers?
The Linux kernel offered by most distros as default already contains a large number of drivers. Most Ethernet-to-USB adapters are marked in the USB descriptor as a CDC device, so one of the standard drivers (there are several variants) will do for most devices.
I guess when this device is plugged in, udev sets it up, but how does it know that this USB device is actually used as an interface that connects to Ethernet and hence routes traffic over it?
All kernel modules can contain patterns that describe for which devices they can be used. These patterns are called alias
. If you do for example modinfo cdc_ether
, you'll see quite a number of aliases starting with usb
. The rest of the aliases matches on values in the USB descriptor.
All aliases are collected into a modules_alias
file (in /lib/modules/<kernel_version>/
), and then the kernel uses this file to decide which driver to activate when a new device (USB or other) is found.
The driver itself will take care of telling the kernel that it represents a device that has a representation in other kernel layers, e.g. a network interface. These upper layers then will take care of other steps, sometimes using interactions with user space, to initialize the network interface, set routes etc.
how is this working without installing any specific drivers?
The Linux kernel offered by most distros as default already contains a large number of drivers. Most Ethernet-to-USB adapters are marked in the USB descriptor as a CDC device, so one of the standard drivers (there are several variants) will do for most devices.
I guess when this device is plugged in, udev sets it up, but how does it know that this USB device is actually used as an interface that connects to Ethernet and hence routes traffic over it?
All kernel modules can contain patterns that describe for which devices they can be used. These patterns are called alias
. If you do for example modinfo cdc_ether
, you'll see quite a number of aliases starting with usb
. The rest of the aliases matches on values in the USB descriptor.
All aliases are collected into a modules_alias
file (in /lib/modules/<kernel_version>/
), and then the kernel uses this file to decide which driver to activate when a new device (USB or other) is found.
The driver itself will take care of telling the kernel that it represents a device that has a representation in other kernel layers, e.g. a network interface. These upper layers then will take care of other steps, sometimes using interactions with user space, to initialize the network interface, set routes etc.
answered 2 hours ago
dirktdirkt
18.5k3 gold badges15 silver badges39 bronze badges
18.5k3 gold badges15 silver badges39 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f531084%2fethernet-to-usb-adapter-on-linux%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown