LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   openSUSE based (DHCPD/DNS) Router Not functioning with eth0 (https://www.linuxquestions.org/questions/linux-networking-3/opensuse-based-dhcpd-dns-router-not-functioning-with-eth0-683957/)

njdube 11-17-2008 01:51 AM

openSUSE based (DHCPD/DNS) Router Not functioning with eth0
 
I'm having trouble setting up my openSUSE 11.0 system as a internet router. I've set up DHCP/DNS server up in SUSE 9x and 10x before. So I know how to do it. I didn't start having problems until openSUSE 11.0. Before I would setup my system to route internet traffic from my wifi(ath0) to any device that can plug into my LAN(eth0) using DHCP/DNS daemons and setting up eth0 with a manual IP address (192.168.100.1). Things seemed to have changed in openSUSE 11.0 from older releases that now the same setup wont work. When I run ifconfig it doesn't show etho, just ath0, lo, pan0 and wifi0. I'm no expert but it seems as though eth0 isn't funcioning properly which is what is causing the conflict with DHCPD. Here's the stuff I get in shell.

#################################################
defiant:/home/njdube # rcdhcpd start
Starting DHCP server Internet Systems Consortium DHCP Server V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Wrote 0 leases to leases file.

No subnet declaration for eth0 (0.0.0.0).
** Ignoring requests on eth0. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth0 is attached. **


Not configured to listen on any interfaces!

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.
failed
defiant:/home/njdube # ifconfig
ath0 Link encap:Ethernet HWaddr 00:11:95:C3:2E:D0
inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::211:95ff:fec3:2ed0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:26188221 errors:0 dropped:0 overruns:0 frame:0
TX packets:24628011 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:15837539672 (15103.8 Mb) TX bytes:5879161288 (5606.8 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:1961 errors:0 dropped:0 overruns:0 frame:0
TX packets:1961 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:219933 (214.7 Kb) TX bytes:219933 (214.7 Kb)

pan0 Link encap:Ethernet HWaddr 9A:56:30:3E:95:9A
inet6 addr: fe80::9856:30ff:fe3e:959a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:468 (468.0 b)

wifi0 Link encap:UNSPEC HWaddr 00-11-95-C3-2E-D0-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:32046151 errors:0 dropped:0 overruns:0 frame:4678415
TX packets:24632176 errors:12672 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:199
RX bytes:17799153197 (16974.5 Mb) TX bytes:6618209786 (6311.6 Mb)
Interrupt:18
#################################################

Here's my dhcpd.conf file.

#################################################
option domain-name "lcars.ufp";
option domain-name-servers 192.168.100.1, 192.168.100.1;
option routers 192.168.100.1;
ddns-update-style none;
default-lease-time 14400;
subnet 192.168.100.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.100.1 192.168.100.2;
default-lease-time 14400;
max-lease-time 172800;
}
#################################################

Here is an error message I get when I close the DHCPD yast module.

#################################################
Name "main::parSed_file" used only once: possible typo at
/usr/lib/YaST2/servers_non_y2/ag_dhcpd_conf line 12 (#1)
(W once) Typographical errors often show up as unique variable names.
If you had a good reason for having a unique name, then just mention it
again somehow to suppress the message. The our declaration is
provided for this purpose.

NOTE: This warning detects symbols that have been used only once so $c, @c,
%c, *c, &c, sub c{}, c(), and c (the filehandle or format) are considered
the same; if a program uses $c only once but also uses any of the others it
will not trigger this warning.

Use of uninitialized value $open_firewall in numeric ne (!=) at
/usr/share/YaST2/modules/DhcpServer.pm line 1307 (#1)
(W uninitialized) An undefined value was used as if it were already
defined. It was interpreted as a "" or a 0, but maybe it was a mistake.
To suppress this warning assign a defined value to your variables.

To help you figure out what was undefined, perl will try to tell you the
name of the variable (if any) that was undefined. In some cases it cannot
do this, so it also tells you what operation you used the undefined value
in. Note, however, that perl optimizes your program and the operation
displayed in the warning may not necessarily appear literally in your
program. For example, "that $foo" is usually optimized into "that "
. $foo, and the warning will refer to the concatenation (.) operator,
even though there is no . in your program.
#################################################

njdube 11-17-2008 02:02 AM

Here is a solution I found to the problem. I hope this helps someone. Now can someone show me how to make this fix automatic so I don't have to keep typing it in when I reboot?

defiant:/home/njdube # ifconfig -a eth0
eth0 Link encap:Ethernet HWaddr 00:16:EC:24:46:A2
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:516 errors:0 dropped:0 overruns:0 frame:0
TX packets:45 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:45060 (44.0 Kb) TX bytes:3582 (3.4 Kb)
Interrupt:19 Base address:0xd000

defiant:/home/njdube # ifconfig eth0 192.168.100.1 netmask 255.255.255.0
defiant:/home/njdube # ifconfig -a eth0
eth0 Link encap:Ethernet HWaddr 00:16:EC:24:46:A2
inet addr:192.168.100.1 Bcast:192.168.100.255 Mask:255.255.255.0
inet6 addr: fe80::216:ecff:fe24:46a2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:517 errors:0 dropped:0 overruns:0 frame:0
TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:45120 (44.0 Kb) TX bytes:6721 (6.5 Kb)
Interrupt:19 Base address:0xd000

defiant:/home/njdube # rcdhcpd restart
Shutting down DHCP server done
Starting DHCP server [chroot] done
defiant:/home/njdube #


All times are GMT -5. The time now is 01:19 PM.