At work I am trying to get this one Linux machine (let's call it ctesgm07) to behave like another Linux machine that we have (let's call it test007).
test007 returns the following version info:
cat /etc/debian_version: lenny/sid
uname -a: Linux test007 2.6.27-7-generic #1 SMP Tue Nov 4 19:33:20 UTC 2008 i686 GNU/Linux
ctesgm07 returns the following version info:
cat /etc/debian_version: 4.0
uname -a: Linux ctesgm07 2.6.21-1-686 #1 SMP Sat May 19 01:13:28 UTC 2007 i686 GNU/Linux
The test007 machine currently acts as a server for a device that has an ethernet cable attached to it, and that ethernet cable goes into an ethernet-to-USB adapter, which is plugged into one of the USB ports of test007. The device has successfully requested an IP address (192.168.1.100) from test007.
Now I want to set up the ctesgm07 machine to act as a server for the same type of device. But the DHCP server on ctesgm07 is failing to start:
Code:
ctesgm07:/etc/dhcp3# /etc/init.d/dhcp3-server start
Starting DHCP server: dhcpd3 failed to start - check syslog for diagnostics.
Here is what got written to /var/log/syslog:
Code:
Oct 22 21:06:12 ctesgm07 dhcpd: Wrote 0 leases to leases file.
Oct 22 21:06:12 ctesgm07 dhcpd:
Oct 22 21:06:12 ctesgm07 dhcpd: No subnet declaration for eth0 (10.0.0.242).
Oct 22 21:06:12 ctesgm07 dhcpd: ** Ignoring requests on eth0. If this is not what
Oct 22 21:06:12 ctesgm07 dhcpd: you want, please write a subnet declaration
Oct 22 21:06:12 ctesgm07 dhcpd: in your dhcpd.conf file for the network segment
Oct 22 21:06:12 ctesgm07 dhcpd: to which interface eth0 is attached. **
Oct 22 21:06:12 ctesgm07 dhcpd:
Oct 22 21:06:12 ctesgm07 dhcpd:
Oct 22 21:06:12 ctesgm07 dhcpd: Not configured to listen on any interfaces!
I have attached the /etc/dhcp3/dhcpd.conf from ctesgm07. I could have sworn the DHCP server was working when we used this machine several months ago for something else, but I could be mistaken. I also tried the dhcpd.conf from the test007 machine, but then it failed on ctesgm07 and output the same error to /var/log/syslog. That one is attached too.
Another thing I am wondering about is that the test007 machine shows the following when I run ifconfig:
Code:
eth0 Link encap:Ethernet HWaddr 00:15:c5:19:2c:96
inet addr:10.0.1.237 Bcast:10.0.3.255 Mask:255.255.252.0
inet6 addr: fe80::215:c5ff:fe19:2c96/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3208831 errors:0 dropped:0 overruns:0 frame:0
TX packets:681147 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1995844304 (1.9 GB) TX bytes:53881998 (53.8 MB)
Interrupt:17
eth1 Link encap:Ethernet HWaddr 00:14:d1:35:12:6b
inet addr:192.168.1.254 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::214:d1ff:fe35:126b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:42780 errors:7 dropped:0 overruns:0 frame:10
TX packets:46036 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3307859 (3.3 MB) TX bytes:22040538 (22.0 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1168 errors:0 dropped:0 overruns:0 frame:0
TX packets:1168 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:95578 (95.5 KB) TX bytes:95578 (95.5 KB)
eth0 would be for its connection to the corporate network, and eth1 would be its USB-to-ethernet connection to the child device attached to it. But when I run ifconfig on ctesgm07, I get:
Code:
eth0 Link encap:Ethernet HWaddr 00:15:C5:D0:B4:EF
inet addr:10.0.0.242 Bcast:10.0.3.255 Mask:255.255.252.0
inet6 addr: fe80::215:c5ff:fed0:b4ef/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:45666973 errors:0 dropped:0 overruns:0 frame:0
TX packets:776225 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2086821173 (1.9 GiB) TX bytes:61245694 (58.4 MiB)
Interrupt:22
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1010 errors:0 dropped:0 overruns:0 frame:0
TX packets:1010 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:104124 (101.6 KiB) TX bytes:104124 (101.6 KiB)
It has eth0, but there is no eth1, even though I do have a child device attached to it via an ethernet-to-USB adapter. How do I get eth1 to show up?
Thanks for any help you can provide me.