This is a long explanation, but I figured I should give as many details as possible.
I installed Debian 4.0 on an old Celeron 700 MHz system with 2 PCI NICs. I installed dchp3-server and configured the /etc/dhcp3/dhcpd.conf file as follows..
Quote:
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
subnet 192.168.37.0 netmask 255.255.255.0 {
range 192.168.37.20 192.168.37.254;
option domain-name "intra-landings.pbr-net.com";
option broadcast-address 192.168.37.255;
option routers 192.168.37.1;
option domain-name-servers 192.168.37.1;
}
|
I then configured /etc/default/dhcp3-server as follows...
/etc/network/interfaces reads as follows...
Quote:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 192.168.37.1
netmask 255.255.255.0
|
My purpose is to build a router. Eth0 is supposed to get an address via DHCP from my 192.168.0.0 subnet, and eth1 is supposed to hand out IP addresses to computers on the 192.168.37.0 subnet.
Eth0 works just fine. It receives an address just fine and I can ping outside addresses. However, even though the output of "ifconfig eth1" is;
Quote:
eth1 Link encap:Ethernet HWaddr 00:A0:CC:33:79:62
inet addr:192.168.37.1 Bcast:192.168.37.255 Mask:255.255.255.0
inet6 addr: fe80::2a0:ccff:fe33:7962/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:6 dropped:0 overruns:0 carrier:12
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:10 Base address:0xe800
|
...it does not seem to receive any connections from the computers I hook up to it. None of the lights come on, on that NIC, when I plug a computer into it. The DHCP server gives no errors after running "/etc/init.d/dhcp3-server start" yet no computers can receive an address from it. When I run "tcpdump -vvv -n -s 2000 -i eth1" I get no output whatsoever. Also, if I change the /etc/network/interfaces file to the following;
Quote:
auto lo
iface lo inet loopback
auto eth0
iface eth1 inet static
address 192.168.37.1
netmask 255.255.255.0
auto eth1
iface eth0 inet dhcp
|
...and then bind dchpd to eth0 instead of eth1, the problem reverses. Then I get no lights on eth0 but eth1 works just fine.
So I know the hardware of both NICs is working. The dhcp server will not function on either one though. And whichever one I set to a static IP does not seem to receive any packets.
Perhaps someone can see where I've gone wrong in my setup. Any help is greatly appreciated.