Most cable modems use DHCP for connections. This howto discusses setting Linux to use your cable modem (assuming it's a standard DHCP-type setup).


Installing Required Software

DHCP in Linux uses a program called pump. You also should install netcfg, as it is an easy way to set up networking under Linux.

LinuxPPC/YDL

Put your CD-ROM in your CD-ROM drive.

su -
cd /mnt/cdrom/RedHat/RPMS/
rpm -Uvh pump*.ppc.rpm
rpm -Uvh netcfg*.ppc.rpm

Debian

As you do not have Internet access at this point, you will need to the Debian FTP site in Mac OS, and download pump and netcfg (make sure to get the PowerPC versions!!).

Once you have transfered this files over to your Linux partation, install them using:

dpkg -i pump*.deb
dpkg -i netcfg*.deb

Checking to See if Linux Sees Your Ethernet Card

To see if Linux sees you ethernet card, you should run this command:

dmesg | grep eth0

This should show your card name (or at least the type of card).

Setting up Settings

Starting netcfg

You can start netcfg by typing in as root: netcfg

Names Tab

The first tab you will see is the names tab.

The hostname blank should contain your hostname, unless you have changed it, it should read localhost. You don't need to change this to get online.

The domain blank is the domain in which your cable modem uses to get DHCP information from. An example would be: cap1.capdist.rr.com.

Search for additional hostnames blank, is the same as the search domains blank in Mac OS. If there was nothing there in Mac OS, you do not need to fill it in, if there was, then you do need to fill it in.

The Nameservers blank should be filled in with the nameservers for you. They should look something like 127.0.0.3 (although probably not localhost, like this example uses for security purposes ;). You must have at least one in here, more then one are used for backup purposes. Nameservers translate the imaclinux.net into 65.26.213.32.

Interface Tab

If an eth0 interface already exists, double click on it.

If not click add, and enter eth0 for the device name.

Once in the Edit Ethernet/Bus Interface dialog, clear out the IP and Netmask blanks. They would only be used if you had a static IP, and were not using DHCP.

You will probably want to check Enable Activate at Boot Time. This brings your cable modem connection online as soon as you boot, most users will want this.

Choose DHCP as the Interface type.

Click Done.

Back on the Main Dialog, Click Save.

Click Quit.

Bringing up the Interface Manually

Your cable modem should be ready to work now, you can start it using (as root):

/sbin/ifup eth0

Testing the Cable Modem

Use the ping command to test out your cable modem. You can do this by (yes, this is mickeysoft's IP address):

ping -c 5 207.46.230.219

If this fails, for some reason eth0 is not up, or pump is not working right. Try looking around the web for additional resources.

If that works, try a nameserver lookup using nslookup:

nslookup imaclinux.net

You should see:

Server:  ns1.thebiz.net
Address:  209.203.129.2
 
Non-authoritative answer:
Name:    web.opaquenetworks.com
Address:  65.27.144.37
Aliases:  imaclinux.net

If this fails, but the ping command worked, you should look for a mistake in the nameservers part of netcfg.

Finally, try surfing the web in Konqueror, Netscape, Mozilla, links or lynx to make sure that even webbrowsing works. ;)

Good luck. I don't own a cable modem, so I probably won't be too useful in anwsering questions (this is based mainly off of man pages, and other documentation I found on the web). Send comments to Andrew B. Arthur, .

Resources

  • man pump