s i s t e m a o p e r a c i o n a l m a g n u x l i n u x | ~/ · documentação · suporte · sobre |
4. Hybrid Cable modem ISPsIf you think you have the card recognized you have to now look at the entry for your ISP. I have sorted the information according to a provider because setups are mostly ISP specific. This section is for people who are using so-called "hybrid" cable modems. Hybrid modems are modems that need two hookups (connections), one to the (TV) cable and one to the phone line. TV cable is used for downloading while phone line is used for uploading. 4.1. Adelphia Powerlink, USAInstructions on how to get your Adelphia Powerlink hybrid modem running under Linux can be found at http://linuxpower.cx/~cable/ 4.2. LinkExpress, BrasilThis information is provided by Rodrigo Severo <rodrigo@who.net>: First of all, let me tell you that here we have the MMD Cable Modem from General Instrument. We use SurfBoard 1000 ISA board for download and a regular telephone modem for upload. I would prefer to use an external board like the SurfBoard 1200 which is available only to corporate users, i.e., willing to pay US$ 200,00 instead of the regular US$ 30,00 so I found out this driver for the internal ISA board. For home users, Linkexpress (my ISP) just installs and supports the internal ISA board - Surfboard 1000. If you want to use it, you have to install Windows 95/98 on your computer and let the guy from Linkexpress install the equipment. After that, make your Linux installation as you like. I started from the files I downloaded from http://linuxpower.cx/~cable/. Here is the relevant data:
During a download from a local tucows mirror I got 70KB~300KB per second. From distant sites I managed to get 30KB/s a few times. More information about LinkExpress can be found at http://www.linkexpress.com.br/. 4.3. ExpressNet, MarylandI recently accuired an expressnet cable modem for the maryland area. it is a com21 one way modem and I had a hell a time making it work so id like to share my knowledge in your faq maybe? well heres what I learned inorder for the PPP connection to authenticate the user must be running PAP which consists of editing the /etc/ppp/pap-secrets file accordingly:
after that they must create a PPP-on script what ever name it must execute this command:
this must be done with no carrage returns either next step is to modify the /etc/ppp/ip-up.local file if it does not exist it should be created it should read the following:
then the user must configure their ethernet card on box I have a 3c905. I configured it the following way:
then I added some more routes to the kernel routing table as follows:
all of these commands can be added into a script file as follows
thats all and the cable modem connection is setup fast as hell I might add. Contributors: Chris <chris@wrm.grdn.net> and Mike Milbert <mike@milbert.com>. 4.4. Charter Pipeline, Riverside, CAThis information is provided by Gabriel Peters <gpx1@earthlink.net>: (I have Charter Pipeline, Powered by Earthlink, Riverside, CA) The modem is a Com21 ComPORT 2000.. connected to the computer via 10 BaseT ethernet cable to a Linksys 10/100 ethernet card (Cable modem, ethernet cabling, and ethernet card supplied) The ethernet card driver that I had to compile into the kernel was for the DEC Tulip. auto-detected the card and set it up nicely. This is the information I needed:
Then you need to configure PPP to dial up your access number as normal.. What I had to do to get it to work was this: I typed ifconfig eth0 down to shutdown the ethernet, ppp-go to dial in, once it reported my IP addresses, i typed ifconfig eth0 up and voila, it worked perfectly. Editor's comment: Each time PPP link is brought up or down pppd executes scripts /etc/ppp/ip-up (link up) and /etc/ppp/ip-down (link down) so in order to have Ethernet network go up and down with PPP link simply add:
before exit 0 statement in /etc/ppp/ip-up and ifconfig eth0 down in ip-down. 4.5. Chambers Cable, Chico, CA / Fundy Cable, New BrunswickThis information is provided by Brian Moore <bem@cmc.net>: For those using Chambers Cable in Chico, CA, the product is the Scientific Atlanta data Xcellerator(tm) modem. Mike Cumings of Cal State University wrote a nifty driver for it, available at http://www.ecst.csuchico.edu/~mcumings/cablemodem/. This should also work for others using the same modem, such as Fundy Cable of New Brunswick. If you encounter problems compiling the client program from the above address try a client provided by Timothy Legge <tlegge@fundy.net> at http://user.fundy.net/tlegge/DataX/cable0.99-1.tar.gz 4.6. Smyrna Cable, Atlanta, GAThis information is provided by Blake Sorensen <librarian@unseen.net>: I have Smyrna Connect, supported by Smyrna Cable in Atlanta, GA. They are currently (June, 1999) using half-duplex but are scheduled to have full-duplex within six months. The Cable Modem is a ComPort Com21. Here is the configuration stuff I needed to get my linux box running as my dialup. My eth0 device is a 3com ISA card set to IP 10.0.0.1, Bcast 10.0.0.255, Mask 255.255.255.0. The machine is set to the hostname Smyrna418.smyrnacable.net where Smyrna418 is my username. I don't think this is that important, but I haven't fiddled with it to see if it will still work once I change the hostname. My modem is an external 56K X2 US Robotics on /dev/ttyS0. I also have eth1 (a DEC tulip based pci card) set up as 192.168.0.1 as the gateway for the rest of my network to masquerade behind. Smyrna Connect does not give you DNS info for the cablemodem since you are supposed to use the Windows PPP feature of using the default DNS for the server you dial in to. However, they do have one that works at 209.116.152.252. I use a ppp connection script to dial in, but the guts of it is this:
I keep the persist in there since Smyrna Connect has a habit of dropping the connection every once in awhile, and this way it automatically dials back in. You will need to replace the Smyrna??? in the above command with your own username and put the line:
in the file /etc/ppp/pap-secrets. 4.7. Amnet de Costa Rica, Costa RicaThis information is provided by Roberto Salvatierra <chuby@internettico.com>: Ok to set up a Hybrid cable modem conection using Costa Rica's Amnet Provider is not all that hard ( once you get the hang of it ) is like the other providers that use com21 modems, but with some minor diferences. My Hardware is:
The first thing I did was disable my whole networking system, mainly because i had a real mess on my routing tables, hosts, and resolv.conf files ( I was using several ISP's and an intranet ) so I opted for this but that was just me, I even stopped lo so I started with a clean config. okey first of all if you have a dual system ( win/linux ) make sure the system is working under windows, that way we can make sure everything is up and running, after that, reboot to linux**. If you don't have a dual system I found something interesting that MIGHT help you state if the cablemodem and the eth card are functional, first, type this on your system:
after that look in your system log files for pings from 10.0.0.4 ( I have no idea why but this machine keeps "pinging" my box ,I asked amnet's help desk what was this all about, and they didn't give me an answer I guess they do It to check the network integrity) well anyhow, if you get this pings means that amnet connection is working okey. well after we have stated that the cable modem is up and running the rest is quite easy. if you did the above step now lets bring eth0 down ( ifconfig eth0 down ) first lets place amnet's DNS where it sould be in /etc/resolv.conf so we need to add this:
okey now we need a ppp script for the modem this one works: ( we all use the same username "amnet" and password "conexion" so for this to work just cut and paste)
amnet uses PAP (password authentication protocol) to authenticate users so we need to add a line to /etc/ppp/pap-secrets:
okey now you need to bring ppp up so just run that script to check that it works type: ifconfig, now you should have something like this:
okey after you have this working type this:
now type ifconfig you should have something like this:
and voila , your conection is up and running !! some tips: when you are not connected your eth should be DOWN activate eth only AFTER ppp is running OR IT WILL NOT WORK. To make this you can add the eth up and down scripts to /etc/ppp/ip-up and /etc/ppp/ip-down scripts ( on debian just place them on /etc/ppp/ip-up.d and /etc/ppp/ip-down.d ) ip-up should contain this:
and ip-down this:
now here is a WORKING route table that might help you troubleshooting the system: ( my HOSTN = hostname )
Relevant Information:
that's all folks !! if you need this in spanish look for it in: http://www.internetTICO.com/cablemodem.html Questions/comments: <chuby@internettico.com>. Please use the subject CABLEMODEM or I will not answer. Biography: Linux Cable Modem mini-how-to Chapter: Hybrid cable modems sections, 4.2 and 4.4 * about using 2.3.x kernels, this are unstable as anyone knows but I found that the performace with this kernel and amnet is LOUSY ( like a 14K modem ) I DO NOT RECOMEND USING IT, but anyhow if you do use it and you get that your machine does not have ppp do not panic just upgrade your pppd program, 2.3.x kernels use a split async sync interface so pppd < 2.3.10 will NOT work. ** sometimes when I'm using the cable modem on windows and I reboot to linux the modem gets "stupid" so I need to turn off the modem, the machine, then turn on the modem and restart the machine after that it always work. I have no Idea why this happens but I'm guessing that the ethernet card has a different hardware address on windows and linux (wierd) and that the modem keeps this config on an memory, and that it needs to be cleand up for it to work, so if it was working on windows and you are not getting even a ping on linux try this. More info about Amnet can be obtained at http://www.amnet.co.cr/. 4.8. Prime Cable, Chicago, ILThis information is provided by Eric Agnew <agnew@goku.dyndns.org>: I just got a hybrid com21 setup w/ Prime Cable in Chicago, and I have a very important addition that will save other users (particularly debian users w/ newer kernels) a LOT of grief: When I initially set everything up, I was able to establish the ppp connection just fine, but the only things coming back over eth1 were broadcast packets from an internal (10.0.0.x) network. After 3 weeks of extreme frustration, I finally found the solution in the kernel docs under Documentation/networking/README.sb1000: Solution -- As root type:
so it can share the same IP address as the ppp0 interface. The boot-time script that sets this normally on debian systems is in /etc/init.d/networking, in the 'spoofprotect_rp_filter' function. I simply added 'echo 0 > /proc/sys/net/ipv4/conf/eth1/rp_filter' after it had done everything else. To be sure, I also added it to a script I added to /etc/ppp/ip-up.d that brought eth1 up if I was using the cable connection (as opposed to my other straight-ppp connection). 4.9. Millennium Digital Media, MarylandThis information is provided by Mike Miller <CableModem@mikemiller.net>: I live in Maryland (Anne Arundel County) where my cable company is Millennium Digital Media ( http://millenniumdigitalmd.com/ ), which offers Cable Modem service from Cablespeed ( http://cablespeed.com/ ). Since most areas aren't currently upgraded to 2-way digital service, for now they're giving us a General Instruments SURFboard SB2100D external (hybrid) cable modem (which includes a 33.6 modem), so you plug the cable and phone line right into the cable modem -- no need to use your own modem or set up ppp or anything. The modem uses DHCP to determine all the settings and connect to the network, so all I have to do it switch on the modem and it automatically dials up and connects to the network. To get Linux working, all I had to do was load and configure dhcpd (or dhcp-client). Since I'm using Debian, all I ran was:
and voila! I was on the net. If you're running something other than Debian, please read DHCP mini-HOWTO at http://www.oswg.org/oswg-nightly/DHCP.html. 4.10. Rock Hill Telephone (RHTC) and Fort Mill Telephone (FMTC), South CarolinaThis information is provided by Ryan T Rhea <rhear@ruby.winthrop.edu>: Rock Hill Telephone (RHTC) and Fort Mill Telephone (FMTC) offer hybid cable modem access through a partnership with the Info Avenue ISP. The cable modem is built by Hybrid, and offers high bandwidth downstream over the cable line (I've seen 900+ kpbs), and upstream over the builtin modem (around 33.6 kbps). The cable modem connects to an ethernet 10baseT card and a regular phone line. The cable modem acts as a router from your machine to the internet. RHTC and FMTC 's tech support is performed by Info Avenue, and they offer no support for Linux whatsover. They were unable to provide any help or documentation regarding Linux and cable modems. Luckily, I was aware through my initial Win NT setup (as I looked over the tech's shoulder) that DHCP was used to assign IP addresses and DNS information. What I had to learn the hard way was that the cable modem apparently relies on the MAC address of the NIC that it is originally installed on. In otherwords, when I went to move the cable modem from my NT machine (which was using a proxy server and a second NIC to share internet access) to my new Linux firewall, I had to move the NIC into the new Linux computer. Without the same NIC, the network link light on the back of the cable modem will never come on, and the modem will not communicate with your computer at all. I assume if you bought a new computer with a new NIC, you could call RHTC or FMTC and ask them to update your MAC, however, they would probably not know what you were talking about, and want to send a technician. When the technician gets there, expect "we do not support Linux" to be the first words out of his mouth. Anyway, after installing the original NIC (which probably won't be a problem for most of you, because you only have 1 NIC in your computer - which the tech setup under Windows), all I had to do was configure DHCP. Considering my NIC was already working under Linux, my Mandrake Linux distribution made this especially easy. I just type 'netconf', then choose 'Basic Host Information', then enable DHCP for the NIC in question (in my case 'Adapter 1'). The program should restart the device for you, if not, you may need to reboot, or manually restart the device with ifconfig. If you have trouble with DHCP you could check out DHCP mini-HOWTO. |