Special configuration for cable modems

Support knowledgebase (thallma_cmodem_dhcp)
Applies to

SuSE Linux: Versions up to (including) 7.2
This article refers to an older version of SuSE Linux. Therefore some of the informations given in this article may be outdated or the article may contain stale links.

Symptom

You followed the article "Configure internet access with a cable modem ", but your internet access still doesn´t work.

Cause

Some provider assign a hostname for your machine during every connection via DHCP or your provider gave you a static hostname which you have to use.

Solution:

If you want to connect via DHCP, it is neccessary to execute the steps below using YaST1 to accept the assignment of the hostname:

Start YaST1 and choose:

Search by the use of F4 for the catchword DHCLIENT and change the value of the variable

   DHCLIENT_SET_HOSTNAME

with F3 to yes. Leave the dialogue with F10 and exit YaST.

Now the dhcpcd (DHCP client daemon) should accept the hostname that will be given from your provider and the internet connetion should work.

If your provider gave you a static hostname, open the file /etc/init.d/dhclient with an ascii editor of your choice.

Please search for the following entry:

[...]
f [ "$dhclient" = "dhcpcd" ] ; then
        # The following DHCLIENT_ARGS are specific to dhcpcd.
        # (the ISC DHCP client can be finetuned via /etc/dhclient.conf
        # and so-called hooks (see man 8 dhclient-script)
        [...]
        test "$DHCLIENT_DEBUG" = "yes" && \
                                        DHCLIENT_ARGS="$DHCLIENT_ARGS -d"
else
        # if we are here, then $dhclient is the ISC dhclient
[...]

and include the following line:

DHCLIENT_ARGS="$DHCLIENT_ARGS -h <hostname>"

right before the else line, so that it afterwards looks as follows :

[...]
if [ "$dhclient" = "dhcpcd" ] ; then
        # The following DHCLIENT_ARGS are specific to dhcpcd.
        # (the ISC DHCP client can be finetuned via /etc/dhclient.conf
        # and so-called hooks (see man 8 dhclient-script)
        [...]
        test "$DHCLIENT_DEBUG" = "yes" && \
                                        DHCLIENT_ARGS="$DHCLIENT_ARGS -d"
            DHCLIENT_ARGS="$DHCLIENT_ARGS -h <hostname>"
else
        # if we are here, then $dhclient is the ISC dhclient
[...]

Instead of "<hostname>" specifiy the neccessary hostname given from your provider and save the changes.

Please make sure that the variable DHCLIENT_SET_HOSTNAME is set to no. Just follow the instruction above mentioned to check this.


See also:
o Configure internet access with a cable modem

Keywords: DHCP, CABLE, MODEM, DHCLIENT, INTERNET

SDB-thallma_cmodem_dhcp, Copyright SuSE Linux AG, Nürnberg, Germany - Version: 01. Jun 2001
SuSE Linux AG - Last generated: 28. Nov 2001 by ast (sdb_gen 1.40.0)