Results 1 to 2 of 2
I've got two connections:
ifconfig:
eth0 Link encap:Ethernet HWaddr 00:10:4B:B3:4B:CF
inet addr:212.238.xxx.xxx Bcast:212.238.247.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:96682093 errors:283310 dropped:0 overruns:154 frame:566620
TX packets:101275263 errors:0 dropped:0 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-01-2005 #1Linux Newbie
- Join Date
- Dec 2003
- Location
- Netherlands
- Posts
- 193
dhcp3 problems
I've got two connections:
ifconfig:
eth0 Link encap:Ethernet HWaddr 00:10:4B:B3:4B:CF
inet addr:212.238.xxx.xxx Bcast:212.238.247.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:96682093 errors:283310 dropped:0 overruns:154 frame:566620
TX packets:101275263 errors:0 dropped:0 overruns:0 carrier:0
collisions:1593082 txqueuelen:1000
RX bytes:2292767328 (2.1 GiB) TX bytes:2308830422 (2.1 GiB)
Interrupt:5 Base address:0xcc00
eth1 Link encap:Ethernet HWaddr 00:01:02:AC:09:64
inet addr:192.168.0.5 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:120127327 errors:0 dropped:0 overruns:2654 frame:0
TX packets:126554233 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2524390160 (2.3 GiB) TX bytes:3721509804 (3.4 GiB)
Interrupt:11 Base address:0xd000
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:237278 errors:0 dropped:0 overruns:0 frame:0
TX packets:237278 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:23721332 (22.6 MiB) TX bytes:23721332 (22.6 MiB)
/etc/network/interfaces:
# The loopback interface
auto lo
iface lo inet loopback
# The first network card - this entry was created during the Debian installation
auto eth0
iface eth0 inet dhcp
auto eth1
#iface eth1 inet dhcp
iface eth1 inet static
address 192.168.0.5
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
# subnet 192.168.0.0
When i start dhcp3-server i get the following error messages:
/etc/init.d/dhcp start
Starting DHCP server: dhcpd failed to start - check syslog for diagnostics.
cat /var/log/syslog
Jun 2 00:00:59 FIREWALL dhcpd: No subnet declaration for eth1 (192.168.0.5).
Jun 2 00:00:59 FIREWALL dhcpd: Please write a subnet declaration in your dhcpd.conf file for the
Jun 2 00:00:59 FIREWALL dhcpd: network segment to which interface eth1 is attached.
Jun 2 00:00:59 FIREWALL dhcpd: exiting.
So tried to configure my /etc/dhcp3/dhcpd.conf
/etc/dhcp3# more dhcpd.conf
option domain-name "ATHOME";
option domain-name-servers toccata.fugue.com;
option routers 192.168.0.5;
option broadcast-address 192.168.0.255;
option subnet-mask 255.255.255.0;
default-lease-time 1209600; # 2 weeks
max-lease-time 1814400; # 3 weeks
#subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.6 192.168.0.254;
#}
option domain;
option domain-name-servers 194.159.73.135,194.159.73.136;
authoritative;
But i still get error messages on my dhcp server. I tried allready everything. Does somebody know how to fix this, please?Computers Are Like Air Conditioners... They\'re both useless with Windows open!
- 06-07-2005 #2Just Joined!
- Join Date
- Oct 2004
- Posts
- 1
You have to declare your subnet. Change your dhcpd.conf:
default-lease-time 1209600; # 2 weeks
max-lease-time 1814400; # 3 weeks
subnet 192.168.0.0 netmask 255.255.255.0 {
option domain-name "ATHOME";
range 192.168.0.6 192.168.0.254;
option routers 192.168.0.5;
option domain-name-servers 194.159.73.135, 194.159.73.136;
authoritative;
}


Reply With Quote
