Bug 53639
Summary: | dhcp does not recognize CABLE modem | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Raj Selvaraj <rajgideon> | ||||
Component: | dhcp | Assignee: | Daniel Walsh <dwalsh> | ||||
Status: | CLOSED NOTABUG | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 7.1 | CC: | sjuelsgaard | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2003-08-22 19:14:00 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Raj Selvaraj
2001-09-13 17:00:54 UTC
The problem is that the initscripts issues a command "pump -i <DEVICE> --lookup-hostname", and if you are using something like @home they want you to specify the hostname like, eg.: "pump -h <HOSTNAME> i- <DEVICE>", where HOSTNAME is the hostname they gave you, and DEVICE is something like eth0. I have made a workaround for that; a function reads the hostname from /etc/DHCP_HOSTNAME has been added to /etc/sysconfig/network/network-functions, and the variable DHCP_HOSTNAME does allready exist in /etc/sysconfig/network/ifup. To me it looks like ifup was prepared for this, but this type of initialization got dropped in the process somewhere. I can get it tonight and make the update files available if you are interested. /Soren Thank you, could please Email me the instructions and how to put this workaround in my computer. I have since reinstalled a SERVER type instal but the problems still persists. Thank you very much. Raj Gideon Selvaraj 09/18/2001. I made a patch for /etc/sysconfig/network-scripts/network-functions and for /sbin/ifup to make redhat work with dhcp over cable modems. You should create a file called /etc/DHCP_HOSTNAME that contains the hostname you need to use for dhcp to work with your ISP. For what I know this patch works well, but I would like comments from other parties (RedHat ??) on this. To apply the patch to a RedHat 7.1 install, type as root: patch -p0 <dhcp.patch Where dhcp.patch contains the following: *** /etc/sysconfig/network-scripts/network-functions.old Wed Sep 19 21:22:06 2001 --- /etc/sysconfig/network-scripts/network-functions Wed Sep 19 21:26:19 2001 *************** *** 54,61 **** --- 54,68 ---- unset NEEDHOSTNAME fi } + get_dhcp_hostname() + { + if [ -f /etc/DHCP_HOSTNAME ]; then + DHCP_HOSTNAME=`sed 's/:.*//g' /etc/DHCP_HOSTNAME` + fi + } + set_hostname() { hostname $1 if ! grep search /etc/resolv.conf >/dev/null 2>&1; then *** /sbin/ifup.old Wed Sep 19 21:21:39 2001 --- /sbin/ifup Wed Sep 19 21:50:52 2001 *************** *** 6,13 **** --- 6,14 ---- . network-functions . /etc/rc.d/init.d/functions need_hostname + get_dhcp_hostname CONFIG=${1} [ -z "${CONFIG}" ] && { Best Regards, /Soren PS: If you need anymore help, feel free to send me an email. Created attachment 32159 [details]
Fixes /etc/DHCP_HOSTNAME for cable modems
Going through and cleaning up old bug reports. Does this problem still exist or can I close it? No response will be taken as an affirmative. Dan |