Re: Make a DHCP server using Fedora - Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2008-11-16 at 17:13 -0800, Antonio Olivares wrote:
> Nov 16 19:06:27 localhost dhcpd: DHCPINFORM from 10.154.19.33 via eth0
> Nov 16 19:06:27 localhost dhcpd: DHCPACK to 10.154.19.33 (00:0f:1f:86:fc:70) via eth0
> Nov 16 19:06:30 localhost dhcpd: DHCPINFORM from 10.154.19.33 via eth0
> Nov 16 19:06:30 localhost dhcpd: DHCPACK to 10.154.19.33 (00:0f:1f:86:fc:70) via eth0
> Nov 16 19:12:24 localhost dhcpd: DHCPINFORM from 10.154.19.94 via eth0
> Nov 16 19:12:24 localhost dhcpd: DHCPACK to 10.154.19.94 (00:40:f4:ea:ee:d3) via eth0
> Nov 16 19:12:27 localhost dhcpd: DHCPINFORM from 10.154.19.94 via eth0
> Nov 16 19:12:27 localhost dhcpd: DHCPACK to 10.154.19.94 (00:40:f4:ea:ee:d3) via eth0
> Nov 16 19:12:57 localhost dhcpd: DHCPINFORM from 10.154.19.227 via eth0
> Nov 16 19:12:57 localhost dhcpd: DHCPACK to 10.154.19.227 (00:19:b9:2a:19:37) via eth0
> Nov 16 19:13:01 localhost dhcpd: DHCPINFORM from 10.154.19.227 via eth0
> Nov 16 19:13:01 localhost dhcpd: DHCPACK to 10.154.19.227 (00:19:b9:2a:19:37) via eth0

The above logs look like clients *are* connecting and getting given IPs
(the "ack" acknowledge entries).  If it weren't for that, I'd have been
suggesting checking the server isn't firewalled off from the clients.  

Perhaps you should also show us some logs from the clients.  Are these
entries from the clients you expect to work with, or are you getting
clients from someone else's network?  Having two DHCP servers on a
network is a recipe for disaster, unless you know what you're doing, so
you can configure them to work co-operatively, or not to interfere with
each other.

I'm not sure if you've detailed the topology of your network, either.

On my server, admittedly it's still FC4, but you should see something
similar, I see the following logged when a client joins:

Nov 18 04:28:37 server dhcpd: DHCPDISCOVER from 00:1e:57:0a:65:e4 via eth0
Nov 18 04:28:37 server dhcpd: DHCPOFFER on 192.168.1.23 to 00:1e:57:0a:65:e4 via eth0
Nov 18 04:28:37 server dhcpd: DHCPREQUEST for 192.168.1.23 (192.168.1.2) from 00:1e:57:0a:65:e4 via eth0
Nov 18 04:28:37 server dhcpd: DHCPACK on 192.168.1.23 to 00:1e:57:0a:65:e4 via eth0

Which *may* also have some log entries about writing leases, but that
depends on whether the leases file needed modifying at the time.  If a
client reconnects during their lease, it won't need to.  Above was
logged with a Fedora laptop joined the LAN.  And below, when a Windows
PC joined.  It's slightly different in behaviour, and sends the hostname
(bracketed) along, as well.

Nov 17 14:14:20 server dhcpd: Wrote 0 deleted host decls to leases file.
Nov 17 14:14:20 server dhcpd: Wrote 0 new dynamic host decls to leases file.
Nov 17 14:14:20 server dhcpd: Wrote 9 leases to leases file.
Nov 17 14:14:20 server dhcpd: DHCPREQUEST for 192.168.1.194 from 00:05:1c:19:dd:2f (hewie) via eth0
Nov 17 14:14:20 server dhcpd: DHCPACK on 192.168.1.194 to 00:05:1c:19:dd:2f (hewie) via eth0
Nov 17 14:16:49 server dhcpd: DHCPINFORM from 192.168.1.194 via eth0
Nov 17 14:16:49 server dhcpd: DHCPACK to 192.168.1.194
Nov 17 14:16:52 server dhcpd: DHCPINFORM from 192.168.1.194 via eth0
Nov 17 14:16:52 server dhcpd: DHCPACK to 192.168.1.194

There may be delays between some things, as the system may wait before
writing settings to file (that helps when you have a large LAN, so the
drive isn't thrashed by every client), and some clients do more chatting
a little while after setup.

And the logs on my client, using F9, show this:

Nov 18 04:28:35 laptop NetworkManager: <info>  DHCP: device wlan0 state changed (null) -> preinit
Nov 18 04:28:35 laptop dhclient: Listening on LPF/wlan0/00:1e:57:0a:65:e4
Nov 18 04:28:35 laptop dhclient: Sending on   LPF/wlan0/00:1e:57:0a:65:e4
Nov 18 04:28:35 laptop dhclient: Sending on   Socket/fallback
Nov 18 04:28:38 laptop dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
Nov 18 04:28:38 laptop dhclient: DHCPOFFER from 192.168.1.2
Nov 18 04:28:38 laptop dhclient: DHCPREQUEST on wlan0 to 255.255.255.255 port 67
Nov 18 04:28:38 laptop dhclient: DHCPACK from 192.168.1.2
Nov 18 04:28:38 laptop NetworkManager: <info>  DHCP: device wlan0 state changed preinit -> bound
Nov 18 04:28:38 laptop NetworkManager: <info>  Activation (wlan0) Stage 4 of 5 (IP Configure Get) scheduled...
Nov 18 04:28:38 laptop NetworkManager: <info>  Activation (wlan0) Stage 4 of 5 (IP Configure Get) started...
Nov 18 04:28:38 laptop NetworkManager: <info>    address 192.168.1.23
Nov 18 04:28:38 laptop NetworkManager: <info>    prefix 24 (255.255.255.0)
Nov 18 04:28:38 laptop NetworkManager: <info>    gateway 192.168.1.254
Nov 18 04:28:38 laptop NetworkManager: <info>    hostname 'laptop-wireless'
Nov 18 04:28:38 laptop NetworkManager: <info>    nameserver '192.168.1.2'
Nov 18 04:28:38 laptop NetworkManager: <info>    domain name 'lan.example.com.'
Nov 18 04:28:38 laptop NetworkManager: <info>  Activation (wlan0) Stage 5 of 5 (IP Configure Commit) scheduled...
Nov 18 04:28:38 laptop NetworkManager: <info>  Activation (wlan0) Stage 4 of 5 (IP Configure Get) complete.
Nov 18 04:28:38 laptop NetworkManager: <info>  Activation (wlan0) Stage 5 of 5 (IP Configure Commit) started...
Nov 18 04:28:38 laptop dhclient: bound to 192.168.1.23 -- renewal in 265422 seconds.
Nov 18 04:28:39 laptop NetworkManager: <info>  (wlan0): device state change: 7 -> 8
Nov 18 04:28:39 laptop NetworkManager: <info>  Policy set (wlan0) as default device for routing and DNS.
Nov 18 04:28:39 laptop NetworkManager: <info>  Activation (wlan0) successful, device activated.
Nov 18 04:28:39 laptop NetworkManager: <info>  Activation (wlan0) Stage 5 of 5 (IP Configure Commit) complete.
Nov 18 04:28:39 laptop ntpd[2302]: Listening on interface #5 wlan0, 192.168.1.23#123 Enabled
Nov 18 04:28:39 laptop NetworkManagerDispatcher: ntpd is running, restart

Secretly, I'm glad my modem/router doesn't support IPv6, so my whole
system is IPv4.  IPv6 would be yet another thing to learn about.

-- 
[tim@localhost ~]$ uname -r
2.6.27.5-37.fc9.i686

Don't send private replies to my address, the mailbox is ignored.  I
read messages from the public lists.



-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux