Setting up Linux (Redhat 5.x) for DHCP and the Road Runner Login Client

PLEASE UNDERSTAND WHAT YOU ARE DOING BEFORE YOU START THIS. SAVE YOUR EXISTING CONFIGURATION FILES BEFORE CHANGING THEM. Please read my disclaimer about such things.

In the very likely event that I've misstated something here, please let me know. My E-mail address is below.

Some of the items (and in fact this page as a whole) assume you have some sort of Internet access. I'd suggest reading this whole page and getting any software packages while you have a chance. Internet access from within Linux, using Road Runner is tedious at best.

Assumptions:

  1. Check out /etc/sysconfig/network-scripts/ifcfg-eth0. In it you should have the following three lines:
    DEVICE=eth0
    ONBOOT=yes
    BOOTPROTO=dhcp
    
  2. In /etc/sysconfig/network you need something similar to this:
    NETWORKING=yes
    FORWARD_IPV4=false
    HOSTNAME=something.twcny.rr.com
    DOMAINNAME=twcny.rr.com
    GATEWAY=24.92.255.1
    

    Change the third octet (the 255 here) to whatever your network number is. You need the .1 at the end (that's the address of the Cisco at the other end.) The "something.twcny.rr.com" doesn't matter, dhcpcd will change it anyway.

  3. Make sure dhcpcd-0.65-4.{arch}.rpm is installed (look for /sbin/dhcpcd). Install it if you don't find it.
  4. Try this:

    You should see something like: "dhcp eth0..." then "done." The PC light on the modem should be lit. If you see "failed." and the PC light goes out, something is wrong, probably with the ethernet cable. The PC light may go out when the eth0 interface is configured 'down.'

  5. At this point you should be able to reboot your machine. You are about half way through.
  6. Once the machine comes back up and you see the "dhcp eth0...done" message somewhere. Type: ifconfig eth0 You should see something like:
    eth0      Link encap:Ethernet  HWaddr 08:00:20:0C:46:D0
              inet addr:24.92.255.2   Bcast:24.92.255.255  Mask:255.255.255.0
              UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:115134 errors:1 dropped:0 overruns:0
              TX packets:109135 errors:0 dropped:0 overruns:0
              Interrupt:5 Base address:0x1270 
    

    Some of the numbers will be different, but the important ones are: inet, Bcast and Mask. If you see 0.0.0.0 for your inet address, dhcpcd failed.

  7. Try: netstat -rn You should see something like:
    Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
    24.92.255.0     0.0.0.0         255.255.255.0   U      1500 0          0 eth0
    127.0.0.0       0.0.0.0         255.0.0.0       U      3584 0          0 lo
    0.0.0.0         24.92.255.1     0.0.0.0         UG     1500 0          0 eth0
    

    Again the third octet in the route to 24.92.255.0 should be whatever your network is. You should also see the route to 0.0.0.0 (the default route address) to the router (the .1 address).

  8. ping 24.92.255.1 (change 255 to your network number.) It should be reachable. If not something is really wrong. Ie: this shouldn't happen.
  9. At this point you need to get rrlogin running. Get the TWCNY rrlogin tar file and extract it somewhere useful (like /usr/local/rrlogin).
  10. Get MD5 Perl Module and extract it somewhere temporary (like /usr/src or ~/src). Follow the instructions in README, or:
  11. Go back to the rrlogin directory and read the README file, or:
  12. Arrange for rrlogin to be run automatically at startup and/or periodically via cron. These are left as an activity for the reader.

Road Runner is a trademark of Warner Bros., a subsidiary of Time Warner Inc.

Disclaimer

Dynamic DNS Service by:
DDNS.org
Valid HTML 4.0!

-Paul
webmaster@n2kiq.ddns.org
Last modified: Fri Mar 12 00:03:32 EST 1999