wgordy
asked on
DHCP Server Configuration
I want to setup a bridge between 2 nics. eth1 is a static IP for the DSL and eth0 I want to have a dhcp server. I'm having some trouble with configuring a new dhcp server with fedora. I get the error Wrote 0 leases to leases file.
No subnet declaration for eth1 (10.0.0.18).
** Ignoring requests on eth1. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth1 is attached. **
Not configured to listen on any interfaces!
I'm pretty lost so any advice is great!
Thanks
No subnet declaration for eth1 (10.0.0.18).
** Ignoring requests on eth1. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth1 is attached. **
Not configured to listen on any interfaces!
I'm pretty lost so any advice is great!
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
with both of those examples I am still getting the errors
No subnet declaration for eth1 (10.0.0.18).
** Ignoring requests on eth1. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth1 is attached. **
Not configured to listen on any interfaces!
Wat should the submast be? Do I need to setup the nic cards to listen or something?
No subnet declaration for eth1 (10.0.0.18).
** Ignoring requests on eth1. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth1 is attached. **
Not configured to listen on any interfaces!
Wat should the submast be? Do I need to setup the nic cards to listen or something?
no. please show us the result of ifconfig -a
ASKER
here's what I need to use from ifconfig
eth1 Link encap:Ethernet HWaddr 00:09:5B:62:E8:65
inet addr:10.0.0.18 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2052 errors:0 dropped:0 overruns:0 frame:0
TX packets:2270 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1951828 (1.8 Mb) TX bytes:351771 (343.5 Kb)
Interrupt:10 Base address:0xc000
eth2 Link encap:Ethernet HWaddr 00:10:5A:9E:15:EF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:76 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:19314 (18.8 Kb) TX bytes:5310 (5.1 Kb)
Interrupt:5 Base address:0xe800
eth1 Link encap:Ethernet HWaddr 00:09:5B:62:E8:65
inet addr:10.0.0.18 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2052 errors:0 dropped:0 overruns:0 frame:0
TX packets:2270 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1951828 (1.8 Mb) TX bytes:351771 (343.5 Kb)
Interrupt:10 Base address:0xc000
eth2 Link encap:Ethernet HWaddr 00:10:5A:9E:15:EF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:76 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:19314 (18.8 Kb) TX bytes:5310 (5.1 Kb)
Interrupt:5 Base address:0xe800
ok try this script to initialize dhcp you have an error in the script. if you run in console mode work no ??? dhcpd eth1 if working replace your initial scritp for this in /etc/init.d/dhcpd
[root@omega docs]# cat /etc/init.d/dhcpd
#!/bin/sh
#
# dhcpd This shell script takes care of starting and stopping
# dhcpd.
#
# chkconfig: - 65 35
# description: dhcpd provide access to Dynamic Host Control Protocol.
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
. /etc/sysconfig/dhcpd
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
[ -f /usr/sbin/dhcpd ] || exit 0
[ -f /etc/dhcpd.conf ] || exit 0
[ -f /var/lib/dhcp/dhcpd.leases ] || exit 0
RETVAL=0
prog="dhcpd"
start() {
# Start daemons.
echo -n $"Starting $prog: "
# daemon /usr/sbin/dhcpd ${DHCPDARGS}
daemon /usr/sbin/dhcpd eth1
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/dhcpd
return $RETVAL
}
stop() {
# Stop daemons.
echo -n $"Shutting down $prog: "
killproc dhcpd
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dhcpd
return $RETVAL
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
RETVAL=$?
;;
condrestart)
if [ -f /var/lock/subsys/dhcpd ]; then
stop
start
RETVAL=$?
fi
;;
status)
status dhcpd
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|restart|condre start|stat us}"
exit 1
esac
exit $RETVAL
[root@omega docs]# cat /etc/init.d/dhcpd
#!/bin/sh
#
# dhcpd This shell script takes care of starting and stopping
# dhcpd.
#
# chkconfig: - 65 35
# description: dhcpd provide access to Dynamic Host Control Protocol.
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
. /etc/sysconfig/dhcpd
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
[ -f /usr/sbin/dhcpd ] || exit 0
[ -f /etc/dhcpd.conf ] || exit 0
[ -f /var/lib/dhcp/dhcpd.leases
RETVAL=0
prog="dhcpd"
start() {
# Start daemons.
echo -n $"Starting $prog: "
# daemon /usr/sbin/dhcpd ${DHCPDARGS}
daemon /usr/sbin/dhcpd eth1
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/dhcpd
return $RETVAL
}
stop() {
# Stop daemons.
echo -n $"Shutting down $prog: "
killproc dhcpd
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dhcpd
return $RETVAL
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
RETVAL=$?
;;
condrestart)
if [ -f /var/lock/subsys/dhcpd ]; then
stop
start
RETVAL=$?
fi
;;
status)
status dhcpd
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|restart|condre
exit 1
esac
exit $RETVAL
if you change /etc/init.d/dhcpd the line
daemon /usr/sbin/dhcpd eth0
for
daemon /usr/sbin/dhcpd eth1
is working.
daemon /usr/sbin/dhcpd eth0
for
daemon /usr/sbin/dhcpd eth1
is working.
ASKER
ok it says daemon /usr/sbin/dhcpd eth1 now but I still get the same errors.
Should it say eth2 because that is the nic that connects to the switch for the network. eth1 is the nic that connects the dsl modem.
Should it say eth2 because that is the nic that connects to the switch for the network. eth1 is the nic that connects the dsl modem.
OK. this is the problem you need to assign a static ip address to eth2.
ifconfig eth2 10.0.0.19
ifconfig eth2 10.0.0.19
ASKER
ok I've done everything you've mentioned but I still get the same errrors.
No subnet declaration for eth1 (10.0.0.18).
** Ignoring requests on eth1. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth1 is attached. **
Not configured to listen on any interfaces!
I'm pretty lost
No subnet declaration for eth1 (10.0.0.18).
** Ignoring requests on eth1. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth1 is attached. **
Not configured to listen on any interfaces!
I'm pretty lost
ok. first....
the dhcp server is eth2 ok
you put in the main script /etc/init.d/dhcpd eth2
eth1 dont exist for dhcp
change all for eth2
the dhcp server is eth2 ok
you put in the main script /etc/init.d/dhcpd eth2
eth1 dont exist for dhcp
change all for eth2
ASKER
Still the same exact errors
if you put
/usr/sbin/dhcpd eth2 -cf /etc/dhcpd.conf
what is the result?
/usr/sbin/dhcpd eth2 -cf /etc/dhcpd.conf
what is the result?
ASKER
[root@localhost root]# /usr/sbin/dhcpd eth2 -cf /etc/dhcpd.conf
Internet Software Consortium DHCP Server V3.0pl2
Copyright 1995-2003 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Wrote 0 leases to leases file.
No subnet declaration for eth2 (0.0.0.0).
** Ignoring requests on eth2. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth2 is attached. **
Not configured to listen on any interfaces!
If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.
If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.
Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.
exiting.
[root@localhost root]#
Internet Software Consortium DHCP Server V3.0pl2
Copyright 1995-2003 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Wrote 0 leases to leases file.
No subnet declaration for eth2 (0.0.0.0).
** Ignoring requests on eth2. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth2 is attached. **
Not configured to listen on any interfaces!
If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.
If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.
Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.
exiting.
[root@localhost root]#
ok. you dont have ip addres in eth2 check that with ifconfig -a
ASKER
[root@localhost root]# ifconfig -a
eth1 Link encap:Ethernet HWaddr 00:09:5B:62:E8:65
inet addr:10.0.0.18 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5601 errors:0 dropped:0 overruns:0 frame:0
TX packets:5564 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4755874 (4.5 Mb) TX bytes:986236 (963.1 Kb)
Interrupt:10 Base address:0xc000
eth2 Link encap:Ethernet HWaddr 00:10:5A:9E:15:EF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:158 errors:0 dropped:0 overruns:0 frame:0
TX packets:176 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:42837 (41.8 Kb) TX bytes:33039 (32.2 Kb)
Interrupt:5 Base address:0xe800
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:13501 errors:0 dropped:0 overruns:0 frame:0
TX packets:13501 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10095979 (9.6 Mb) TX bytes:10095979 (9.6 Mb)
[root@localhost root]#
eth1 Link encap:Ethernet HWaddr 00:09:5B:62:E8:65
inet addr:10.0.0.18 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5601 errors:0 dropped:0 overruns:0 frame:0
TX packets:5564 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4755874 (4.5 Mb) TX bytes:986236 (963.1 Kb)
Interrupt:10 Base address:0xc000
eth2 Link encap:Ethernet HWaddr 00:10:5A:9E:15:EF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:158 errors:0 dropped:0 overruns:0 frame:0
TX packets:176 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:42837 (41.8 Kb) TX bytes:33039 (32.2 Kb)
Interrupt:5 Base address:0xe800
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:13501 errors:0 dropped:0 overruns:0 frame:0
TX packets:13501 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10095979 (9.6 Mb) TX bytes:10095979 (9.6 Mb)
[root@localhost root]#
ASKER
I've assigned a static IP I thought using netconfig but I guess it didnt take it or something.
ok. try to assign a ip address. with neat netconfig or ifconfig
ifconfig eth2 10.0.0.20 netmask 255.255.255.0
ifconfig eth2 10.0.0.20 netmask 255.255.255.0
ASKER
ok great... it took the ip address... but I still have the same issues. = \
if you try this ??
/usr/sbin/dhcpd eth2 -cf /etc/dhcpd.conf
paste the error
/usr/sbin/dhcpd eth2 -cf /etc/dhcpd.conf
paste the error
ASKER
[root@localhost root]# /usr/sbin/dhcpd eth2 -cf /etc/dhcpd.conf
Internet Software Consortium DHCP Server V3.0pl2
Copyright 1995-2003 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Wrote 0 leases to leases file.
No subnet declaration for eth2 (10.0.0.20).
** Ignoring requests on eth2. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth2 is attached. **
Not configured to listen on any interfaces!
If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.
If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.
Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.
exiting.
[root@localhost root]#
Im also using the dhcp.conf as
cat dhcpd.conf
ddns-update-style ad-hoc;
#ddns-update-style interim;
authoritative;
subnet 10.0.0.0 netmask 255.255.255.0 {
option routers 10.0.0.18;
option subnet-mask 255.255.255.0;
option domain-name "yourserver.net";
option domain-name-servers 10.0.0.18;
option time-offset -03000; # Eastern Standard Time
default-lease-time 600;
max-lease-time 7200;
range 10.0.0.21 10.0.0.250;
}
Internet Software Consortium DHCP Server V3.0pl2
Copyright 1995-2003 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Wrote 0 leases to leases file.
No subnet declaration for eth2 (10.0.0.20).
** Ignoring requests on eth2. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth2 is attached. **
Not configured to listen on any interfaces!
If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.
If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.
Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.
exiting.
[root@localhost root]#
Im also using the dhcp.conf as
cat dhcpd.conf
ddns-update-style ad-hoc;
#ddns-update-style interim;
authoritative;
subnet 10.0.0.0 netmask 255.255.255.0 {
option routers 10.0.0.18;
option subnet-mask 255.255.255.0;
option domain-name "yourserver.net";
option domain-name-servers 10.0.0.18;
option time-offset -03000; # Eastern Standard Time
default-lease-time 600;
max-lease-time 7200;
range 10.0.0.21 10.0.0.250;
}
nop im sorry but all i see ok!
eth2 with ip number
dhcpd.conf correct
dhcpd daemon ok.
last question.. when you run dhcpd in console what say /var/log/messages ????? please paste
eth2 with ip number
dhcpd.conf correct
dhcpd daemon ok.
last question.. when you run dhcpd in console what say /var/log/messages ????? please paste
ASKER
Jun 23 12:53:59 localhost dhcpd: Internet Software Consortium DHCP Server V3.0pl2
Jun 23 12:53:59 localhost dhcpd: Copyright 1995-2003 Internet Software Consortium.
Jun 23 12:53:59 localhost dhcpd: All rights reserved.
Jun 23 12:53:59 localhost dhcpd: For info, please visit http://www.isc.org/products/DHCP
Jun 23 12:53:59 localhost dhcpd: Wrote 0 leases to leases file.
Jun 23 12:53:59 localhost dhcpd:
Jun 23 12:53:59 localhost dhcpd: No subnet declaration for eth2 (10.0.0.20).
Jun 23 12:53:59 localhost dhcpd: ** Ignoring requests on eth2. If this is not what
Jun 23 12:53:59 localhost dhcpd: you want, please write a subnet declaration
Jun 23 12:53:59 localhost dhcpd: in your dhcpd.conf file for the network segment
Jun 23 12:53:59 localhost dhcpd: to which interface eth2 is attached. **
Jun 23 12:53:59 localhost dhcpd:
Jun 23 12:53:59 localhost dhcpd:
Jun 23 12:53:59 localhost dhcpd: Not configured to listen on any interfaces!
Jun 23 12:53:59 localhost dhcpd:
Jun 23 12:53:59 localhost dhcpd: If you did not get this software from ftp.isc.org, please
Jun 23 12:53:59 localhost dhcpd: get the latest from ftp.isc.org and install that before
Jun 23 12:53:59 localhost dhcpd: requesting help.
Jun 23 12:53:59 localhost dhcpd:
Jun 23 12:53:59 localhost dhcpd: If you did get this software from ftp.isc.org and have not
Jun 23 12:53:59 localhost dhcpd: yet read the README, please read it before requesting help.
Jun 23 12:53:59 localhost dhcpd: If you intend to request help from the dhcp-server@isc.org
Jun 23 12:53:59 localhost dhcpd: mailing list, please read the section on the README about
Jun 23 12:54:00 localhost dhcpd: submitting bug reports and requests for help.
Jun 23 12:54:00 localhost dhcpd:
Jun 23 12:54:00 localhost dhcpd: Please do not under any circumstances send requests for
Jun 23 12:54:00 localhost dhcpd: help directly to the authors of this software - please
Jun 23 12:54:00 localhost dhcpd: send them to the appropriate mailing list as described in
Jun 23 12:54:00 localhost dhcpd: the README file.
Jun 23 12:54:00 localhost dhcpd:
Jun 23 12:54:00 localhost dhcpd: exiting.
Jun 23 12:56:20 localhost dhcpd: Internet Software Consortium DHCP Server V3.0pl2
Jun 23 12:56:20 localhost dhcpd: Copyright 1995-2003 Internet Software Consortium.
Jun 23 12:56:20 localhost dhcpd: All rights reserved.
Jun 23 12:56:20 localhost dhcpd: For info, please visit http://www.isc.org/products/DHCP
Jun 23 12:56:20 localhost dhcpd: Wrote 0 leases to leases file.
Jun 23 12:56:20 localhost dhcpd:
Jun 23 12:56:20 localhost dhcpd: No subnet declaration for eth2 (10.0.0.20).
Jun 23 12:56:20 localhost dhcpd: ** Ignoring requests on eth2. If this is not what
Jun 23 12:56:20 localhost dhcpd: you want, please write a subnet declaration
Jun 23 12:56:20 localhost dhcpd: in your dhcpd.conf file for the network segment
Jun 23 12:56:20 localhost dhcpd: to which interface eth2 is attached. **
Jun 23 12:56:20 localhost dhcpd:
Jun 23 12:56:20 localhost dhcpd:
Jun 23 12:56:20 localhost dhcpd: Not configured to listen on any interfaces!
Jun 23 12:56:20 localhost dhcpd:
Jun 23 12:56:20 localhost dhcpd: If you did not get this software from ftp.isc.org, please
Jun 23 12:56:20 localhost dhcpd: get the latest from ftp.isc.org and install that before
Jun 23 12:56:20 localhost dhcpd: requesting help.
Jun 23 12:56:20 localhost dhcpd:
Jun 23 12:56:20 localhost dhcpd: If you did get this software from ftp.isc.org and have not
Jun 23 12:56:20 localhost dhcpd: yet read the README, please read it before requesting help.
Jun 23 12:56:20 localhost dhcpd: If you intend to request help from the dhcp-server@isc.org
Jun 23 12:56:20 localhost dhcpd: mailing list, please read the section on the README about
Jun 23 12:56:20 localhost dhcpd: submitting bug reports and requests for help.
Jun 23 12:56:20 localhost dhcpd:
Jun 23 12:56:20 localhost dhcpd: Please do not under any circumstances send requests for
Jun 23 12:56:20 localhost dhcpd: help directly to the authors of this software - please
Jun 23 12:56:20 localhost dhcpd: send them to the appropriate mailing list as described in
Jun 23 12:56:20 localhost dhcpd: the README file.
Jun 23 12:56:21 localhost dhcpd:
Jun 23 12:56:21 localhost dhcpd: exiting.
Jun 23 12:56:26 localhost nmbd[2094]: [2004/06/23 12:56:26, 0] nmbd/nmbd_become_lmb.c:bec ome_local_ master_sta ge2(396)
Jun 23 12:56:26 localhost nmbd[2094]: *****
Jun 23 12:56:26 localhost nmbd[2094]:
Jun 23 12:56:26 localhost nmbd[2094]: Samba name server ROCKYROAD is now a local master browser for workgroup SERVER on subnet 10.0.0.20
Jun 23 12:56:26 localhost nmbd[2094]:
Jun 23 12:56:26 localhost nmbd[2094]: *****
Jun 23 12:57:02 localhost dhcpd: Internet Software Consortium DHCP Server V3.0pl2
Jun 23 12:57:02 localhost dhcpd: Copyright 1995-2003 Internet Software Consortium.
Jun 23 12:57:02 localhost dhcpd: All rights reserved.
Jun 23 12:57:02 localhost dhcpd: For info, please visit http://www.isc.org/products/DHCP
Jun 23 12:57:02 localhost dhcpd: Wrote 0 leases to leases file.
Jun 23 12:57:02 localhost dhcpd:
Jun 23 12:57:02 localhost dhcpd: No subnet declaration for eth2 (10.0.0.20).
Jun 23 12:57:02 localhost dhcpd: ** Ignoring requests on eth2. If this is not what
Jun 23 12:57:02 localhost dhcpd: you want, please write a subnet declaration
Jun 23 12:57:02 localhost dhcpd: in your dhcpd.conf file for the network segment
Jun 23 12:57:02 localhost dhcpd: to which interface eth2 is attached. **
Jun 23 12:57:02 localhost dhcpd:
Jun 23 12:57:02 localhost dhcpd:
Jun 23 12:57:02 localhost dhcpd: Not configured to listen on any interfaces!
Jun 23 12:57:02 localhost dhcpd:
Jun 23 12:57:02 localhost dhcpd: If you did not get this software from ftp.isc.org, please
Jun 23 12:57:02 localhost dhcpd: get the latest from ftp.isc.org and install that before
Jun 23 12:57:02 localhost dhcpd: requesting help.
Jun 23 12:57:02 localhost dhcpd:
Jun 23 12:57:02 localhost dhcpd: If you did get this software from ftp.isc.org and have not
Jun 23 12:57:02 localhost dhcpd: yet read the README, please read it before requesting help.
Jun 23 12:57:02 localhost dhcpd: If you intend to request help from the dhcp-server@isc.org
Jun 23 12:57:03 localhost dhcpd: mailing list, please read the section on the README about
Jun 23 12:57:03 localhost dhcpd: submitting bug reports and requests for help.
Jun 23 12:57:03 localhost dhcpd:
Jun 23 12:57:03 localhost dhcpd: Please do not under any circumstances send requests for
Jun 23 12:57:03 localhost dhcpd: help directly to the authors of this software - please
Jun 23 12:57:03 localhost dhcpd: send them to the appropriate mailing list as described in
Jun 23 12:57:03 localhost dhcpd: the README file.
Jun 23 12:57:03 localhost dhcpd:
Jun 23 12:57:03 localhost dhcpd: exiting.
Jun 23 12:53:59 localhost dhcpd: Copyright 1995-2003 Internet Software Consortium.
Jun 23 12:53:59 localhost dhcpd: All rights reserved.
Jun 23 12:53:59 localhost dhcpd: For info, please visit http://www.isc.org/products/DHCP
Jun 23 12:53:59 localhost dhcpd: Wrote 0 leases to leases file.
Jun 23 12:53:59 localhost dhcpd:
Jun 23 12:53:59 localhost dhcpd: No subnet declaration for eth2 (10.0.0.20).
Jun 23 12:53:59 localhost dhcpd: ** Ignoring requests on eth2. If this is not what
Jun 23 12:53:59 localhost dhcpd: you want, please write a subnet declaration
Jun 23 12:53:59 localhost dhcpd: in your dhcpd.conf file for the network segment
Jun 23 12:53:59 localhost dhcpd: to which interface eth2 is attached. **
Jun 23 12:53:59 localhost dhcpd:
Jun 23 12:53:59 localhost dhcpd:
Jun 23 12:53:59 localhost dhcpd: Not configured to listen on any interfaces!
Jun 23 12:53:59 localhost dhcpd:
Jun 23 12:53:59 localhost dhcpd: If you did not get this software from ftp.isc.org, please
Jun 23 12:53:59 localhost dhcpd: get the latest from ftp.isc.org and install that before
Jun 23 12:53:59 localhost dhcpd: requesting help.
Jun 23 12:53:59 localhost dhcpd:
Jun 23 12:53:59 localhost dhcpd: If you did get this software from ftp.isc.org and have not
Jun 23 12:53:59 localhost dhcpd: yet read the README, please read it before requesting help.
Jun 23 12:53:59 localhost dhcpd: If you intend to request help from the dhcp-server@isc.org
Jun 23 12:53:59 localhost dhcpd: mailing list, please read the section on the README about
Jun 23 12:54:00 localhost dhcpd: submitting bug reports and requests for help.
Jun 23 12:54:00 localhost dhcpd:
Jun 23 12:54:00 localhost dhcpd: Please do not under any circumstances send requests for
Jun 23 12:54:00 localhost dhcpd: help directly to the authors of this software - please
Jun 23 12:54:00 localhost dhcpd: send them to the appropriate mailing list as described in
Jun 23 12:54:00 localhost dhcpd: the README file.
Jun 23 12:54:00 localhost dhcpd:
Jun 23 12:54:00 localhost dhcpd: exiting.
Jun 23 12:56:20 localhost dhcpd: Internet Software Consortium DHCP Server V3.0pl2
Jun 23 12:56:20 localhost dhcpd: Copyright 1995-2003 Internet Software Consortium.
Jun 23 12:56:20 localhost dhcpd: All rights reserved.
Jun 23 12:56:20 localhost dhcpd: For info, please visit http://www.isc.org/products/DHCP
Jun 23 12:56:20 localhost dhcpd: Wrote 0 leases to leases file.
Jun 23 12:56:20 localhost dhcpd:
Jun 23 12:56:20 localhost dhcpd: No subnet declaration for eth2 (10.0.0.20).
Jun 23 12:56:20 localhost dhcpd: ** Ignoring requests on eth2. If this is not what
Jun 23 12:56:20 localhost dhcpd: you want, please write a subnet declaration
Jun 23 12:56:20 localhost dhcpd: in your dhcpd.conf file for the network segment
Jun 23 12:56:20 localhost dhcpd: to which interface eth2 is attached. **
Jun 23 12:56:20 localhost dhcpd:
Jun 23 12:56:20 localhost dhcpd:
Jun 23 12:56:20 localhost dhcpd: Not configured to listen on any interfaces!
Jun 23 12:56:20 localhost dhcpd:
Jun 23 12:56:20 localhost dhcpd: If you did not get this software from ftp.isc.org, please
Jun 23 12:56:20 localhost dhcpd: get the latest from ftp.isc.org and install that before
Jun 23 12:56:20 localhost dhcpd: requesting help.
Jun 23 12:56:20 localhost dhcpd:
Jun 23 12:56:20 localhost dhcpd: If you did get this software from ftp.isc.org and have not
Jun 23 12:56:20 localhost dhcpd: yet read the README, please read it before requesting help.
Jun 23 12:56:20 localhost dhcpd: If you intend to request help from the dhcp-server@isc.org
Jun 23 12:56:20 localhost dhcpd: mailing list, please read the section on the README about
Jun 23 12:56:20 localhost dhcpd: submitting bug reports and requests for help.
Jun 23 12:56:20 localhost dhcpd:
Jun 23 12:56:20 localhost dhcpd: Please do not under any circumstances send requests for
Jun 23 12:56:20 localhost dhcpd: help directly to the authors of this software - please
Jun 23 12:56:20 localhost dhcpd: send them to the appropriate mailing list as described in
Jun 23 12:56:20 localhost dhcpd: the README file.
Jun 23 12:56:21 localhost dhcpd:
Jun 23 12:56:21 localhost dhcpd: exiting.
Jun 23 12:56:26 localhost nmbd[2094]: [2004/06/23 12:56:26, 0] nmbd/nmbd_become_lmb.c:bec
Jun 23 12:56:26 localhost nmbd[2094]: *****
Jun 23 12:56:26 localhost nmbd[2094]:
Jun 23 12:56:26 localhost nmbd[2094]: Samba name server ROCKYROAD is now a local master browser for workgroup SERVER on subnet 10.0.0.20
Jun 23 12:56:26 localhost nmbd[2094]:
Jun 23 12:56:26 localhost nmbd[2094]: *****
Jun 23 12:57:02 localhost dhcpd: Internet Software Consortium DHCP Server V3.0pl2
Jun 23 12:57:02 localhost dhcpd: Copyright 1995-2003 Internet Software Consortium.
Jun 23 12:57:02 localhost dhcpd: All rights reserved.
Jun 23 12:57:02 localhost dhcpd: For info, please visit http://www.isc.org/products/DHCP
Jun 23 12:57:02 localhost dhcpd: Wrote 0 leases to leases file.
Jun 23 12:57:02 localhost dhcpd:
Jun 23 12:57:02 localhost dhcpd: No subnet declaration for eth2 (10.0.0.20).
Jun 23 12:57:02 localhost dhcpd: ** Ignoring requests on eth2. If this is not what
Jun 23 12:57:02 localhost dhcpd: you want, please write a subnet declaration
Jun 23 12:57:02 localhost dhcpd: in your dhcpd.conf file for the network segment
Jun 23 12:57:02 localhost dhcpd: to which interface eth2 is attached. **
Jun 23 12:57:02 localhost dhcpd:
Jun 23 12:57:02 localhost dhcpd:
Jun 23 12:57:02 localhost dhcpd: Not configured to listen on any interfaces!
Jun 23 12:57:02 localhost dhcpd:
Jun 23 12:57:02 localhost dhcpd: If you did not get this software from ftp.isc.org, please
Jun 23 12:57:02 localhost dhcpd: get the latest from ftp.isc.org and install that before
Jun 23 12:57:02 localhost dhcpd: requesting help.
Jun 23 12:57:02 localhost dhcpd:
Jun 23 12:57:02 localhost dhcpd: If you did get this software from ftp.isc.org and have not
Jun 23 12:57:02 localhost dhcpd: yet read the README, please read it before requesting help.
Jun 23 12:57:02 localhost dhcpd: If you intend to request help from the dhcp-server@isc.org
Jun 23 12:57:03 localhost dhcpd: mailing list, please read the section on the README about
Jun 23 12:57:03 localhost dhcpd: submitting bug reports and requests for help.
Jun 23 12:57:03 localhost dhcpd:
Jun 23 12:57:03 localhost dhcpd: Please do not under any circumstances send requests for
Jun 23 12:57:03 localhost dhcpd: help directly to the authors of this software - please
Jun 23 12:57:03 localhost dhcpd: send them to the appropriate mailing list as described in
Jun 23 12:57:03 localhost dhcpd: the README file.
Jun 23 12:57:03 localhost dhcpd:
Jun 23 12:57:03 localhost dhcpd: exiting.
its all ok. please check again the file /etc/dhcpd.conf is the last options........ delete it and create again. with this. and check if eth2 dont lose de ip
put this in your /etc/dhcpd.conf
ddns-update-style ad-hoc;
ignore client-updates;
authoritative;
subnet 10.0.0.0 netmask 255.255.255.0 {
option routers 10.0.0.18;
option subnet-mask 255.255.255.0;
option domain-name "localhost";
option domain-name-servers 10.0.0.18;
option time-offset -03000; # Eastern Standard Time
default-lease-time 600;
max-lease-time 7200;
}
put this in your /etc/dhcpd.conf
ddns-update-style ad-hoc;
ignore client-updates;
authoritative;
subnet 10.0.0.0 netmask 255.255.255.0 {
option routers 10.0.0.18;
option subnet-mask 255.255.255.0;
option domain-name "localhost";
option domain-name-servers 10.0.0.18;
option time-offset -03000; # Eastern Standard Time
default-lease-time 600;
max-lease-time 7200;
}
Hi wgordy
Normally, routers expect to have different IP subnets at the xDSL side (your eth1) and the DHCP side (your eth2). Perhaps it's possible to do it in the way you want, but it could confuse the whole system to have a part of the subnet 10.0.0.x at each side of your DHCP server.
Try a more classic way:
1. Give 10.0.0.18 as static IP address to eth1 (with ifconfig or redhat-config-network);
2. Give 192.168.1.18 as static IP address to eth2 (idem);
3. Configure dhcp to listen to eth2 and set dhcpd.conf to
########################## ########## ########## ########
ddns-update-style ad-hoc;
#ddns-update-style interim;
authoritative;
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.18;
option subnet-mask 255.255.255.0;
option domain-name "yourserver.net";
option domain-name-servers 192.168.1.18;
option time-offset -03000; # Eastern Standard Time
default-lease-time 600;
max-lease-time 7200;
range 192.168.1.19 192.168.1.254;
}
########################## ########## ########## ########
like pablouruguay said in one of his first comments, but changing every 10.0.0.x by 192.168.1.x
4. Be sure your DHCP server also acts as a name server, otherwise the line "option domain-name-servers 192.168.1.18;" will be useless. Check the gateway of the eth1 side is set to something usefull, like the IP address of the modem (10.0.0.138 v.gr.). No gateway must be set at the eth2 side, but the DHCP server must provide 192.168.1.18 to its clients ("option router" in the dhcpd.conf file)
Good luck.
Normally, routers expect to have different IP subnets at the xDSL side (your eth1) and the DHCP side (your eth2). Perhaps it's possible to do it in the way you want, but it could confuse the whole system to have a part of the subnet 10.0.0.x at each side of your DHCP server.
Try a more classic way:
1. Give 10.0.0.18 as static IP address to eth1 (with ifconfig or redhat-config-network);
2. Give 192.168.1.18 as static IP address to eth2 (idem);
3. Configure dhcp to listen to eth2 and set dhcpd.conf to
##########################
ddns-update-style ad-hoc;
#ddns-update-style interim;
authoritative;
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.18;
option subnet-mask 255.255.255.0;
option domain-name "yourserver.net";
option domain-name-servers 192.168.1.18;
option time-offset -03000; # Eastern Standard Time
default-lease-time 600;
max-lease-time 7200;
range 192.168.1.19 192.168.1.254;
}
##########################
like pablouruguay said in one of his first comments, but changing every 10.0.0.x by 192.168.1.x
4. Be sure your DHCP server also acts as a name server, otherwise the line "option domain-name-servers 192.168.1.18;" will be useless. Check the gateway of the eth1 side is set to something usefull, like the IP address of the modem (10.0.0.138 v.gr.). No gateway must be set at the eth2 side, but the DHCP server must provide 192.168.1.18 to its clients ("option router" in the dhcpd.conf file)
Good luck.
ASKER
OK great... now I everything has an IP address... but on those computers I can't ping anything outside of the local network. What should I change?
ASKER
I'm trying this but I'm not getting anywhere
up route add -net 10.0.0.18 netmask 255.255.255.0 dev eth1
not really sure what to do
up route add -net 10.0.0.18 netmask 255.255.255.0 dev eth1
not really sure what to do
you need to apply iptables for make a NAT outside.... what is the Ips. for eth0 / eth1 / eth2 ??
in here you hace a tutorial for that
http://www.linuxforum.com/linux_tutorials/5/1.php
or
http://www.linuxquestions.org/questions/showthread.php?threadid=192893
or
http://www.linuxquestions.org/questions/history/186000
thats all.
http://www.linuxforum.com/linux_tutorials/5/1.php
or
http://www.linuxquestions.org/questions/showthread.php?threadid=192893
or
http://www.linuxquestions.org/questions/history/186000
thats all.
and any comments ??? you can make dhcp work?
If you can't ping through the dhcp server, it is possible that you don't have IP forwarding enabled. You can do this by setting net.ipv4.ip_forward = 1 (instead of = 0) in your /etc/sysctl.conf file and reboot. You can achieve the same by echoing a "1" to some pseudo-file of the /proc filesystem, but since I don't remenber which one, you faster get results by changing /etc/sysctl.conf and rebooting (argh!).
By the way, when you say "now I everything has an IP address", does it mean your DHCP server successfully gives an IP-address to all the computers of your LAN? It would be great. Tell me please.
By the way, when you say "now I everything has an IP address", does it mean your DHCP server successfully gives an IP-address to all the computers of your LAN? It would be great. Tell me please.
hey wgordi. so ?????
work all ok ?! ?
work all ok ?! ?
can you close this question please?
Hi,
I am having the same problem...but the solution above doesn't seem to work for me. I am running Suse Pro 9.1 with Samba 3.0.2a.
I only have 1 ethernet interface (can't recall if its eth0 or eth1): 192.168.1.1
Sorry, that's about all the info I can give you now, my ddns service provider is down, I can't vnc into my server.
My dhcpd.conf:
#
default-lease-time 600;
max-lease-time 7200;
#
ddns-update-style none;
ddns-updates off;
#
option domain-name "dhcp.suse.local";
option domain-name-servers 213.45.56.1, 213.65.87.11;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
option subnet-mask 255.255.255.0;
#
subnet 192.168.1.0 255.255.255.0
{
range 192.168.1.100 192.168.1.150;
}
#
Error msg:
"Wrote 0 lease to lease file.
No subnet declaration for eth-id-00:20:ed (0.0.0.0)
**Ignoring request on eth-id-00:20:ed. If this is not what you want,
please write a subnet declaration in your dhcpd.conf file for the network
segment to which interface eth-id-00:20:ed is attached. **
Not configured to listen on any interfaces!"
Please advise
I am having the same problem...but the solution above doesn't seem to work for me. I am running Suse Pro 9.1 with Samba 3.0.2a.
I only have 1 ethernet interface (can't recall if its eth0 or eth1): 192.168.1.1
Sorry, that's about all the info I can give you now, my ddns service provider is down, I can't vnc into my server.
My dhcpd.conf:
#
default-lease-time 600;
max-lease-time 7200;
#
ddns-update-style none;
ddns-updates off;
#
option domain-name "dhcp.suse.local";
option domain-name-servers 213.45.56.1, 213.65.87.11;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
option subnet-mask 255.255.255.0;
#
subnet 192.168.1.0 255.255.255.0
{
range 192.168.1.100 192.168.1.150;
}
#
Error msg:
"Wrote 0 lease to lease file.
No subnet declaration for eth-id-00:20:ed (0.0.0.0)
**Ignoring request on eth-id-00:20:ed. If this is not what you want,
please write a subnet declaration in your dhcpd.conf file for the network
segment to which interface eth-id-00:20:ed is attached. **
Not configured to listen on any interfaces!"
Please advise
This problem happened to me and I figured out that my network interface was down!
The ad-hoc mode is absolete, so I don't understand how that solution did it? May be the user has enabled his eth0 mistakenly without noticing.
The ad-hoc mode is absolete, so I don't understand how that solution did it? May be the user has enabled his eth0 mistakenly without noticing.
ddns-update-style interim;
ignore client-updates;
allow booting;
allow bootp;
subnet 172.16.0.0 netmask 255.255.255.0 {
}
subnet 172.32.0.0 netmask 255.255.255.0 {
# --- default gateway
option routers 172.32.0.1;
option subnet-mask 255.255.0.0;
option nis-domain "pxe.net";
option domain-name "pxe.net";
option domain-name-servers 172.16.0.1;
# PXE-specific configuration directives
next-server 172.32.0.1;
filename "pxelinux.0";
option time-offset -21600; # Central Standard Time
option ntp-servers 172.16.0.5;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;
range dynamic-bootp 172.32.0.128 172.32.0.255;
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
host ns {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
}