Kaazool
04-04-2002, 12:58 PM
I've been trying like all hell to get my linux box up and running as a dhcp server. I'm cooking with Progeny Debian Newton 1.0.
uname -a
Linux korrosion 2.2.18 #1 Tue Feb 27 10:33:03 EST 2001 i686 unknown
I've got two nics: eth0 is my outbound 3com running dhc-client (and is working pretty well). Now my eth1 is a Linksys card and is the one I want handing out ips to my WinXP boxes.
As you can see below lsmod shows both modules being used. ifconfig brings up both successfully (although I had to scratch in the eth1 stuff into interfaces). My route tables and interfaces all seem to come up as they say they should in the mini-HOW-TO. I checked my resolv.conf and used the ATTBI name servers in my dhcp.conf (although that is a little cart before the horse. I just wanna get my boxes to see each other).
But then I run /usr/sbin/dhcpd -d -f eth1&
... and nothing happens! My boxes are on. I have some new Cat-5 between them. Hell, the lights aren't even on on the nics (before you say that the nic is dead, I connected eth1 to my cable modem and it light up).
I was wondering if it was a PCI Master Bus issue. Maybe I can't serve from eth1. Of course then that would suck as then I would have to switch all the settings for eth0 and eth1.
Sigh. I've been pounding away at this problem for the last 12 hours. If anyone can help me I will build several monuments in their honor.
-K
/etc/network/interfaces
### etherconf DEBCONF AREA. DO NOT EDIT THIS AREA OR INSERT TEXT BEFORE IT.
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
auto lo eth0
# The loopback interface
iface lo inet loopback
# The ethernet interface, configured by etherconf
iface eth0 inet dhcp
### END OF DEBCONF AREA. PLACE YOUR EDITS BELOW; THEY WILL BE PRESERVED.
# The second ethernet interface
auto eth1
iface eth1 inet static
address 192.168.1.1
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:60:08:07:ED:43
inet addr:12.245.169.32 Bcast:255.255.255.255 Mask:255.255.254.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7422 errors:0 dropped:0 overruns:0 frame:0
TX packets:4479 errors:0 dropped:0 overruns:0 carrier:11
collisions:100 txqueuelen:100
Interrupt:5 Base address:0x300
eth1 Link encap:Ethernet HWaddr 00:4C:69:6E:75:79
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:9 Base address:0x1000
lo ...
lsmod
Module Size Used by
parport_probe 3632 0 (autoclean)
parport_pc 7536 1 (autoclean)
lp 6192 0 (autoclean) (unused)
parport 7968 1 (autoclean) [parport_probe parport_pc lp]
tulip 30384 1 (autoclean)
mousedev 3776 0 (unused)
es1371 26112 0
soundcore 3056 4 [es1371]
ide-scsi 7728 0
3c509 6816 1
# /etc/dhcpd.conf
# DHCPD Configuration
default-lease-time 86400;
max-lease-time 86400;
option domain-name-servers 63.240.76.4,204.127.198.4;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.2 192.168.1.250;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
#option routers 192.168.1.0;
}
route -e
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
all-ones * 255.255.255.255 UH 0 0 0 eth1
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
12.245.168.0 * 255.255.254.0 U 0 0 0 eth0
default 12-245-168-1.cl 0.0.0.0 UG 0 0 0 eth0
netstat -i
Kernel Interface table
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0 1500 0 7504 0 0 0 4489 0 0 0 BRU
eth1 1500 0 7 0 0 0 0 0 0 0 BRU
lo 3924 0 286 0 0 0 286 0 0 0 LRUnull
uname -a
Linux korrosion 2.2.18 #1 Tue Feb 27 10:33:03 EST 2001 i686 unknown
I've got two nics: eth0 is my outbound 3com running dhc-client (and is working pretty well). Now my eth1 is a Linksys card and is the one I want handing out ips to my WinXP boxes.
As you can see below lsmod shows both modules being used. ifconfig brings up both successfully (although I had to scratch in the eth1 stuff into interfaces). My route tables and interfaces all seem to come up as they say they should in the mini-HOW-TO. I checked my resolv.conf and used the ATTBI name servers in my dhcp.conf (although that is a little cart before the horse. I just wanna get my boxes to see each other).
But then I run /usr/sbin/dhcpd -d -f eth1&
... and nothing happens! My boxes are on. I have some new Cat-5 between them. Hell, the lights aren't even on on the nics (before you say that the nic is dead, I connected eth1 to my cable modem and it light up).
I was wondering if it was a PCI Master Bus issue. Maybe I can't serve from eth1. Of course then that would suck as then I would have to switch all the settings for eth0 and eth1.
Sigh. I've been pounding away at this problem for the last 12 hours. If anyone can help me I will build several monuments in their honor.
-K
/etc/network/interfaces
### etherconf DEBCONF AREA. DO NOT EDIT THIS AREA OR INSERT TEXT BEFORE IT.
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
auto lo eth0
# The loopback interface
iface lo inet loopback
# The ethernet interface, configured by etherconf
iface eth0 inet dhcp
### END OF DEBCONF AREA. PLACE YOUR EDITS BELOW; THEY WILL BE PRESERVED.
# The second ethernet interface
auto eth1
iface eth1 inet static
address 192.168.1.1
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:60:08:07:ED:43
inet addr:12.245.169.32 Bcast:255.255.255.255 Mask:255.255.254.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7422 errors:0 dropped:0 overruns:0 frame:0
TX packets:4479 errors:0 dropped:0 overruns:0 carrier:11
collisions:100 txqueuelen:100
Interrupt:5 Base address:0x300
eth1 Link encap:Ethernet HWaddr 00:4C:69:6E:75:79
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:9 Base address:0x1000
lo ...
lsmod
Module Size Used by
parport_probe 3632 0 (autoclean)
parport_pc 7536 1 (autoclean)
lp 6192 0 (autoclean) (unused)
parport 7968 1 (autoclean) [parport_probe parport_pc lp]
tulip 30384 1 (autoclean)
mousedev 3776 0 (unused)
es1371 26112 0
soundcore 3056 4 [es1371]
ide-scsi 7728 0
3c509 6816 1
# /etc/dhcpd.conf
# DHCPD Configuration
default-lease-time 86400;
max-lease-time 86400;
option domain-name-servers 63.240.76.4,204.127.198.4;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.2 192.168.1.250;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
#option routers 192.168.1.0;
}
route -e
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
all-ones * 255.255.255.255 UH 0 0 0 eth1
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
12.245.168.0 * 255.255.254.0 U 0 0 0 eth0
default 12-245-168-1.cl 0.0.0.0 UG 0 0 0 eth0
netstat -i
Kernel Interface table
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0 1500 0 7504 0 0 0 4489 0 0 0 BRU
eth1 1500 0 7 0 0 0 0 0 0 0 BRU
lo 3924 0 286 0 0 0 286 0 0 0 LRUnull