Guest_imported
New member
- Jan 1, 1970
- 0
I have a Linux Server running RH 7.2 I,m trying to set up a test network for myself to play around with linux. I've installed two NIC's into this machine. Eth0 has an I.P. that is on our company's network and Eth1 has an address that is going to be the private test network. I want this server to do DHCP for my test network.
I've tried to configure everything properly but obviously haven't when I try to start the dhcpd service I get the following error
"Listening on Socket/eth1/192.168.1.0
Sending on Socket/eth1/192.168.1.0
No subnet declaration for eth0 (xxx.xxx.0.45).
Please write a subnet declaration in your dhcpd.conf file for the network segment to which interface eth0 is attached.
exiting."
Any help would be appreciated.
Below I've included the pertinent files.
dhcp.conf:
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.20;
default-lease-time 604800;
max-lease-time 604800;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers xxx.xxx.0.45;
}
###########################################################
My ifconfig looks like this:
eth0 Link encap:Ethernet HWaddr 00:03:6D:14:27:EB
inet addr:xxx.xxx.0.45 Bcast:xxx.xxx.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth1 Link encap:Ethernet HWaddr 00:04:5A:64:31:26
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MTU:1500 Metric:1
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
############################################################
My route table:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
xxx.xxx.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
############################################################
Thanks again.
I've tried to configure everything properly but obviously haven't when I try to start the dhcpd service I get the following error
"Listening on Socket/eth1/192.168.1.0
Sending on Socket/eth1/192.168.1.0
No subnet declaration for eth0 (xxx.xxx.0.45).
Please write a subnet declaration in your dhcpd.conf file for the network segment to which interface eth0 is attached.
exiting."
Any help would be appreciated.
Below I've included the pertinent files.
dhcp.conf:
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.20;
default-lease-time 604800;
max-lease-time 604800;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers xxx.xxx.0.45;
}
###########################################################
My ifconfig looks like this:
eth0 Link encap:Ethernet HWaddr 00:03:6D:14:27:EB
inet addr:xxx.xxx.0.45 Bcast:xxx.xxx.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth1 Link encap:Ethernet HWaddr 00:04:5A:64:31:26
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MTU:1500 Metric:1
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
############################################################
My route table:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
xxx.xxx.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
############################################################
Thanks again.