Re: [CentOS] CENTOS DHCP Server and windows computer/host name ISSUE

2010-08-24 Thread Alan Hodgson
On Tuesday, August 24, 2010, linux-crazy hichee...@gmail.com wrote:
 
 Is there is any configuration to be tuned on dhcpd.conf or any  files or
 parameter to be tuned on windows 2003 guests to get the hostname from the
 DHCP/DNS . i heard about some option like *dhcpd  opt 12* on windows
 regisrty level will do the job , But am blank how to get things done .
 
 .

Ask on a Windows list?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CENTOS DHCP Server and windows computer/host name ISSUE

2010-08-24 Thread Phil Savoie
See inline, please

linux-crazy wrote:
 Hi list,
 
 We are running few Centos5.4 and windows 2003 instance  on CENTOS XEN 
 virtualized environment , all the guest are getting the 
 IP/NETWORK/GATEWAY setting from the DHCP Server running on CENTOS 5 
 server and the DNS configured on the  windows 2003 server.  
 
   All of the CENTOS Guests are getting the IP and  the host name as per 
 the DNS forward look up configured. For example  If the CENTOS  guest1 
 get x.y.z.1 as an IP and it gets the host name as machine1.example.com 
 http://machine1.example.com  and so on .
 
 
 But none of the windows guest is getting the hostname or computer name 
 from the DHCP server even though its getting the ip from the centos DHCP 
 server properly ,  instead all the windows guest are   setting up the 
 hostname or computername as  ORGNAME-withsomenumbers . eg: 
 techsoft-342156 as a computer name .
 
 See at present we are not doing any static mapping of IP/HOSTNAME  based 
 on windows GUEST MAC address. So statically mapping the hostname/ip with 
 guest MAC address is out of question  now.  
 
 
 Is there is any configuration to be tuned on dhcpd.conf or any  files or 
 parameter to be tuned on windows 2003 guests to get the hostname from 
 the DHCP/DNS . i heard about some option like *dhcpd  opt 12* on 
 windows regisrty level will do the job , But am blank how to get things 
 done .
 
 
 
 
 Also is there is a way to tune CENTOS DHCP Server to lease the ip to the 
 dhcp client in uniform order rather it leases randomly .
 
I use mac address reservations in the /etc/dhcpd.conf file, like so:

host linsrv {
 hardware ethernet 00:50:fc:57:5c:db;
 option host-name linsrv;
 fixed-address 192.168.100.254;
}

 
  If any one throws me some light on how to get this done  it will be 
 really great full for me .
 
 Regards,
 Lingu
 

HTH,

Phil
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CENTOS DHCP Server and windows computer/host name ISSUE

2010-08-24 Thread Victor Padro
On Tue, Aug 24, 2010 at 3:12 PM, linux-crazy hichee...@gmail.com wrote:
 Hi list,

 We are running few Centos5.4 and windows 2003 instance  on CENTOS XEN
 virtualized environment , all the guest are getting the IP/NETWORK/GATEWAY
 setting from the DHCP Server running on CENTOS 5 server and the DNS
 configured on the  windows 2003 server.

   All of the CENTOS Guests are getting the IP and  the host name as per the
 DNS forward look up configured. For example  If the CENTOS  guest1 get
 x.y.z.1 as an IP and it gets the host name as machine1.example.com  and so
 on .


 But none of the windows guest is getting the hostname or computer name from
 the DHCP server even though its getting the ip from the centos DHCP server
 properly ,  instead all the windows guest are   setting up the hostname or
 computername as  ORGNAME-withsomenumbers . eg: techsoft-342156 as a computer
 name .

 See at present we are not doing any static mapping of IP/HOSTNAME  based on
 windows GUEST MAC address. So statically mapping the hostname/ip with guest
 MAC address is out of question  now.


 Is there is any configuration to be tuned on dhcpd.conf or any  files or
 parameter to be tuned on windows 2003 guests to get the hostname from the
 DHCP/DNS . i heard about some option like dhcpd  opt 12 on windows
 regisrty level will do the job , But am blank how to get things done .




 Also is there is a way to tune CENTOS DHCP Server to lease the ip to the
 dhcp client in uniform order rather it leases randomly .


  If any one throws me some light on how to get this done  it will be really
 great full for me .

 Regards,
 Lingu

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos



Why don't you run DHCP  DNS on CentOS?

-- 
Linux User #452368
http://twitter.com/vpadro

Everything that irritates us about others can lead us to an
understanding of ourselves
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CENTOS DHCP Server and windows computer/host name ISSUE

2010-08-24 Thread Steve Thompson
On Tue, 24 Aug 2010, Phil Savoie wrote:

 I use mac address reservations in the /etc/dhcpd.conf file, like so:

 host linsrv {
 hardware ethernet 00:50:fc:57:5c:db;
 option host-name linsrv;
 fixed-address 192.168.100.254;
 }

The way that I always do it is:

host foobar {
hardware ethernet xx:xx:xx:xx:xx:xx;
fixed-address hostname.domain.org;
}

and rely on the DNS to supply the fixed IP address. This works for Linux, 
Windows XP, Vista and 7, and OS X.

Steve
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS DHCP Server

2009-12-14 Thread Kemp, Larry
Dnsmasq...good lightweight program that works in many instances. This was a 
very good lesson for me to first do a less on /etc/services before I bother the 
group with questions (noob mistake). I just configured BIND to handle my DNS 
requests. This particular box is a hybrid/appliance of sorts that we are 
working on in a lab. It functions as a firewall between the Internet and a 
private /24 LAN running iptables. It runs Aterisk for internal/external SIP 
communications with a hacked up interface of Spencer's code to have a branded 
look. Internally it runs DHCP for phones and PC's and DNS for internal LAN and 
Internet resolution of hosts. And Apache an TFTP for booting of 
SIP-phone-filesystems and logos on the phones. Probably a much 
better/faster/lighter way to do it all but it serves test purposes for now. 
Thanks all for the direction.

LK

-Original Message-
From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf Of 
Alan McKay
Sent: Tuesday, December 08, 2009 4:45 PM
To: CentOS mailing list
Subject: Re: [CentOS] CentOS DHCP Server

On Tue, Dec 8, 2009 at 4:35 PM, Kemp, Larry larry.k...@usmetrotel.com wrote:
 Yep. Dnsmasq was parked on 67. Gonna have to yum remove him. Big thanks 
 guys.

better be sure first that it is not also acting as a DNS server since
it does both


-- 
Don't eat anything you've ever seen advertised on TV
 - Michael Pollan, author of In Defense of Food
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS DHCP Server

2009-12-08 Thread Jon Moore
On Tue, Dec 8, 2009 at 3:03 PM, Kemp, Larry larry.k...@usmetrotel.com wrote:
 CentOS Community,

 I need help with a CentOS DHCP server.

 I have a simple 32bit CentOS 5.3 server running on an Intel chip server in a 
 lab environment with two NIC's.

 Interfaces:
 eth0 - Is connected to the Internet using a static public IP address.
 eth1 - Is connected to a private 10.1.1.0/24 LAN with no other access to the 
 web.
         Runs DHCP to the internal client systems.
       Is the default gateway for all LAN traffic to the Internet.
       Runs iptables as the firewall between the LAN and the Internet.

 On eth1 DHCP was running with no problems for some time. This lab system sat 
 for months untouched and then we revisited this product/project only to find 
 that DHCP would not start. It gave us this following error:

        Failed to start dhcpd :
        Internet Systems Consortium DHCP Server V3.1.3
        Copyright 2004-2009 Internet Systems Consortium.
        All rights reserved.
        For info, please visit https://www.isc.org/software/dhcp/
        Wrote 0 leases to leases file.
        Listening on LPF/eth1/00:50:ba:c0:43:c7/10.1.1/24
        Sending on   LPF/eth1/00:50:ba:c0:43:c7/10.1.1/24
        Can't bind to dhcp address: Address already in use
        Please make sure there is no other dhcp server
        running and that there's no entry for dhcp or
        bootp in /etc/inetd.conf.   Also make sure you
        are not running HP JetAdmin software, which
        includes a bootp server.
snip

The error message makes me think another dhcpd daemon is running.
Have you checked for this with 'ps aux | grep dhcpd' or similar?

Since you've done updates, I'd assume you've rebooted the server, so
it seems strange this might be the issue.  Could possibly check to see
if there is indeed another dhcpd daemon running.  Something along the
lines of 'netstat -patun | grep dhcp' or look for anything listening
on UDP:68, iirc.

Someone else will probably be able to provide better help.

-jonathan
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS DHCP Server

2009-12-08 Thread Ron Loftin

On Tue, 2009-12-08 at 16:03 -0500, Kemp, Larry wrote:
 CentOS Community,
 
 I need help with a CentOS DHCP server.
 
 I have a simple 32bit CentOS 5.3 server running on an Intel chip server in a 
 lab environment with two NIC's. 
 
 Interfaces:
 eth0 - Is connected to the Internet using a static public IP address.
 eth1 - Is connected to a private 10.1.1.0/24 LAN with no other access to the 
 web. 
Runs DHCP to the internal client systems.
Is the default gateway for all LAN traffic to the Internet.
Runs iptables as the firewall between the LAN and the Internet.
 
 On eth1 DHCP was running with no problems for some time. This lab system sat 
 for months untouched and then we revisited this product/project only to find 
 that DHCP would not start. It gave us this following error:
 
   Failed to start dhcpd : 
   Internet Systems Consortium DHCP Server V3.1.3
   Copyright 2004-2009 Internet Systems Consortium.
   All rights reserved.
   For info, please visit https://www.isc.org/software/dhcp/
   Wrote 0 leases to leases file.
   Listening on LPF/eth1/00:50:ba:c0:43:c7/10.1.1/24
   Sending on   LPF/eth1/00:50:ba:c0:43:c7/10.1.1/24
   Can't bind to dhcp address: Address already in use
   Please make sure there is no other dhcp server
   running and that there's no entry for dhcp or
   bootp in /etc/inetd.conf.   Also make sure you
   are not running HP JetAdmin software, which
   includes a bootp server.   
 
 There is no other DHCP server on this LAN or on the public /30 that eth0 
 connects to (not that eth0 would impact my internal LAN). 
 

I'm just guessing here, but I think that this message is telling you
that something else is bound to that interface on port 67 ( DHCP server
port ) which occasionally can happen by chance.

Try lsof like this ( as root, of course ):

lsof -i -Pn | grep :67

This should show you what has grabbed port 67 and it may be something
you can stop and restart to get a different ( random ) port assignment.

Like I said, this is just a guess.

 I saw there were ofcourse many systems updates for CentOS and thought that a 
 might resolve. It did not.
 
 I then downloaded many versions of ISC's DHCP and compile and tried each of 
 them from source code. This problems still exists. I have tried even the very 
 simplest of dhcp.conf files and DHCP will still not start. Have I found a bug 
 in the ISC DHCP code? Unlikely. I hope that one of you has run into this 
 before and can help me out. Thanks greatly in advance.   
 
 Respectfully,
 
 Larry Kemp
 Network Engineer
 U.S. Metropolitan Telecom, LLC
 Bonita Springs FL USA
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
-- 
Ron Loftin  relof...@twcny.rr.com

God, root, what is difference ?   Piter from UserFriendly

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS DHCP Server

2009-12-08 Thread Alan McKay
See if someone else is hanging onto port 67

[r...@morrison ~]# lsof -i -P | grep :67
dnsmasq   23404nobody5u  IPv4 46029087   UDP *:67

dnsmasq is a popular light-weight DHCP server


-- 
“Don't eat anything you've ever seen advertised on TV”
 - Michael Pollan, author of In Defense of Food
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS DHCP Server

2009-12-08 Thread Kemp, Larry
Yep. Dnsmasq was parked on 67. Gonna have to yum remove him. Big thanks guys.

LK

-Original Message-
From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf Of 
Ron Loftin
Sent: Tuesday, December 08, 2009 4:13 PM
To: CentOS mailing list
Subject: Re: [CentOS] CentOS DHCP Server


On Tue, 2009-12-08 at 16:03 -0500, Kemp, Larry wrote:
 CentOS Community,
 
 I need help with a CentOS DHCP server.
 
 I have a simple 32bit CentOS 5.3 server running on an Intel chip server in a 
 lab environment with two NIC's. 
 
 Interfaces:
 eth0 - Is connected to the Internet using a static public IP address.
 eth1 - Is connected to a private 10.1.1.0/24 LAN with no other access to the 
 web. 
Runs DHCP to the internal client systems.
Is the default gateway for all LAN traffic to the Internet.
Runs iptables as the firewall between the LAN and the Internet.
 
 On eth1 DHCP was running with no problems for some time. This lab system sat 
 for months untouched and then we revisited this product/project only to find 
 that DHCP would not start. It gave us this following error:
 
   Failed to start dhcpd : 
   Internet Systems Consortium DHCP Server V3.1.3
   Copyright 2004-2009 Internet Systems Consortium.
   All rights reserved.
   For info, please visit https://www.isc.org/software/dhcp/
   Wrote 0 leases to leases file.
   Listening on LPF/eth1/00:50:ba:c0:43:c7/10.1.1/24
   Sending on   LPF/eth1/00:50:ba:c0:43:c7/10.1.1/24
   Can't bind to dhcp address: Address already in use
   Please make sure there is no other dhcp server
   running and that there's no entry for dhcp or
   bootp in /etc/inetd.conf.   Also make sure you
   are not running HP JetAdmin software, which
   includes a bootp server.   
 
 There is no other DHCP server on this LAN or on the public /30 that eth0 
 connects to (not that eth0 would impact my internal LAN). 
 

I'm just guessing here, but I think that this message is telling you
that something else is bound to that interface on port 67 ( DHCP server
port ) which occasionally can happen by chance.

Try lsof like this ( as root, of course ):

lsof -i -Pn | grep :67

This should show you what has grabbed port 67 and it may be something
you can stop and restart to get a different ( random ) port assignment.

Like I said, this is just a guess.

 I saw there were ofcourse many systems updates for CentOS and thought that a 
 might resolve. It did not.
 
 I then downloaded many versions of ISC's DHCP and compile and tried each of 
 them from source code. This problems still exists. I have tried even the very 
 simplest of dhcp.conf files and DHCP will still not start. Have I found a bug 
 in the ISC DHCP code? Unlikely. I hope that one of you has run into this 
 before and can help me out. Thanks greatly in advance.   
 
 Respectfully,
 
 Larry Kemp
 Network Engineer
 U.S. Metropolitan Telecom, LLC
 Bonita Springs FL USA
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
-- 
Ron Loftin  relof...@twcny.rr.com

God, root, what is difference ?   Piter from UserFriendly

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS DHCP Server

2009-12-08 Thread Alan McKay
On Tue, Dec 8, 2009 at 4:35 PM, Kemp, Larry larry.k...@usmetrotel.com wrote:
 Yep. Dnsmasq was parked on 67. Gonna have to yum remove him. Big thanks 
 guys.

better be sure first that it is not also acting as a DNS server since
it does both


-- 
“Don't eat anything you've ever seen advertised on TV”
 - Michael Pollan, author of In Defense of Food
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos