Mailinglist Archive: opensuse (5130 mails)

< Previous Next >
Re: [SLE] dhcp client .. not setting gateway and dns server
  • From: "Peter Van Lone" <petervl@xxxxxxxxx>
  • Date: Fri, 12 May 2006 11:48:39 -0500
  • Message-id: <68b791330605120948g315aa7a0j9d7a0a58a24b82c2@xxxxxxxxxxxxxx>
On 5/9/06, Darryl Gregorash <raven@xxxxxxxxxxxxx> wrote:

Then set DHCLIENT_DEBUG to "yes", and wait for logging information to
show up in the system log. Dhcpcd uses local0 as its syslog facility,
which by default SuSE logs to /var/log/localmessages along with the
other local* facilities. Supposedly local1 through local7 are used by
some init scripts, but I have never seen it, and no such file exists on
my system; however, if you want a separate file, modify
/etc/syslog-ng/syslog-ng.conf.in and run SuSEconfig (and restart
syslog-ng if SuSEconfig does not).

OK, and update:

I'll post updated/more information below, but first I am not sure
where you mean for me to look. I see in the dhcpcd man file that the
-d option turns on debugging, but I am not sure what command/seq of
commands to use. I am also not sure where to put the "DHCLIENT_DEBUG
to "yes"" parameter.

I issued this command:

p02-dcs13:~ # dhcpcd -n -G 192.168.2.1 eth1

hoping it would renew the lease, and then force the gateway
information, but it did not work. Perhaps the command syntax is just
wrong?

It seems that if I do not get/have an active wireless DHCP lease, that
when I get a lease for the wired interface (eth1) I don't get a
default gateway. With Wireless I do. I also noticed in man file that
by default dhcpcd uses eth0. Well, I don't have an eth0. See ifconfig
and other output below:

p02-dcs13:~ # ifconfig
ath0 Link encap:Ethernet HWaddr 00:40:96:AA:85:43
inet6 addr: fe80::240:96ff:feaa:8543/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:318 dropped:0 overruns:0 frame:318
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:200
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Memory:f9200000-f9210000

eth1 Link encap:Ethernet HWaddr 00:11:2F:AC:EE:AB
inet addr:192.168.2.145 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::211:2fff:feac:eeab/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3227 errors:0 dropped:0 overruns:0 frame:0
TX packets:2685 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:268328 (262.0 Kb) TX bytes:270431 (264.0 Kb)

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:1401 errors:0 dropped:0 overruns:0 frame:0
TX packets:1401 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:51293 (50.0 Kb) TX bytes:51293 (50.0 Kb)



p02-dcs13:~ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
p02-dcs13:~ #

p02-dcs13:~ # cat /etc/resolv.conf
nameserver 192.168.0.7
search site
p02-dcs13:~ #

p02-dcs13:~ # cat /var/lib/dhcpcd/dhcpcd-eth1.info
IPADDR=192.168.2.145
NETMASK=255.255.255.0
NETWORK=192.168.2.0
BROADCAST=192.168.2.255
GATEWAY=192.168.2.1
HOSTNAME='p02-dcs13'
DOMAIN='Aprilaire.com'
DNS=192.168.0.7,192.168.0.4
WINSSERVERS=192.168.0.7
NETBIOSNODETYPE=8
DHCPSID=192.168.0.8
DHCPGIADDR=192.168.2.2
DHCPSIADDR=0.0.0.0
DHCPCHADDR=00:11:2F:AC:EE:AB
DHCPSHADDR=00:07:50:FA:B7:FF
DHCPSNAME=''
LEASETIME=1209600
RENEWALTIME=604800
REBINDTIME=1058400
INTERFACE='eth1'
CLASSID='Linux 2.6.13-15.8-default i686'
CLIENTID=00:11:2F:AC:EE:AB
p02-dcs13:~ #

< Previous Next >
Follow Ups