PDA

View Full Version : How do I make USB eth0?


VexedFedora
2006-02-27, 04:18 AM CST
Alright...first post *CHEER*

Ok, thats out of the way. I am using an SMC EZ connect USB to ethernet adapter to connect the computer to the router. Fedora doesn't seem to want to use my USB as eth0. It didn't even give me an option for network configuration during install.

I'm going straight CLI as I don't need/want a GUI as I want to learn the CLI first so no helpful GUI programs to make life easier...guess I just want to learn the hard way...and take up as few of resources as possible as this is an old machine.

After a fresh Install:
According to lspci it see's my USB just fine:
00:07.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01)

There is no eth0 using ifconfig, just the loopback or lo

I've gotten it to work by the equivelent of button mashing linux style...in otherwords trying severel commands and playing around with each (system-config-network, dhclient) not that I want DHCP on this tester file server/learning tool. There is no NIC so USB is my only route and besides it's posing a challenge so should be good learning.

Even getting it to kinda work, it would still have MANY problems...not being there after a reboot, just stopping, dropping from 100m connection to 10m connection, getting stuck trying to renew from router. But either way I know it CAN work as I was able to ping google and the like...when it did work at times. Now I just need to figure out the proper way to do it and make it permanent. So I re-installed fresh again and posted here. Hope I gave enough info for some guru's to at least give me some direction.

Thanks,
A Very VexedFedora

Minimal + Samba on a Pentium 233Mhz MMX and 256M RAM

.:neogeo:.
2006-02-27, 04:53 AM CST
Hey dude,

What exactly is the problem? I am running FC4 and using a Motorola cable modem that is detected on eth1 NOT eth0 via USB its seems that PCI or onboard network devices get assigned to eth0 not sure why. You said that you want to use CLI tools to configure this problem... well /sbin/ifconfig will give you information about your network adapters and 'route' about your routing. The easist way to add an adapter is system-config-network ... add your device from the kernel message you posted sounds like its detected ! so add it then save your settings and exit and run /sbin/service network restart.... if eth0/1 comes up as ok then you should be fine. I am not sure why you would want to change it from eth1 ro eth0 ? whats your reason??

VexedFedora
2006-02-27, 05:17 AM CST
I guess this would be my newbiness showing thru. I assumed eth0 was simply a name linux gave whatever device was connecting to the network, but I was obviously wrong...

ifconfig shows only lo...nothing else. lspci shows the USB as my above post. So my question is how do I get linux to use the usb connection as my network connection. I was able to get it to work, but I did so many things(system-config-network, dhclient, etc)...I'm not sure what did what, thus the fresh install and the asking questions to get it done not only correctly but to learn the proper way of configuring it. I am gussing fedora simply didn't automagically see it and configure it for me so I have to manually do it and just not sure how.

VexedFedora
2006-02-27, 05:25 AM CST
I was just reading the man pages for ifconfig and found the -a option to show all interfaces...

ifconfig shows only lo
ifconfig -a shows eth0, lo, and sit0. So I am guessing eth0 simply isn't active or fedora didn't automagically recognize it? Just more info.

Thanks for the help in advance!

brahms
2006-02-27, 07:09 AM CST
I was just reading the man pages for ifconfig and found the -a option to show all interfaces...

ifconfig shows only lo
ifconfig -a shows eth0, lo, and sit0. So I am guessing eth0 simply isn't active or fedora didn't automagically recognize it? Just more info.

That's right: without the "-a" switch, ifconfig only show interfaces that are up. Try running
ifup eth0

You might need to set up the interface:
system-config-network