LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-22-2009, 05:46 PM   #1
sllinux
Member
 
Registered: Feb 2009
Posts: 31

Rep: Reputation: 15
DHCP problem and eth1 problem


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.
Attached Files
File Type: txt dhcpd.conf.ctesgm07.txt (4.4 KB, 9 views)
File Type: txt dhcpd.conf.test007.txt (2.5 KB, 3 views)
 
Old 10-23-2009, 12:15 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
I am by no means an authority on ethernet or usb, but I'd venture to guess that you need a usb rule to tell the usb system what to do with an ethernet device plugged into a usb port.
 
Old 10-23-2009, 10:33 AM   #3
sllinux
Member
 
Registered: Feb 2009
Posts: 31

Original Poster
Rep: Reputation: 15
I've never heard of a "USB rule" and am not sure how to go about doing that.
 
Old 10-23-2009, 04:15 PM   #4
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by sllinux View Post
I've never heard of a "USB rule" and am not sure how to go about doing that.
You need both a driver and a configuration that allows the USB NIC to be used as intended. I would be more specific, but in order for me to do that, you would have to be more specific. Apart from saying "an ethernet-to-USB adapter", you haven't provided any useful information.
 
Old 10-23-2009, 07:45 PM   #5
piotrekw1
LQ Newbie
 
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0
Question macaddr

I don`t now, where can I edit macaddres in Calculate?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with eth1 raj1986 Linux - Newbie 5 09-27-2009 09:52 AM
eth0, eth1, dhcp, slackware 11 problem q3noob Slackware 5 07-31-2007 10:26 AM
eth1 problem abhishekgedam Linux - Networking 6 11-26-2005 08:38 PM
DHCP and eth1:9 mrsolo Linux - Networking 0 12-26-2003 11:19 AM
eth1 problem elainepearl Linux - Hardware 1 05-27-2003 04:25 AM


All times are GMT -5. The time now is 05:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration