[SLUG] dhcpd dhclient
I'm experiencing some weirdness getting dhclient to accept the details that are being offered by the dhcpd service. I have cleaned out all of the relevant history files - /var/lib/dhcp/dhclient-eth0-leases on the client /var/lib/dhcp/dhcpd-leases on the server /var/lib/dhcp/dhcpd-leases~ on the server so I am back to a clean skins situation. I have started the dhcpd service. When I try to start the network on the client I can see the DISCOVER packet as 0.0.0.0:68 - 255.255.255.255:67 which I understand is normal. I then see the server sending an OFFER packet, but it is being sent as 192.168.129.1:67 - 192.168.129.62:68 which I find odd as I would have expected it to be sent to either 0.0.0.0:68 or 255.255.255.255:68 since the client at this stage doesn't know what it's IP address is and I would have thought that it would still be listening on a broadcast IP address. The /var/lib/dhcp/dhcpd-leases file on the server shows that it has allocated that IP address to the correct MAC address for the client. The client is RH8.0, the server is FC3. Any clues. -- Howard. LANNet Computing Associates - Your Linux people http://lannet.com.au -- When you just want a system that works, you choose Linux; When you want a system that just works, you choose Microsoft. -- Flatter government, not fatter government; Get rid of the Australian states. begin:vcard fn:Howard Lowndes n:Lowndes;Howard org:LANNet Computing Associates adr:;;PO Box 1174;Lavington;NSW;2641;Australia email;internet:howard [AT] lowndes [DOT] name tel;work:02 6040 0222 tel;fax:02 6040 0222 tel;cell:0419 464 430 note:I am heartily sick and tired of telemarketers, therefore I do not answer phone calls which do not present Caller Line Identification, they get flicked to voicemail. I apologise if this inconveniences you, and I respect your right to not identify yourself, but I also ask that you respect my right to not answer your call if you choose not to identify yourself. Try dialing 1832 (#32# from mobiles) before the number, to present Caller Line Identification. x-mozilla-html:FALSE url:http://www.lannet.com.au version:2.1 end:vcard -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] dhcpd not working
I'm setting up dhcpd on Ubuntu 4.1 The client can get a lease, and ping the dhcp server, but can't get past there. Any suggestions would be gratefully received. [EMAIL PROTECTED]:/etc/dhcp3 # ip route ls 203.23.xxx.xxx/xx dev eth0 proto kernel scope link src 203.23.xxx.8 192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.254 default via 203.23.xx.1 dev eth0 [EMAIL PROTECTED]:/etc/dhcp3 # cat /proc/sys/net/ipv4/ip_forward 1 [EMAIL PROTECTED]:/etc/dhcp3 # --extract from dhcpd.conf-- authoritative; subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.1 192.168.1.253; option routers 192.168.1.254; } -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] dhcpd not working
On Fri, 2004-12-24 at 00:29 +1100, David wrote: I'm setting up dhcpd on Ubuntu 4.1 The client can get a lease, and ping the dhcp server, but can't get past there. Any suggestions would be gratefully received. I assume you mean that the clients can't ping other machines than the dhcp server, which is also acting as a gateway. It's no sufficient to just enable ip_forwarding - have you also set up some iptables rules for the forwarding? In this case, you'll need IP masquerading, because the client machines have non-routeable 192.168.* addresses. Cheers, Jan. -- Jan Schmidt [EMAIL PROTECTED] -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] dhcpd
I'm trying to normalise the way dhcpd starts on our server (RH7.2); it was started from rc.local with a call to the binary, and I want to see it start (as intended) from the init script. There was no init script, so I copied it over from another 7.2 system, chowned to root and chmoded to 755, added it to chkconfig at run level 3, 4, and 5: everything seems good. However, service dhcpd start/stop/restart/status achieve absolutely nothing: the process continues to run on stop, and does not start on start, and status returns nothing. The script seems very simple (although I'm far from a bash script expert), so I don't know what is happening. Can anyone help? Edwin Humphries, Ironstone Technology Pty Ltd [EMAIL PROTECTED] www.ironstone.com.au Phone: 02 4233 2285 Fax: 02 4233 2299 Mobile: 0419 233 051 -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] dhcpd WinXP
Does anyone know if there is an issue with running a Linux based dhcpd server (specifically the one with RH8.0) when trying to serve IP addresses to XP Pro boxen. I can see the XP clients requesting DHCPDISCOVER and I can see the dhcpd server responding with an IP and other data DHCPOFFER, but the XP then fails to get the message and nothing happened, iow, there is no DHCPREQUEST and subsequent DHCPACK. The XP boxen work fine to a NT DHCP server, so I guess the problem is with the Linux based dhcpd server. I can see nothing in the archives that specifically addresses this combination so is there any other info out there? -- Howard. LANNet Computing Associates - Your Linux people http://www.lannetlinux.com -- Flatter government, not fatter government - Get rid of the Australian states. -- There are 10 types of people in the world, those who understand binary, and those who don't. -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] dhcpd WinXP
Does anyone know if there is an issue with running a Linux based dhcpd server (specifically the one with RH8.0) when trying to serve IP addresses to XP Pro boxen. I can see the XP clients requesting DHCPDISCOVER and I can see the dhcpd server responding with an IP and other data DHCPOFFER, but the XP then fails to get the message and nothing happened, iow, there is no DHCPREQUEST and subsequent DHCPACK. The XP boxen work fine to a NT DHCP server, so I guess the problem is with the Linux based dhcpd server. I can see nothing in the archives that specifically addresses this combination so is there any other info out there? -- Howard. LANNet Computing Associates - Your Linux people http://www.lannetlinux.com -- Flatter government, not fatter government - Get rid of the Australian states. -- There are 10 types of people in the world, those who understand binary, and those who don't. -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] dhcpd WinXP
I have this senario running on my home network without any dramas at all... Adam. On Thu, 2003-01-23 at 17:10, Howard Lowndes wrote: Does anyone know if there is an issue with running a Linux based dhcpd server (specifically the one with RH8.0) when trying to serve IP addresses to XP Pro boxen. I can see the XP clients requesting DHCPDISCOVER and I can see the dhcpd server responding with an IP and other data DHCPOFFER, but the XP then fails to get the message and nothing happened, iow, there is no DHCPREQUEST and subsequent DHCPACK. The XP boxen work fine to a NT DHCP server, so I guess the problem is with the Linux based dhcpd server. I can see nothing in the archives that specifically addresses this combination so is there any other info out there? -- Howard. LANNet Computing Associates - Your Linux people http://www.lannetlinux.com -- Flatter government, not fatter government - Get rid of the Australian states. -- There are 10 types of people in the world, those who understand binary, and those who don't. -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] DHCPD hostnames
On Mon, 3 Dec 2001, Howard Lowndes wrote: It seems to be a morning for questions. I have dhcpd running on a machine on my network with get-lease-hostnames on. Some machines that use this dhcpd pick up their assigned lease hostname which says that this function is working, as reported by /bin/hostname. Others don't, staying with the default localhost.localdomain even though there is a valid hostname in the DNS. What determines whether the default hostname gets overridden by the assigned hostname. I found that if you have /etc/hosts entries or something setup in /etc/sysconfig/network (is this file RH specific?) it can override what comes from your DHCP server. This is how my laptop's setup because I want to keep the hostname the same every time. -- ---GRiP--- Web: www.arcadia.au.com/gripz Phone/fax: 02 4950 1194 Mobile: 0408 686 201 -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] DHCPD hostnames
- Original Message - From: Howard Lowndes [EMAIL PROTECTED] To: Mail List - SLUG [EMAIL PROTECTED] Sent: Monday, December 03, 2001 8:35 AM Subject: [SLUG] DHCPD hostnames I have dhcpd running on a machine on my network with get-lease-hostnames on. Some machines that use this dhcpd pick up their assigned lease hostname which says that this function is working, as reported by /bin/hostname. Others don't, staying with the default localhost.localdomain even though there is a valid hostname in the DNS. What determines whether the default hostname gets overridden by the assigned hostname. G'day Howard, There are a couple of things to check. Do the machines that this is working for already have a hostname defined (init scripts)? Can you force one of the clients to renew their lease and see what happens. I believe you can ask dhcp to give some more output than normal with a command line option(-d) and this usually gives a better idea as to why it is not working. Are any of the machines RH6.x as there are some problems with is dhcp client. ---Gareth Walters -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] DHCPD hostnames
It seems to be a morning for questions. I have dhcpd running on a machine on my network with get-lease-hostnames on. Some machines that use this dhcpd pick up their assigned lease hostname which says that this function is working, as reported by /bin/hostname. Others don't, staying with the default localhost.localdomain even though there is a valid hostname in the DNS. What determines whether the default hostname gets overridden by the assigned hostname. -- Howard. LANNet Computing Associates - Your Linux people Contact detail at http://www.lannetlinux.com We are either doing something, or we are not. 'Talking about' is a subset of 'not'. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] dhcpd..
hi Do you have a dhcpd.leases file? If not yhen you should touch one no.. just tried it still nothing.. What does your /var/log/messages file tell you? it shows nothing at all well besides the usall and a couple of --MARK-- Have you run tcpdump on eth1 to see what packets are happening? some bootp messages as ppl try to connect like 04:29:29.513642 0.0.0.0.bootpc 255.255.255.255.bootps: xid:0x4f4a5a4a secs:3072 [|bootp] thanks. alex _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] dhcpd..
Do a ps aux and grep for bootpd - if you have a bootpd service running, then you need to disable the bootp server. The bootp server is usually started in inetd.conf. np no bootp anything alex _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] dhcpd..
What does your /var/log/messages file tell you? it shows nothing at all well besides the usall and a couple of --MARK-- Try /var/log/daemon.log that might be more helpful daves -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] dhcpd..
ahha socket: Protocol not available - make sure CONFIG_PACKET and CONFIG_FILTER are defined in your kernel configuration! now this looks more like it... which options are these.. i am using 2.2.18.. thanks alex On Sunday 04 February 2001 20:42, you wrote: What does your /var/log/messages file tell you? it shows nothing at all well besides the usall and a couple of --MARK-- Try /var/log/daemon.log that might be more helpful daves _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] dhcpd..
On Mon, Feb 05, 2001 at 05:52:50AM +1100, Alex Salmon uttered: ahha socket: Protocol not available - make sure CONFIG_PACKET and CONFIG_FILTER are defined in your kernel configuration! Simple error. It's hit me a few times, and I'm sure it's done it again, because 2.4.1 doesn't work on my network :-) now this looks more like it... Yep, very helpful error. which options are these.. i am using 2.2.18.. If you use either 'make menuconfig' or 'make xconfig' (*NOT* make config :-), if you select the help option for the different kernel options. It's standard across the config's, which is why they are in the error message. Now, because there has been a bunch of crap on the list about how Debian users are elistist, and just say "RTFM", i've told you _how_ to do it, but i'll also tell you what you need to do: Run 'make menuconfig' or 'make xconfig', whichever floats your boat. Enter the 'Networking options' (menuconfig) or '' (xconfig) You need both 'Packet socket' (CONFIG_PACKET) and 'Socket Filtering' (CONFIG_FILTER) selected. Recompile your kernel, run lilo, etc, etc... _And_, I just fixed my 2.4.1 problem (forgot CONFIG_FILTER) :-) thanks alex On Sunday 04 February 2001 20:42, you wrote: What does your /var/log/messages file tell you? it shows nothing at all well besides the usall and a couple of --MARK-- If you find the "--MARK--" annoying like I do, put: SYSLOGD="-m 0" (which means set mark interval to zero) in your /etc/init.d/sysklogd Try /var/log/daemon.log that might be more helpful daves Terry, etc... Debian users elitist!! What a total bunch of crap. Now, i could go on a total #linux thread here, and say 'knowledge gained by yourself is much better than the answer,' but i'll refrain, and just say that Debian users __aren't__ elistist, we will help, if asked nicely, and the person is willing to RTFM, or be pointed at the relevant part of TFM... _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug -- Steve "I'm a sysadmin because I couldn't beat a blind monkey in a coding contest." --Me -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] dhcpd.. thanks all
On Mon, Feb 05, 2001 at 05:52:50AM +1100, Alex Salmon uttered: ahha about an hour after that so did all thoseusers on our network that now have net acess better then evr. once again thanks slug. alex _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
[SLUG] dhcpd..
hi i am compleatly stumped.. I am trying to set up my debian woody box to collect the internet on eth0 via dhcp then forward it to anyone connected to my hub on eth1 also via dhcp.. I have read every doc /howto/minihowto i can find and followed every list of instructions.. and basicly i can connect to the net fine.. if ppl set me as there gateway masq works a charm but dhcp is as dead as a doornail between me and the internel net .. it does precisly zip.. I apt-got dhcp then configured /etc/dhcpd.conf then edited /etc/init.d/dhcp (change the run thing to 1 as specified) then ran dhcpd eth1 to test it.. i also tried it from /etc/init.d/dhcp nothing.. no pc's could connect or even get an ip.. i tried dhcp -d -f as specified in the docs.. nothing.. ps ax revels no existance of dhcp etc.. I also added route add 255.255.255.255 dev eth1 for picky clients also as specified. so 2 Q a) what have i forgotten/missed/stuffedup and b) why are there 3 programs. dhcpd , dhcpd-2.0.x and dhcpd-2.2.x vila:/home/salmona# cat /etc/dhcpd.conf subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.2 192.168.1.60; default-lease-time 86400; max-lease-time 86400; option routers 192.168.1.1; option ip-forwarding on; option broadcast-address 192.168.1.255; option netmask 255.255.255.0; } vila:/home/salmona# vila:/home/salmona# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 255.255.255.255 * 255.255.255.255 UH0 0 0 eth1 192.168.0.0 * 255.255.255.0 U 0 0 0 eth1 202.156.17.0* 255.255.255.0 U 0 0 0 eth0 default 202.156.17.10.0.0.0 UG0 0 0 eth0 vila:/home/salmona# vila:/home/salmona# ipchains -L Chain input (policy ACCEPT): Chain forward (policy DENY): target prot opt sourcedestination ports MASQ all -- anywhere anywhere n/a Chain output (policy ACCEPT): vila:/home/salmona# yes i know its a bad policy but for testing itl do thanks alot.. alex _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
[SLUG] DHCPD question
With the dhcpd server there is the ability to pass several parameters to a requesting client when it seeks to lease an address. I have noticed that my dhcpd server is passing some parameter or other to a Windows client that is telling the latter to resolve netbios using dns, which is causing the client to try to resolve some pretty unreasonable names. Which of the dhcpd.conf settings is likely to be causing this, or better still which setting would prevent it. My dhcpd.conf is below. The WINS server at .74 is working OK, but the client keeps trying to resolve netbios names with .66 et al, which I don't want. When I look on the Windows client in winipcfg I see that the NETBIOS Resolution uses DNS box is ticked, and that is not from any setting on the Windows client, so somehow its coming from the dhcp parameters. Could it be that Windows is assuming that because it has been told about some dns name servers then it is entitled to assume that it can use them for netbios resolution. Why would I not be surprised if that was the case (8-( option domain-name "lannet.com.au"; option domain-name-servers 203.41.237.66, 139.130.4.4,139.130.4.5; option netbios-name-servers203.41.237.74; option netbios-dd-server 203.41.237.74; get-lease-hostnames off; max-lease-time 10800; default-lease-time 7200; server-name "janus.lannet.com.au"; # A pseudo definition to keep dhcpd quiet about the eth0 interface subnet 203.41.237.64 netmask 255.255.255.252 { option broadcast-address 203.41.237.67; } # LANNet workstations subnet 203.41.237.80 netmask 255.255.255.240 { range 203.41.237.82 203.41.237.94; option routers 203.41.237.81; option broadcast-address 203.41.237.95; } -- Howard. __ LANNet Computing Associates http://www.lannet.com.au -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
[SLUG] Dhcpd problem
I was playing around with the Dhcpd configuration and somehow managed to get this error message: No subnet declaration for eth0 (10.3.2.1).Please write a subnet declaration for the network segment towhich interface eth0 is attached.exiting. I have deleted the configuration file, the lease file, and backup lease file, reinstalled dhcpd but after configuring Dhcpd i still get the error. Any suggestions? RunTimeError[EMAIL PROTECTED]MLUG - Mudgee Linux User Grouphttp://www.mlug.cjb.net
Re: [SLUG] Dhcpd problem
On Thu, Sep 21, 2000 at 04:06:32PM +1000, RunTimeError wrote: I was playing around with the Dhcpd configuration and somehow managed to get this error message: No subnet declaration for eth0 (10.3.2.1). Please write a subnet declaration for the network segment to which interface eth0 is attached. exiting. I have deleted the configuration file, the lease file, and backup lease file, reinstalled dhcpd but after configuring Dhcpd i still get the error. At a minimum you need something like subnet 10.0.0.0 netmask 255.255.255.0 { } in your dhcpd.conf with suitable values for your network of course Any suggestions? RunTimeError [EMAIL PROTECTED] MLUG - Mudgee Linux User Group http://www.mlug.cjb.net -- John -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug