DHCP problem and eth1 problem


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers DHCP problem and eth1 problem
# 1  
Old 10-23-2009
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.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

Why eth1 with auto dhcp disturbs pppoe over eth0?

Hi, I use ubuntu 16.04 desktop with ufw (default setup + 22, 80, 443 ports open). I connect directly to ISP using pppoe over eth0. I also have eth1 which when disabled the websites are accessible in browser. When starting eth1 with auto dhcp the websites are no longer accessible in browser (give... (3 Replies)
Discussion started by: adrhc
3 Replies

2. IP Networking

Problem in eth0 and eth1 sharing internet with other computers

hellow everbody. iam using 32 bit centos 6.2 on my desktop and iam new to linux. i have eth0 and eth1 on my desktop. so i have some problems i have menson here: i have edited: etc/sysctl.conf net.ipv4.ip_forward = 1 and i have edited iptables too # iptables -t nat -A... (2 Replies)
Discussion started by: paruhang
2 Replies

3. Red Hat

DHCP lease problem

Hi frnds I am testing DHCP server on vmware.I have two REDHAT 9 vmware machine.DHCP is installed on one machine and second machine is using as a client .I have configured DHCP with Ip Address ,Mask and Gateway.But client machine is not getting ip address.When i type ifconfig command on client it... (6 Replies)
Discussion started by: Vaibhav.T
6 Replies

4. IP Networking

Problem with script execution from a DHCP event

Hi, I'm installing a DHCPD Server with the packages from a distro SLES11 SP1 (dhcp-server-3.1.1-7.12). And a DNS Server with PowerDNS: pdns-recursor-3.3-1 pdns-static-3.0-1 The DHCP update de DNS Server, but PowerDNS is not RFC 2135 compliant, and I have to update the MySQL register... (5 Replies)
Discussion started by: bypper
5 Replies

5. IP Networking

Problem with forwarding emails (SPF problem)

Hi, This is rather a question from a "user" than from a sys admin, but I think this forum is apropriate for the question. I have an adress with automatic email forwarding and for some senders (two hietherto), emails are bouncing. This has really created a lot of problems those two time so I... (0 Replies)
Discussion started by: carwe
0 Replies

6. Red Hat

RHEL5 Kickstart NFS & DHCP Problem

I just finished setting up a Kickstart Server for our RHEL 5 installs. It's configured to use the PXE boot and NFS for the installation. Everything works fine when I just build one machine at a time. The installation works from begining to end. But when I try the install three machines at... (5 Replies)
Discussion started by: apfistler
5 Replies

7. AIX

user login problem & Files listing problem.

1) when user login to the server the session got colosed. How will resolve? 2) While firing the command ls -l we are not able to see the any files in the director. but over all view the file system using the command df -g it is showing 91% used. what will be the problem? Thanks in advance. (1 Reply)
Discussion started by: pernasivam
1 Replies

8. IP Networking

Solaris Virtual Interface Problem in DHCP

Hi all, I am experiencing a problem with dhcp broadcast packages. these broadcast packages are seen on bge1 and bge1:1 interfaces but somehow they are not seen at bge771001 interface which is second virtual interface on the bge1 interface. I have a server on which I configured it as working... (2 Replies)
Discussion started by: ironoxide
2 Replies

9. UNIX for Dummies Questions & Answers

DHCP Problem

OS RHEL 5.1 After edit config file, daemon dhcpd does not run (( /etc/dhcpd.conf: ddns-update-style none; option domain-name "whitehouse.gov"; option domain-name-servers 10.0.0.1; option ntp-servers 10.0.0.2; default-lease-time 21600; max-lease-time 43200; subnet 10.0.0.0 netmask... (1 Reply)
Discussion started by: jess_t03
1 Replies

10. UNIX for Dummies Questions & Answers

DHCP Problem

I just installed Mandrake (Caldera) Verion 7.0 on my PC. The problem is I can not grab the and IP from my Router (running DHCP Server). I went to the root# and type linuxconf and it pops up for me the GUI, I have select "Enable" and "DHCP" but when I in Root#, type "ifconfig" it shows me the IP... (5 Replies)
Discussion started by: tony3101
5 Replies
Login or Register to Ask a Question