View previous topic :: View next topic |
Author |
Message |
jsosic Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1231780896489e41f206c29.jpg)
Joined: 02 Aug 2004 Posts: 510 Location: Split (Croatia)
|
Posted: Sun Aug 08, 2004 4:33 pm Post subject: USB Cable modem? |
|
|
Ok, here is the problem guys. I have USB Cable Modem. I don't know how to set it up to work under gentoo 2004.2, so I was wondering if you could point me out.
Maybe it can help, when I run Suse 9.0 and later Fedora core2, it was very easy to set it up through Yast or network configuration, just with click or two. Then it would be reported as eth0-usb or something like that, and could be activated either on boot or when plugged in. So I'm asking is how to set it up manualy, without any system utility like Yast? I'm receiving IP through DHCP.
Can someone help me please? ![Embarassed :oops:](images/smiles/icon_redface.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bakreule Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/15652206454111079dbbcf7.gif)
Joined: 27 Aug 2003 Posts: 233 Location: Paris, France
|
Posted: Sun Aug 08, 2004 10:20 pm Post subject: |
|
|
Make sure that the following modules are loaded up:
Code: |
modprobe ohci_hcd
modprobe ehci_hcd
modprobe usbnet
|
If it can't find these modules, then you'll have to compile them. See the Device Drivers->USB section in the kernel config.[/code] |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jsosic Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1231780896489e41f206c29.jpg)
Joined: 02 Aug 2004 Posts: 510 Location: Split (Croatia)
|
Posted: Mon Aug 09, 2004 12:13 am Post subject: |
|
|
Thanx for the answers
Now let's go down to bussines.
ohci_hcd and ehci_hcd are built into kernel (2.6.7-gentoo-r11), and usbnet works fine as a module. At the boot I can clearly see
Quote: | Bringing lo up... [ok] |
So, usb modem is recognized.
Problem was with dhcp. I emerged dhcpcd daemon, and read two or three howto's. I found next:
Code: |
# cd /etc/rc.d
# mv rc.inetl rc.inetl.OLD
|
and to make new rc.inetl with next code in it:
Code: |
/usr/sbin/ifconfig lo 127.0.0.1
/usr/sbin/route add -net 127.0.0.0 netmask 255.0.0.0
/usr/sbin/dhcpcd
|
Problem is, I don't have rc.d directory, and I don't have rc.inetl file in it. When I write down those three lines in command line, internet starts working and I can surf with 'links'.
So what about that rc.d? What should I emerge to get that dir with all those fancy startup scripts ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bakreule Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/15652206454111079dbbcf7.gif)
Joined: 27 Aug 2003 Posts: 233 Location: Paris, France
|
Posted: Mon Aug 09, 2004 10:46 am Post subject: |
|
|
Quote: | Quote:
Bringing lo up... [ok]
So, usb modem is recognized. |
'lo' is the loopback interface and has nothing to do with usbnet or the ethernet interfaces. In fact, if lo doesn't come up, you've got other serious problems with your box.
If you're sure all the modules have been compiled or are already in the kernel, we should make sure that they're being correctly loaded. Type 'lsmod' as root and verify that usbnet is listed. If it isn't, load it manually.
If it is, make sure that the usb modem is being seen. Type 'lsusb' and make sure your modem is there. You might have to emerge the package sys-apps/usbutils. This should make it work. If not, we'll take it from here.
As for all the rc stuff, you REALLY shouldn't have to mess with it. The net scripts and ifconfig know enough about DHCP to handle all of it. I think the problem lies more in module land at this point.
Quote: | So what about that rc.d? What should I emerge to get that dir with all those fancy startup scripts |
The startup scripts are handled a little differently in Gentoo. The scripts themselves are located in /etc/init.d/, but the different run levels are stored in /etc/runlevels/
For more information, take a look here.
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=5 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jsosic Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1231780896489e41f206c29.jpg)
Joined: 02 Aug 2004 Posts: 510 Location: Split (Croatia)
|
Posted: Mon Aug 09, 2004 11:33 am Post subject: |
|
|
Thank you very very much
lsmod showed that usbnet isn't loaded, so I edited /etc/modules.autorun.d/modules or something like that , added usbnet, typed modules-update and that was it.
Next thing I did was adding net.eth0 to startup scripts by
# rc-update add net.eth0 default
Now all that I have to do when I logon is run dhcp client daemon and thing works.
So my next question is, how to add dhcp to the startup scripts?
Thank you very very much ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bakreule Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/15652206454111079dbbcf7.gif)
Joined: 27 Aug 2003 Posts: 233 Location: Paris, France
|
Posted: Mon Aug 09, 2004 2:34 pm Post subject: |
|
|
I'm glad it's working!
About dhcp, if your box is the only one connected to the net, you don't need to do anything, you're already done. Just make sure your /etc/conf.d/net file is correct:
Code: |
# To use DHCP on eth0, simply uncomment the following line:
ifconfig_eth0=( "dhcp" )
|
Then when you reboot, eth0 will use dhcp to obtain an IP address. If you have an internal network and want to use your box as a dhcpd server, have a look at the net-misc/udhcp package. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jsosic Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1231780896489e41f206c29.jpg)
Joined: 02 Aug 2004 Posts: 510 Location: Split (Croatia)
|
Posted: Mon Aug 09, 2004 5:06 pm Post subject: |
|
|
That's it
Now, # emerge sync
Thank you once more. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|