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.
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.