Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-06-2014, 02:05 PM
|
#1
|
Member
Registered: Oct 2006
Location: High Wycombe, Bucks, UK.
Distribution: Debian and Fedora Core in equal measure
Posts: 264
Rep:
|
networking with a kensington USB/Ethernet dongle
I have a BeagleBone Black that works fine under debian as an AP:
uname -a says: "Linux arm 3.8.13-bone28 #1 Thu Sept 12 23:22:35 UTC 2013 armv71 GNU/Linux"
So I have the inbuilt Ethernet connected to the Internet, and a wireless dongle on the USB connector. All works fine!
But, just to complicate matters, I would like to run a kensington USB hub/Ethernet Dongle to give me another Ethernet port.
I put the Kensington device on the USB port, and connect the wireless dongle to the hub, and as expected, the AP function works as normal. However, I can't get the Ethernet port to run.
With the device connected, I see two new devices in lsusb:
the USB hub has device ID 0409:005a NEC Corp High Speed Hub
the Ethernet has device ID 0b95:772a ASIX Electronics
But the Ethernet adapter doesn't show up in /dev
How do I go about getting the port recognised to the point where I can configure it in /etc/network/interfaces?
Thanks for any help!
(Also posted on the BeagleBone Black Forum
|
|
|
06-08-2014, 10:06 AM
|
#2
|
Moderator
Registered: Aug 2002
Posts: 26,111
|
Have you looked at the output of the dmesg command to see if it is recognised? Looks like the device module is asix and should be supported.
|
|
|
06-09-2014, 08:17 AM
|
#3
|
Member
Registered: Oct 2006
Location: High Wycombe, Bucks, UK.
Distribution: Debian and Fedora Core in equal measure
Posts: 264
Original Poster
Rep:
|
Thanks for the response! I had a look at dmesg, did a "tail dmesg" before and after insertion of the USB plug, but there was no change/addition to dmesg. I know the device was inserted correctly, as it showed up on "lsusb" and went away again when removed.
Added comment later (away from the machine so can't test) Just had a thought...the dongle had no Ethernet connection, so the Ethernet port would have not been live...would that make a difference?
Last edited by jimbo1954; 06-09-2014 at 08:19 AM.
|
|
|
06-09-2014, 04:58 PM
|
#4
|
Moderator
Registered: Aug 2002
Posts: 26,111
|
Does not matter if it was actually connected. Try loading the module.
modprobe asix
|
|
|
06-10-2014, 10:54 AM
|
#5
|
Member
Registered: Oct 2006
Location: High Wycombe, Bucks, UK.
Distribution: Debian and Fedora Core in equal measure
Posts: 264
Original Poster
Rep:
|
OK, I did that...please excuse my ignorance of low level linux but didn't get any change in dmesg...
|
|
|
06-10-2014, 02:56 PM
|
#6
|
Moderator
Registered: Aug 2002
Posts: 26,111
|
Does the output of the command ifconfig -a show the network adapter.
|
|
|
06-10-2014, 03:53 PM
|
#7
|
Member
Registered: Oct 2006
Location: High Wycombe, Bucks, UK.
Distribution: Debian and Fedora Core in equal measure
Posts: 264
Original Poster
Rep:
|
With your help and patience, I'm getting somewhere! "ifconfig" shows all the normal interfaces, no sign of the Ethernet on the Kensington dongle. However, "ifconfig -a" shows the hardware but labeled "rename3".
I'd like it to follow the format and be "Eth1"; can I just declare Eth1 in the /etc/network/interfaces file and have it rename the ifconfig entry?
I ask rather than just trying, not because I'm too lazy to try it myself, but because the only way in to this board is via the Wireless dongle using SSH; if I go ahead and fiddle, I may "saw off the branch I'm sitting on", and permanently disconnect myself from the device, necessitating a significant rebuild, so I'm being careful (yeah alright, I'm being lazy too! )
|
|
|
06-10-2014, 05:48 PM
|
#8
|
Moderator
Registered: Aug 2002
Posts: 26,111
|
The rename3 might be caused by removing and reinserting the device multiple times.
You can use udev to always assign it a particular name.
http://www.debianhelp.co.uk/udev.htm
|
|
|
06-11-2014, 09:26 AM
|
#9
|
Member
Registered: Oct 2006
Location: High Wycombe, Bucks, UK.
Distribution: Debian and Fedora Core in equal measure
Posts: 264
Original Poster
Rep:
|
I read http://www.debianhelp.co.uk/udev.htm as suggested and as a result, I created a file called /etc/udev/rules.d/010_netinterfaces.rules with the contents:
KERNEL=="rename*", SYSFS{address}=="00:50:b6:46:dc:a8", NAME="eth1"
which I hoped would rename "rename3" to "eth1". I also created an entry in /etc/network/interfaces for eth1, then rebooted. The file I created didn't appear to work because I still had "rename3" in "ifconfig -a"
At that point I chmod-ed /etc/udev/rules.d/010_netinterfaces.rules to 777 and tried another reboot. That didn't help
So anyway, I renamed the /etc/network/interfaces entry for eth1 so that it referred to the interface called "rename3" and rebooted and it all worked. I put DHCP on the "rename3" port and I could attach a PC and get an address (not much else, the firewall was blocking everything as expected)
So the original problem is solved! Thank You!! .....but I'd be interested to know why /etc/udev/rules.d/010_netinterfaces.rules didn't do what it was expected to do.
|
|
|
All times are GMT -5. The time now is 05:54 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|