Lan usb адаптер linux

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

I have an usb to ethernet adapter connected to my linux system. I edited the connection information, and gave manual ip 192.168.1.21 in the connections menu available at the top right. In the above command lines we can see the available connection information on my system. I am not able to make the interface up for the en0016b68261f . Below are my interfaces present in /etc/network :

interfaces(5) file used by ifup(8) and ifdown(8) #The loopback network interface auto lo iface lo inet loopback # The primary network interface iface eno1 inet dhcp 

When I try to ping the port at the other end of the usb to ethernet adapter, whose ip address is 192.168.1.14, I am not able to ping this ip address of my development board. How can my usb to ethernet adapter be set up? Traceroute shows this:

me@me:/$ traceroute 192.168.1.21 traceroute to 192.168.1.21 (192.168.1.21), 30 hops max, 60 byte packets 1 192.168.1.21 (192.168.1.21) 0.231 ms 0.192 ms 0.180 ms me@me:/$ traceroute 192.168.1.14 traceroute to 192.168.1.14 (192.168.1.14), 30 hops max, 60 byte packets 1 * * * 2 * * * (. ) 29 * * * 30 * * * 

What makes you think 192.168.1.14 is ping able? Please add your routing table ( ip route show ) to your question.

You should have a close look at the machine 192.168.1.14 . Your network configuration on 192.168.1.21 looks OK. I suspect that the problem lies on the other machine which either block your pings requests, or its ping replies. Or you may have a problem with your network equipments/cables (you didn’t tell us how the two machines were connected; direct cable?).

nope it is accepting the ping when it is on dhcp on another machine. When i login and give the ip as 192.168.1.14 for the ethernetport on the other machine. Then i am able to ping. If i set the above ip address as a static ip address I am not able to ping it from my machine through 192.168.1.21

Yeah i have attached my traceroute in the above question, is traceroute command equivalent to iproute command in linux??

Absolutely not. Despite your beliefs, you should really take a look at the other side. At least spy what comes and go at the other end of the Ethernet cable (on 192.168.1.14 ) with a tool like tcpdump or wireshark.

Источник

USB rj-45 сетевая карта без «установки драйверов»?

Я сейчас бегло погуглил. На многое даже вендовозы жалуются, что оно дров хочет. И линупсисты тоже не все довольны.

Тема в надежде на то, что кто-то удачно купил и пользуется.

посмотри в исходниках ядра для каких есть

facepalm.png
Почему тогда не UCB?

берёшь ноут, идёшь в магазин, втыкаешь, смотришь dmesg, если определился, значит подходит

Какой dmesg, он вендоузятнег.

вот будет повод линукс поставить

Для Linux, наверное, все. Для шindows — на винфак.

ну или планшет с андроидом, там-то dmesg будет

Чтобы через неделю, не разобравшись в ситуации, стал опять поливать linux грязью?

Читайте также:  Linux ошибки из bios

С D-Link-ами внимательнее, под одним названием модели (хорошо, если с разным номером ревизии) могут продаваться железки на совсем разных чипах.

Про других пусть добавляют те, кто с подобным сталкивался.

Без рута на ведроиде dmesg не работает. По крайней мере у меня.

пусть тогда воткнет и в диспетчере устройств смотрит.

dk- исправил бы и «адаптер», т.к. это полноценная usb-сетевая карта, давай уж правильно писать до конца.

«ходить в магазин»? ты с дубу рухнул? все привозят на место.

Это одна из 10-15 известных мне команд!

тогда заказывай 10-15 разных, какой-нибудь да заведётся

А я думал, наоборот. Один какой-нибудь из 10-15 не заведётся.

надо готовиться к худшему развитию событий! Если внезапно заведутся все, это будет приятным сюрпризом

По теме 2.0 USB-lan? Всё работает на всём, включая одноплатники, детсадовца позови, сделает.

Вендузятник должен страдать.

Брал какой-то кетайский, завелось из корбки. И бесчисленное множенство вай-фаев, в основлном нищебродские tp-link. Или ты про ферму и у тебя линукс?

Оно самое. Сетевка в мамке походу сдохла.

Чо там за чип? В левом нижнем углу, чуть ниже внешних разъемов сеть находится. Привози, благо соседи, махнем. С тебя пиво на майских

Воткнул и работает. В чём проблема-то?

Это те, что из соплей девственниц для лохов? В смысле, для успешных людей 😀

На многое даже вендовозы жалуются, что оно дров хочет.

Так с вендой дрова не распространяются, почти для любого железа качать надо отдельно.

Венда этому сама обучена, и конпелировать ничего не надо.

Брал два разных переходника от 5bites. Один usb 2.0 100mbit, другой — usb 3.0 1gbit с usb хабом. Оба заработали с полпинка, ещё в виртуалку прокидывал. Но насколько стабильно работают — хз, я максимум пару часов за раз использовал.

onlybugs ★★ ( 24.04.18 23:00:40 MSK )
Последнее исправление: onlybugs 24.04.18 23:01:06 MSK (всего исправлений: 1)

Сетевухи с RTL8153B на Debian тоже с одного тычка заводятся и гигабит на USB3 выдают. Возможно usb-modeswitch понадобится, если сетевая как CD-ROM определяется.

чип или сам порт сломался? второе ведь можно перепаять.

Источник

USB Ethernet адаптер Realtek RTL8152B с честными 100Мбит/с с поддержкой OpenWRT (Linux)

а вот тест









подключил к Android TV Box TTK sb-214 (версия андроида 5.1.1) не распознал

подключил через OTG кабель к двум смартфонам samsung

samsung на android 9.0 не распознал
****
samsung на android 6.0.1 не распознал
но aida64 его видит
не знаю может графический интерфейс для ethernet samsung не добавлял и тупо не сможем сеть настроить

Источник

Delightly Linux

eth01

📅 January 25, 2017
USB 3.0/3.1 is fast enough to accommodate almost any external device at full speed. This includes network adapters.

Need an extra RJ-45 network port on your system? Do you have a portable netbook or laptop that you need to plug into a LAN quickly?

The Plugable USB 3 ethernet adapter is a small device that allows you to connect a computer to a LAN through a USB port. It offers full duplex throughput up to gigabit speeds if connected to a USB 3.0/3.1 port. And best of all, it is 100% plug-and-play compatible with Linux.

Here are my results after using this device with Linux Mint 18.1 and USB 2/3/3.1.

Note: Nobody sponsors this. Any links to Amazon are affiliate links to help readers locate the items and to help cover the time spent writing this article at no cost to readers.

Читайте также:  Форматировать linux флешка ubuntu

The Gigabit Adapter

This USB device serves the same purpose as the Ableconn USB 3 ethernet adapter. If you have used one of these before, then you know what to expect. Plug it into any free USB port, and then plug a standard network cable into the adapter (assuming the other end of the cable connects to your LAN).

a

Box Front. 10/100/1000Mbps networks are supported. However, the USB speed will limit the throughput.

a

Box Back. Even though there is no mention of Linux on the packaging, this adapter is 100% compatible with Linux Mint 18.1 and Xubuntu 14.04 from my tests.

a

Box Contents. Includes the adapter, a mini-CD containing Windows drivers, and a short page of instructions. This device is so easy to use that I found the instructions to be unnecessary.

This version has a Type-A USB connector. A version with a Type-C connector is also available, but I did not have one of those to try.

Linux Compatibility

I tried Xubuntu 14.04 and Linux Mint 18.1, and this adapter works perfectly with both. Simply plug it in, and Linux automatically recognizes it. No manual driver installation was needed.

a

Linux Mint 18.1 Network Settings shows the NIC as “USB Ethernet.”

a

The USB adpater may appear as “ASIX Elec. AX88179” in the panel notification area if you click the network icon in the panel. Here, the USB adapter is connected to a LAN.

IP Address Assignment

Linux treats the USB adapter as a regular NIC (Network Interface Card), so you can assign a static IP address or use DHCP. You can configure this adapter like any other NIC.

USB Port Compatibility

Even though the box touts “USB 3.0,” you can plug this into any USB port, and it will work. However, you will be limited to whatever speed of the USB port you use.

a

Plugable adapter connected to Cat6 cable.

For example, USB 3.0 and USB 3.1 (using a PCIe USB 3.1 card) both allow the adapter to operate at the full gigabit Ethernet speed. I saw not difference in performance from a motherboard Ethernet port or a dedicated Ethernet NIC. File transfers were as fast as gigabit Ethernet would allow.

However, a USB 2.0 port was much, much slower when connected to the same gigabit LAN. Not because the adapter was faulty, but because USB 2.0 is limited to 480 Mbps max.

Speed Tests

So, does this operate at full gigabit speeds?

Yes…IF plugged into either a USB 3.0 or USB 3.1 port. USB 2.0 is slower. I performed synthetic 16GB data transfers with netcat between two computers connected to the same gigabit LAN.

On the listening computer:

On the sending computer:

dd if=/dev/zero bs=1073741824 count=16 | nc -v 192.168.10.10 11111

192.168.10.10 is the static IPv4 address assigned to the USB 3 adapter. I also unplugged all other network cables and manually specified a route using the USB adapter.

sudo route add -net 192.168.10.0 netmask 255.255.255.0 dev eth3

This tells Linux to use the adapter when talking to the 192.168.10.0 network, which is the LAN for this test. The sending system recognized the adapter as eth3. (The predictable network naming system was disabled.)

Читайте также:  Linux выйти из postgresql

I monitored the transfer with bmon, iftop, and the network activity in System Monitor.

a

What is the throughput when transferring 16GiB worth of zero data using netcat?

For comparison, I also tested the Plugable adapter with the Acer Aspire One 722 netbook running Xubuntu 14.04. The netbook is limited to a USB 2.0 port, and its built-in Ethernet port is limited to 10/100Mbps, not gigabit.

a

Comparison of the highest sustained transfer speeds observed. The results were the same sending and receiving between two computers. No other network traffic.

USB 2.0/3.0/3.1 used the same system. USB 3.0 and USB 3.1 tie at 115.4 MiB/s since this is the limit of gigabit Ethernet under ideal conditions.

When plugged into a USB 2.0 port, the maximum transfer rate dropped to 43.1 MiB/s. This is normal due to the limitations of USB 2.0. (Remember to restart bmon and iftop and set the route again when unplugging and re-plugging the adapter into different USB ports.)

The netbook was interesting. The Acer Aspire 722 has a built-in 10/100Mbps Ethernet port, and this is a case of where an external USB network adapter would be useful.

a

Plugable adapter connected to the USB 2.0 on the Acer Aspire 722 One netbook. This provides a much faster network connection than the netbook’s builtin 10/100 Ethernet port.

When connecting the netbook to a LAN using an Ethernet port, speeds top out at a constant 11.7 MiB/s. But when the USB 3.0 adapter is plugged into the netbook’s USB 2.0 port, then the transfer rate is increased to over triple the speed at 37.3 MiB/s. However, the netbook’s USB 2.0 rate is still a little lower than a full system’s USB 2.0 rate.

7G File Transfer

How about transferring a real file? I formed a 7GB ZIP file of random data, and used time in Bash to measure how long it would take to transfer over the network using the FTP protocol. I installed ftp-upload for this.

sudo apt-get install ftp-upload

ftp-upload is a program designed to script file transfers.

time ftp-upload -h 192.168.10.10 -u username -p password -d ~ data.zip

data.zip is the 7GB data file, and 192.168.10.10 is the destination computer to transfer the file to. This test was performed with each USB port to check for differences. An SSD to SSD file transfer was performed to eliminate any hard drive bottlenecks.

a

How many seconds to transfer a 7GB file over the gigabit LAN using the Plugable USB 3.0 adapter? FTP transfer results.

USB 3.0 and USB 3.1 pretty much tie again due to the limitations of gigabit Ethernet. Both took a little over one minute to transfer 7GB while the USB 2.0 port took almost three minutes at 2m48.2s.

Conclusion

We have another product that lives up to its box claims! With a USB 3.0/3.1 port, the Plugable USB Ethernet Adapter will transfer files as fast as a plugin NIC, and it plays seamlessly with Linux.

A device like this is especially useful with a netbook or for any situation requiring a quick but speedy network connection without opening up a computer.

Источник

Оцените статью
Adblock
detector