LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 01-17-2013, 12:25 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 1,320

Rep: Reputation: 83
Package in repositories for sort of Hotplug of network interface?


Hello,

When I plug my USB to RJ45 ethernet adapter, I get on my Debian Testing the following

For testing:

Code:
eth0      Link encap:Ethernet  HWaddr 00:xx:xx:xx:xx:xx  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:16 Base address:0xc000
It works. I can get internet.



However, when I do the same on my testing debian, I get only an USB0 instead of the eth0.


Dependencies and repos.:
I have run dpkg -l and both machines have the package udev for hotplug that is installed.

/etc/network/interface is too the same:

Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp


auto wlan0
iface wlan0 inet dhcp
So what could be wrong? Which package is missing to get internet?

Looking forward to hearing you. Thank you in advance if manage to find out.

I have checked and both machines have well installed:
ifupdown
netbase
net-tools

Last edited by Xeratul; 01-17-2013 at 12:30 AM.
 
Old 01-17-2013, 01:18 AM   #2
jim_p
Member
 
Registered: Aug 2009
Distribution: Debian testing
Posts: 481

Rep: Reputation: 108Reputation: 108
That adapter is connected via usb to your machine I assume...
How is it identified in lsusb?

In order to make a network connection via usb, you will have to load the usbnet module and it will make a new interface for it, let's say eth1, in case eth0 is for another device.
 
Old 01-17-2013, 02:49 PM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 1,320

Original Poster
Rep: Reputation: 83
Quote:
Originally Posted by jim_p View Post
That adapter is connected via usb to your machine I assume...
How is it identified in lsusb?

In order to make a network connection via usb, you will have to load the usbnet module and it will make a new interface for it, let's say eth1, in case eth0 is for another device.
if I load the usbnet, it does not do anything more or else.

I dont know what does the working machine to do so... it looks to me same install but likely it isnt :/
 
Old 01-17-2013, 11:30 PM   #4
jim_p
Member
 
Registered: Aug 2009
Distribution: Debian testing
Posts: 481

Rep: Reputation: 108Reputation: 108
On the working machine, /etc/udev/rules.d/70-persistent-net.rules will have some info on which module controls the "ethernet" card and what interface it uses. Have a look at it.
 
1 members found this post helpful.
Old 01-18-2013, 05:11 PM   #5
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 1,320

Original Poster
Rep: Reputation: 83
Quote:
Originally Posted by jim_p View Post
On the working machine, /etc/udev/rules.d/70-persistent-net.rules will have some info on which module controls the "ethernet" card and what interface it uses. Have a look at it.
wow wow wow

thank you so much. I will look at it very soon
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a sort of 2nd SSH daemon server, sort of JAILKIT, in the debian repositories frenchn00b Debian 5 06-20-2010 04:03 AM
I can't find imagemagick package in the repositories iqbala Ubuntu 7 04-30-2010 11:23 AM
hotplug package not supported in 7.04? lbdgwgt Ubuntu 2 04-18-2008 08:15 AM
mysql-server package not in repositories? bradleyland Ubuntu 2 01-15-2007 12:11 AM
Problem using package repositories coyopil Suse/Novell 3 12-10-2005 05:08 PM


All times are GMT -5. The time now is 09:07 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration