Bug 134380 - DHCP configuration fails in YAST
Summary: DHCP configuration fails in YAST
Status: RESOLVED WORKSFORME
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: YaST2 (show other bugs)
Version: unspecified
Hardware: i686 SuSE Linux 10.0
: P5 - None : Normal
Target Milestone: ---
Assignee: Lukas Ocilka
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-18 12:51 UTC by Matthew Fairtlough
Modified: 2005-12-15 14:41 UTC (History)
0 users

See Also:
Found By: Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Fairtlough 2005-11-18 12:51:28 UTC
I've 2 RealTex network cards, one connected to ADSL modem and another to an ethernet switch serving a small home network.  I configure the 2nd using YAST for an internal network, allowing a DHCP server and then run the DHCP server setup tool from YaST.  The configuration file /etc/dhcpd.conf is not correctly generated since it omits the subnet and netmask details so dhcpd cannot be started. There is no obvious way of entering the subnet and netmask from YAST. See below for the config file generated.  I'm not sure exactly how you find and report the version but I include a relevant line from boot.msg below.

option domain-name "linux.lan";
option domain-name-servers 10.0.0.138, 10.0.0.138;
option routers 10.0.0.138;
default-lease-time 14400;
ddns-update-style none;
subnet  netmask  {
  range 10.0.0.200 10.0.0.240;
  default-lease-time 14400;
  max-lease-time 172800;
}

Linux version 2.6.13-15-default (geeko@buildhost) (gcc version 4.0.2 20050901 (prerelease) (SUSE Linux)) #1 Tue Sep 13 14:56:15 UTC 2005
Comment 1 Lukas Ocilka 2005-11-21 11:42:51 UTC
Attach YaST logs, please, and describe how have you configured the service:
http://www.opensuse.org/Bug_Reporting_FAQ#YaST

As I have tested it on my 10.0 it has created a good-looking dhcpd.conf:
subnet 10.20.0.0 netmask 255.255.240.0 {
  range 10.20.2.32 10.20.2.64;
  default-lease-time 14400;
  max-lease-time 172800;
}

YaST logs are needed because I cannot reproduce the error. The subnet and netmas information is taken from the network configuration, you should see it in the "Dynamic DHCP" dialog in "Current Network" and "Current Netmask", please, check it there.

Thanks
Comment 2 Lukas Ocilka 2005-11-28 09:38:22 UTC
Matthew, could you, please attach those YaST logs? I would be unable to fix it without them because I can't reproduce the bug.
Comment 3 Lukas Ocilka 2005-12-15 14:41:14 UTC
I'm sorry but I can't fix it without logs and it was impossible to reproduce this bug without them.

If you find logs and/or reproduce it yourself, please, reopen this bug and attach logs.
Thanks.