old-www/HOWTO/Motorola-Surfboard-Modem/prerequisites.html

349 lines
9.4 KiB
HTML

<HTML
><HEAD
><TITLE
>Prerequisites</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Motorola Surfboard 4100 + 4200 Series USB Cable Modem mini-HOWTO"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Introduction"
HREF="intro.html"><LINK
REL="NEXT"
TITLE="Using the USB interface instead of an ethernet card"
HREF="usb.html"></HEAD
><BODY
CLASS="sect1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Motorola Surfboard 4100 + 4200 Series USB Cable Modem mini-HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="intro.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="usb.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="prerequisites"
></A
>2. Prerequisites</H1
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="networking"
></A
>2.1. Networking and Operating System Support</H2
><P
>&#13;The Motorola Surfboard 4100 and 4200 Cable Modem series are common devices provided by cable Internet services. They are easily configurable for use under Linux. For more information about the device not related to Linux configuration, please see the manufacturer's website <A
HREF="http://broadband.motorola.com/noflash/surfboard.html"
TARGET="_top"
>here.</A
>
</P
><P
>&#13;There are two requirements for using a Motorola Surfboard 4100 and 4200 series USB cable modem (hereafter referred to as a 'Surfboard'). The first is the appropriate networking support for the device in your kernel; note that most base installs of Linux distributions come TCP/IP and ethernet enabled 'out of the box,' so there is probably very little most readers will need to do other than be sure their ethernet card is working. If you know that your ethernet card is supported and working you can move on to <A
HREF="prerequisites.html#modem"
>Section 2.2</A
>. For those who like to compile their own kernels (see the <A
HREF="http://www.tldp.org/HOWTO/Kernel-HOWTO.html"
TARGET="_top"
>Kernel HOWTO</A
> for more information), the following options are required to get the cable modem to work:
</P
><P
>&#13;Under 'Networking options':
<P
></P
><UL
><LI
><P
>&#13; TCP/IP Networking
</P
></LI
></UL
>
</P
><P
>along with ONE of the following:
<P
></P
><UL
><LI
><P
>&#13; Network Device Support: Ethernet (10 or 100Mbit) Support and your ethernet card driver
</P
></LI
><LI
><P
>&#13; USB Support + USB CDCEther driver support
</P
></LI
></UL
>
</P
><P
>&#13;PPP support is not required per se, as the modem is itself a PPP link.
</P
><P
>&#13;Note that there are two possible interfaces on the modem to connect your computer. One is through ethernet and is probably the default a cable provider will attempt to use when setting up the Surfboard. The other is to use the USB interface. The former of these is arguably easiest; the only requirements other than the above is that you have an ethernet card installed which is open, i.e. that you can connect to the modem ethernet jack using ordinary 10BaseT/100BaseT ethernet cable. If you are uncertain about anything in the last sentence I recommend you read the <A
HREF="http://www.tldp.org/HOWTO/Ethernet-HOWTO.html"
TARGET="_top"
>Ethernet HOWTO</A
> for proper configuration of your ethernet card.
</P
><P
>I have used my own 4100 model with each interface, and at least on my system there seems to be little difference in performance using an ethernet card or the USB port. The drawback of the ethernet method is that your network card will be tied up.
</P
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="modem"
></A
>2.2. The Modem Device</H2
><P
> First, plug in and turn on the Surfboard. Connect your ethernet card to the Surfboard with 10BaseT/100BaseT cable into the non-USB interface, if this was not already done for you. Be sure the modem isn't on standby mode by checking the LEDs; you should see some dancing green lights to confirm this. The standby button is on the top of the device on most models. Your cable internet provider should be able to tell remotely whether your modem is connected and functioning properly, which is helpful for differentiating between hardware and configuration problems on your end. They will also need the MAC (Media Access Control) hardware address of your modem to allow the device access to their network. If at any time you substitute one modem for another you will need to inform them so the MAC address can be updated and your access to the cable network restored.
</P
><P
> Once you connect for the first time, your modem will be assigned an IP address, which may remain the same or change periodically depending on the IP address turnover of your ISP's DHCP server, and how long you remain offline if you disconnect. Should the IP address provided to the modem by your ISP ever have to be released, for whatever reason, you can do this by resetting the device. This involves inserting the tip of a sharp pencil or a pin into the small orifice on the input face. The only time this may be necessary is if you are having trouble with your connection and you are instructed to try this maneuver by your ISP's technical support staff. Only do this if you know what you're doing or are directed to do so by your ISP, as it's generally not a good idea to go around sticking metal objects into the various openings of electrical devices.
</P
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="DHCP"
></A
>2.3. The DHCP Client</H2
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="DHCP-deb"
></A
>2.3.1. Installation on a Debian System</H3
><P
>&#13;The Surfboard works fine out of the box under Debian once you
have installed and started the DHCP client package. As of this writing there are two user-space programs for this. In Woody (stable), there is the dhcp-client package, automatically installed as a part of the base packages as <TT
CLASS="filename"
>/sbin/dhclient</TT
>. For Sarge (testing) and up, this has been replaced by the dhcpcd package. The latter has its configuration files under <TT
CLASS="filename"
>/etc/dhcpc</TT
>, but nothing really needs to be modified if you are setting up only one ethernet card for the cable internet service. The dhcpcd daemon is easily installed for those using testing branch as root, with <B
CLASS="command"
>apt-get install dhcpcd </B
>.
</P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="DHCP-rpm"
></A
>2.3.2. Installing on .rpm- or .tgz-Based Systems</H3
><P
>&#13;For .rpm- or .tgz-based distributions, I offer the following link that walks you through the setup of a DHCP client, in the <A
HREF="http://www.tldp.org/HOWTO/mini/DHCP/x74.html"
TARGET="_top"
>DHCP mini-HOWTO</A
>.
</P
><P
>&#13;Just run <B
CLASS="command"
> /sbin/dhclient </B
> or whichever client you use to get a dynamic IP address.
</P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="configuration"
></A
>2.3.3. Checking your Configuration</H3
><P
>&#13;Once you are plugged into the system you are provided your own IP address,
which doesn't change unless you drop the lease (i.e. go offline) for a while. To confirm that the DHCP client is working and you have a new IP address, execute (as root) <B
CLASS="command"
>ifconfig</B
> without any other arguments, and you should see the following:
</P
><P
>&#13;<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>eth0 Link encap:Ethernet HWaddr 00:D0:09:DE:D4:6F
inet addr:66.190.XXX.XXX Bcast:255.255.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2591777 errors:0 dropped:0 overruns:0 frame:0
TX packets:5589 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:168673636 (160.8 MiB) TX bytes:1752872 (1.6 MiB)
Interrupt:12 Base address:0xc400
</PRE
></FONT
></TD
></TR
></TABLE
>
</P
><P
>&#13;<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:5168 errors:0 dropped:0 overruns:0 frame:0
TX packets:5168 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1695104 (1.6 MiB) TX bytes:1695104 (1.6 MiB)
</PRE
></FONT
></TD
></TR
></TABLE
>
</P
><P
>&#13;...which shows the system loopback device, <TT
CLASS="filename"
>/dev/lo</TT
>, and also <TT
CLASS="filename"
>/dev/eth0</TT
>, your ethernet card and the Surfboard, having successfully acquired an IP address (or 'inet addr') provided by the cable internet service provider.</P
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="intro.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="usb.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Introduction</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Using the USB interface instead of an ethernet card</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>