[EMAIL PROTECTED] (Udo Weber) writes:
> Hi,
> I have posted a lot a emails in the past to this list without result
> until now.
> Here is a new attempt. Maybe I have configured something wrong or the
> new dhcp needs some special settings - I don't know.
> With a static IP all works well but I don't have a static IP
> permanently.
>
> Here are some infos about the problem and system-environment.
>
> Sorry for the long attachment but I realy don't know what is wrong here.
>
> [root@mumpel /root]# ifup tr0
> Determining IP information for tr0 via dhclient...Internet Software
> Consortium
> DHCP Client V3.0b2pl9
> Copyright 1995-2000 Internet Software Consortium.
> All rights reserved.
> For info, please visit http://www.isc.org/products/DHCP
>
> tr0: Initial interrupt : 16 Mbps, shared RAM base 000d4000.
> tr0: Opend adapter: Xmit bfrs: 2 X 2048, Rcv bfrs: 16 X 1032
> tr0: Adapter initialized and opened.
> tr0: Setting functional address: 00 00 00 00
> tr0: Setting functional address: 00 04 00 00
> tr0: Setting functional address: 00 04 00 00
> Listening on LPF/tr0/00:20:35:c0:da:1d
> Sending on LPF/tr0/00:20:35:c0:da:1d
> Sending on Socket/fallback
> DHCPREQUEST on tr0 to 255.255.255.255 port 67
> DHCPACK from 9.165.160.2
> tr0: Setting functional address: 00 04 00 00
> tr0: Setting functional address: 00 04 00 00
> bound to 9.165.172.40 -- renewal in 33394 seconds.
> done.
>
> [root@mumpel /root]# ping wst2
> PING wst2 (9.165.160.93): 56 octets data
> ^C
> --- wst2 ping statistics ---
> 6 packets transmitted, 0 packets received, 100% packet loss
Hi there,
I have physically isolated a network here at MandrakeSoft and tried the
latest dhcp-server and dhcp-client on two test machines with the latest
V3.0b2pl9-3mdk packages.
Server side
------------
ifconfig displays
eth0 Link encap:Ethernet HWaddr 00:B0:D0:3B:18:BB
inet addr:192.168.1.64 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:52412 errors:2 dropped:0 overruns:0 frame:4
TX packets:122984 errors:0 dropped:0 overruns:0 carrier:226
collisions:100 txqueuelen:100
Interrupt:5 Base address:0xec80
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:251 errors:0 dropped:0 overruns:0 frame:0
TX packets:251 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
I have something dummy in /etc/dhcpd.conf:
Of course, you might add some more options on this
subnet 192.168.1.0 netmask 255.255.255.0 {
# default gateway
option subnet-mask 255.255.255.0;
option domain-name "mandrakesoft.com";
range dynamic-bootp 192.168.1.128 192.168.1.200;
default-lease-time 21600;
max-lease-time 43200;
}
then I run /etc/init.d/dhcp start
then I install the package dhcp-client on the client side and use draknet
(yes, I know, but I tried to choose a newbie method ;) to configure the network.
/e
the /var/lib/dhcp/dhcpd.leases looks like this
lease 192.168.1.199 {
starts 3 2000/10/18 19:50:56;
ends 4 2000/10/19 01:50:56;
binding state active;
next binding state free;
hardware ethernet 00:01:02:06:bf:9e;
...
Client side
-----------
cat /var/lib/dhcp/dhclient.leases displays
lease {
interface "eth0";
fixed-address 192.168.1.199;
option subnet-mask 255.255.255.0;
option dhcp-lease-time 21600;
option dhcp-message-type 5;
option dhcp-server-identifier 192.168.1.64;
option domain-name "mandrakesoft.com";
renew 3 2000/10/18 23:10:18;
rebind 4 2000/10/19 01:36:16;
expire 4 2000/10/19 02:21:16;
On the client side the ifconfig command displays
eth0 Link encap:Ethernet HWaddr 00:01:02:06:BF:9E
inet addr:192.168.1.199 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:696 errors:0 dropped:0 overruns:0 frame:0
TX packets:405 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:10 Base address:0x1000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:1094 errors:0 dropped:0 overruns:0 frame:0
TX packets:1094 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
Of course, I can ping and do telnet and ssh on both sides:
(here the dhcp client is ssh server)
the netstat -np -A inet command
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
PID/Program name
tcp 0 0 127.0.0.1:80 127.0.0.1:1027 TIME_WAIT -
tcp 0 384 192.168.1.199:22 192.168.1.64:698 ESTABLISHED -
udp 0 0 192.168.1.199:1025 192.168.1.107:514 ESTABLISHED -
then from there run ssh to the dhcp server on wich I get again with tail
-f /var/log/messages
Oct 18 22:27:06 moonlight sshd[5931]: Accepted password for florin from 192.168.1.199
port 716
Oct 18 22:28:21 moonlight sshd[5931]: Could not reverse map address 192.168.1.199.
Oct 18 22:28:21 moonlight PAM_unix[5931]: (system-auth) session opened for user florin
by (uid=0)
and finally (on the server again)
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
PID/Program name
tcp 0 0 192.168.1.64:22 192.168.1.199:716 ESTABLISHED
5931/sshd
tcp 0 0 192.168.1.64:698 192.168.1.199:22 ESTABLISHED
5926/ssh
tcp 0 0 192.168.1.64:1056 192.168.1.14:119 ESTABLISHED
4745/emacs
tcp 0 0 192.168.1.64:765 192.168.1.36:22 ESTABLISHED
5627/ssh
tcp 0 0 192.168.1.64:1052 192.168.1.14:119 ESTABLISHED
4745/emacs
tcp 0 0 192.168.1.64:650 192.168.1.223:22 ESTABLISHED
4957/ssh
cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
IPADDR="192.168.1.107" (my normal fixed IP address for this machine)
BOOTPROTO=dhcp
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
ONBOOT=yes
I even tried with your parameters and I it works too.
what else should I say ?
--
Florin http://www.linux-mandrake.com
> [root@mumpel /root]# netstat -rn
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window irtt
>
> Iface
> 9.165.160.0 0.0.0.0 255.255.240.0 U 0 0 0
>
> tr0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
>
> lo
> 0.0.0.0 9.165.160.1 0.0.0.0 UG 0 0 0
>
> tr0
>
> [root@mumpel /root]# ifconfig
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:3924 Metric:1
> RX packets:242 errors:0 dropped:0 overruns:0 frame:0
> TX packets:242 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
>
> tr0 Link encap:16/4 Mbps Token Ring HWaddr 00:20:35:C0:DA:1D
> inet addr:9.165.172.40 Bcast:9.165.175.255
> Mask:255.255.240.0
> UP BROADCAST RUNNING MULTICAST MTU:2000 Metric:1
> RX packets:20566 errors:0 dropped:0 overruns:0 frame:0
> TX packets:1149 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:100
> Interrupt:9 Base address:0xa20 Memory:d4000-d7fff
>
> [root@mumpel /root]# rpm -qa |grep dhcp
> dhcp-3.0b2pl9-2mdk
> dhcp-client-3.0b2pl9-2mdk
>
> [root@mumpel /root]# more /etc/sysconfig/network-scripts/ifcfg-tr0
> DEVICE="tr0"
> IPADDR=""
> NETMASK="255.255.240.0"
> ONBOOT="no"
> BOOTPROTO="dhcp"
>
> ****************************************************************
> Once again, after I got the IP over DHCP,
> there is no ping or anything else possible anymore.
> All works fine with a static IP !
>
> Do I have to install any other packages ?
> Is the ifcfg-tr0 ok ?
> I hope somebody can help me to figure out where are the problems.
>
> Thanks in advance
> Udo