Re: Make a DHCP server using Fedora - Help

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

 



--- On Mon, 11/17/08, Marko Vojinovic <vvmarko@xxxxxxxxxxx> wrote:

> From: Marko Vojinovic <vvmarko@xxxxxxxxxxx>
> Subject: Re: Make a DHCP server using Fedora - Help
> To: olivares14031@xxxxxxxxx, fedora-list@xxxxxxxxxx
> Cc: vmarko@xxxxxxxxxxxx
> Date: Monday, November 17, 2008, 5:13 AM
> :-)
> 
> > I had changed back and forth between eth0 and eth1 and
> now it is and
> > should be eth0 :)
> >
> > [root@localhost ~]# cat /etc/sysconfig/dhcpd
> > DHCPDARGS=eth0
> 
> This is probably the culprit at this point... For the setup
> I suggested,
> this is plain wrong --- it instructs dhcpd to listen only
> on eth0, which
> is precisely the opposite of what we want (to listen on
> eth1 and ignore
> eth0).
> 
> Either delete the "eth0" from the above line, or
> change it to eth1.
> Restart dhcpd and look at /var/log/messages again.
> 
> > I did as you suggested and I still cannot connect the
> machines to the new
> > server :(
> >
> > /etc/dhcpd.conf
> >
> > default-lease-time 21600; #600
> > max-lease-time 43200;     #7200
> > ddns-update-style none;
> > authoritative;
> >
> > subnet 10.154.19.0 netmask 255.255.255.0 {
> > } # this means don't do anything with the big
> network
> >
> > subnet 192.168.0.0 netmask 255.255.255.0 {
> > option routers 192.168.0.1;  # your server is the
> router for classroom
> > option subnet-mask 255.255.255.0;  # the mask given to
> classroom
> > option domain-name-servers 10.154.16.130, 10.128.0.4;
> # dns servers
> > range 192.168.0.2 192.168.0.254;  # the pool of
> addresses for classroom
> > }
> 
> This is ok (or at least looks that way :-) ).
> 
> > [root@localhost ~]# service dhcpd restart
> > Starting dhcpd:                                       
>     [FAILED]
> > [root@localhost ~]# service dhcpd stop
> > [root@localhost ~]# service dhcpd stop
> > [root@localhost ~]# service dhcpd restart
> > Starting dhcpd:                                       
>     [  OK  ]
> 
> Maybe it is safer to do "service dhcpd stop" and
> then "service dhcpd
> start". The "restart" version assumes that
> dhcpd is already running, which
> may not be true...
> 
> > [root@localhost ~]#
> > It starts up but no leases show up, I am trying to
> ping computer from
> > windows 2000 machine and from another machine running
> rawhide
> 
> No leases show up because dhcpd was wrongly listening
> *only* on eth0 in
> /etc/sysconfig/dhcpd, while in /etc/dhcpd.conf it is
> instructed to give
> leases to requests from eth1.
> 
> Make sure to set win2k and rawhide machines to configure
> their network
> settings "automatically", ie. using dhcp
> protocol.
> 
> And just to be sure, post the output of
> "ifconfig". Dhcpd will not work on
> eth1 if it is not set up properly and active...
> 
> > tail -f /var/log/messages  show:
> > Nov 16 18:56:40 localhost dhcpd: Internet Systems
> Consortium DHCP Server
> > 4.0.0
> > Nov 16 18:56:40 localhost dhcpd: Copyright 2004-2007
> Internet Systems
> > Consortium.
> > Nov 16 18:56:40 localhost dhcpd: All rights reserved.
> > Nov 16 18:56:40 localhost dhcpd: For info, please
> visit
> > http://www.isc.org/sw/dhcp/
> > Nov 16 18:56:40 localhost dhcpd: Not searching LDAP
> since ldap-server,
> > ldap-port and ldap-base-dn were not specified in the
> config file
> > Nov 16 18:56:40 localhost dhcpd: Wrote 0 leases to
> leases file.
> > Nov 16 18:56:40 localhost dhcpd: Listening on
> > LPF/eth0/00:0e:a6:42:59:af/10.154.19.0/24
> > Nov 16 18:56:40 localhost dhcpd: Sending on
> > LPF/eth0/00:0e:a6:42:59:af/10.154.19.0/24
> > Nov 16 18:56:40 localhost dhcpd: Sending on  
> Socket/fallback/fallback-net
> > 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
> 
> This is again because it was listening to eth0 (and doing
> nothing with it).
> Make sure to change the line
> 
> DHCPDARGS=eth0
> 
> into
> 
> DHCPDARGS=
> 
> in /etc/sysconfig/dhcpd, and try again. :-)
> 
> HTH, :-)
> Marko

Did that, but still no go :(

Nov 17 07:27:07 localhost dhcpd: Wrote 0 leases to leases file.                 
Nov 17 07:27:07 localhost dhcpd: Listening on LPF/eth0/00:0e:a6:42:59:af/10.154.19.0/24                                                                         
Nov 17 07:27:07 localhost dhcpd: Sending on   LPF/eth0/00:0e:a6:42:59:af/10.154.19.0/24                                                                         
Nov 17 07:27:07 localhost dhcpd: Sending on   Socket/fallback/fallback-net
Nov 17 07:31:06 localhost dhcpd: DHCPINFORM from 10.154.19.25 via eth0
Nov 17 07:31:06 localhost dhcpd: DHCPACK to 10.154.19.25 (00:19:b9:10:16:92) via eth0
Nov 17 07:31:09 localhost dhcpd: DHCPINFORM from 10.154.19.25 via eth0
Nov 17 07:31:09 localhost dhcpd: DHCPACK to 10.154.19.25 (00:19:b9:10:16:92) via eth0
Nov 17 07:31:27 localhost dhcpd: DHCPINFORM from 10.154.19.14 via eth0
Nov 17 07:31:27 localhost dhcpd: DHCPACK to 10.154.19.14 (00:0f:1f:86:fc:26) via eth0
Nov 17 07:31:30 localhost dhcpd: DHCPINFORM from 10.154.19.14 via eth0
Nov 17 07:31:30 localhost dhcpd: DHCPACK to 10.154.19.14 (00:0f:1f:86:fc:26) via eth0
Nov 17 07:32:54 localhost dhcpd: DHCPINFORM from 10.154.19.211 via eth0
Nov 17 07:32:54 localhost dhcpd: DHCPACK to 10.154.19.211 (00:03:47:69:cc:90) via eth0
Nov 17 07:32:57 localhost dhcpd: DHCPINFORM from 10.154.19.211 via eth0
Nov 17 07:32:57 localhost dhcpd: DHCPACK to 10.154.19.211 (00:03:47:69:cc:90) via eth0

[root@localhost ~]# dhcpd -f
Internet Systems Consortium DHCP Server 4.0.0
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Wrote 0 leases to leases file.
Listening on LPF/eth0/00:0e:a6:42:59:af/10.154.19.0/24
Sending on   LPF/eth0/00:0e:a6:42:59:af/10.154.19.0/24
Sending on   Socket/fallback/fallback-net


[root@localhost ~]# cat /etc/sysconfig/dhcpd                                    
DHCPDARGS=                                                                      
[root@localhost ~]# ls /etc/sysconfig/network-scripts/ifcfg-eth0 
/etc/sysconfig/network-scripts/ifcfg-eth0                        
[root@localhost ~]# ls /etc/sysconfig/network-scripts/ifcfg-eth* -l
-rw-r--r-- 3 root root 130 2007-04-03 12:36 /etc/sysconfig/network-scripts/ifcfg-eth0                                                                           
[root@localhost ~]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:0E:A6:42:59:AF  
          inet addr:10.154.19.210  Bcast:10.154.19.255  Mask:255.255.255.0
          inet6 addr: fe80::20e:a6ff:fe42:59af/64 Scope:Link              
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1              
          RX packets:2769 errors:0 dropped:0 overruns:0 frame:0           
          TX packets:1139 errors:0 dropped:0 overruns:0 carrier:0         
          collisions:0 txqueuelen:1000                                    
          RX bytes:862419 (842.2 KiB)  TX bytes:231896 (226.4 KiB)        
          Interrupt:22                                                    

eth1      Link encap:Ethernet  HWaddr 00:60:97:C5:2A:C3  
          BROADCAST MULTICAST  MTU:1500  Metric:1        
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000                        
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:18 Base address:0xdf00

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1466 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1466 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:254112 (248.1 KiB)  TX bytes:254112 (248.1 KiB)

pan0      Link encap:Ethernet  HWaddr 4A:5C:5C:CB:EA:F1
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

[root@localhost ~]#

I also wonder if I should have a ifcfg-eth1 file in 

/etc/sysconfig/network-scripts/

Thank you for helping.  

Regards,

Antonio 


      

-- 
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