DHCP server on Linux -> windows 98 client

DHCP server on Linux -> windows 98 client

Post by rv » Sat, 13 Oct 2001 08:32:20



I have a linux box with eth0 having a static IP. I would like to have
another box running win98 that can access the net through the linux box. I
thought of using DHCP.
Hence, the linux box has another eth1 assigned IP: 192.168.1.1
dhcpd server running on the box with eth1
The two machines are connected by a crossed pair cable. Win98 is setup to
receive dynamic IPs, no WINS resolution, no gateway, and DNS disabled).
When I launch Winipcfg, it seems that it receives at it should an IP from
the linux box within the range defined in my dhcpd.conf (actually it's
always 192.168.1.100)
Also, my /var/state/dhcp/dhcpd.leases has the correct info from the win98
box (hardware ethernet):

lease 192.168.1.100 {
  starts 4 2001/10/11 23:22:59;
  ends 4 2001/10/11 23:32:59;
  binding state active;
  next binding state free;
  hardware ethernet 00:10:4b:37:45:5a;
  uid "\001\000\020K7EZ";
  client-hostname "windowsbox";

My dhcpd.conf is:

default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.250;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
option domain-name-servers 192.168.1.1, 192.168.1.2;
option domain-name "mypersodomainname.edu";
# option netbios-name-servers 192.168.1.1;

subnet 192.168.1.0 netmask 255.255.255.0 {
        range 192.168.1.10 192.168.1.100;

Quote:}

ddns-update-style ad-hoc;

However, I can't ping one machine from the other :(
which of course means no internet connection from the win98 box.
Question: Anyone could tell me what I'm missing?
Also, should I use the same host name on my win98 box as my linux box?

PS: I commented  option netbios-name-servers 192.168.1.1; in my dhcpd.conf
file after having disable WINS on the win98 box.

Thank you for any help,
Aloha,
-rv,

 
 
 

DHCP server on Linux -> windows 98 client

Post by Dean Thompso » Sat, 13 Oct 2001 22:43:58


Hi!,

Quote:> I have a linux box with eth0 having a static IP. I would like to have
> another box running win98 that can access the net through the linux box. I
> thought of using DHCP.
> Hence, the linux box has another eth1 assigned IP: 192.168.1.1
> dhcpd server running on the box with eth1
> The two machines are connected by a crossed pair cable. Win98 is setup to
> receive dynamic IPs, no WINS resolution, no gateway, and DNS disabled).
> When I launch Winipcfg, it seems that it receives at it should an IP from
> the linux box within the range defined in my dhcpd.conf (actually it's
> always 192.168.1.100)
> Also, my /var/state/dhcp/dhcpd.leases has the correct info from the win98
> box (hardware ethernet):

> lease 192.168.1.100 {
>   starts 4 2001/10/11 23:22:59;
>   ends 4 2001/10/11 23:32:59;
>   binding state active;
>   next binding state free;
>   hardware ethernet 00:10:4b:37:45:5a;
>   uid "\001\000\020K7EZ";
>   client-hostname "windowsbox";

> My dhcpd.conf is:

> default-lease-time 600;
> max-lease-time 7200;
> option subnet-mask 255.255.255.250;
> option broadcast-address 192.168.1.255;
> option routers 192.168.1.254;
> option domain-name-servers 192.168.1.1, 192.168.1.2;
> option domain-name "mypersodomainname.edu";
> # option netbios-name-servers 192.168.1.1;

> subnet 192.168.1.0 netmask 255.255.255.0 {
>         range 192.168.1.10 192.168.1.100;
> }

Okay, is your option subnet-mask meant to be 255.255.255.250 ?
I would put the directives:
option routers 192.168.1.254; AND
option subnet-mask 255.255.255.0 inside your subnet block at the end as well.

It sometimes helps with the right values being sent to the client.

Once you have done that and restarted the DHCP daemon and got your Windows box
to get a new IP address, see whether the ping will work.

See ya

Dean Thompson

--
+____________________________+____________________________________________+

| Bach. Computing (Hons)     | ICQ     - 45191180                         |
| PhD Student                | Office  - <Off-Campus>                     |
| School Comp.Sci & Soft.Eng | Phone   - +61 3 9903 2787 (Gen. Office)    |
| MONASH (Caulfield Campus)  | Fax     - +61 3 9903 1077                  |
| Melbourne, Australia       |                                            |
+----------------------------+--------------------------------------------+

 
 
 

DHCP server on Linux -> windows 98 client

Post by Dean Thompso » Sun, 14 Oct 2001 12:14:46


Hi!,

Quote:> thanx a lot for the fix. It did it good.
> The two machines can now talk to each other. But the win98 still can't
> access the net. Could you point me in the correct direction to handle this
> problem, and to fix it so that win98 can also access the net passing
> through the linux box?

Good to hear that you managed to get the Win98 and Linux box talking with one
another. The next step is to make sure that you have got IP forwarding enabled
on your system and that you have the appropriate ipchains/iptables command in
place.

You might like to take a look at IPCHAINS-HOWTO which is located at
http://www.linuxdoc.org to see whether or not you have your setup completed
like that.

This gives you instructions on how to setup IP forwarding and get the correct
MASQ line working for your network setup.

See ya

Dean Thompson

--
+____________________________+____________________________________________+

| Bach. Computing (Hons)     | ICQ     - 45191180                         |
| PhD Student                | Office  - <Off-Campus>                     |
| School Comp.Sci & Soft.Eng | Phone   - +61 3 9903 2787 (Gen. Office)    |
| MONASH (Caulfield Campus)  | Fax     - +61 3 9903 1077                  |
| Melbourne, Australia       |                                            |
+----------------------------+--------------------------------------------+

 
 
 

DHCP server on Linux -> windows 98 client

Post by Ben Holnes » Thu, 08 Nov 2001 10:09:14


Quote:> The two machines are connected by a crossed pair cable. Win98 is setup to
> receive dynamic IPs, no WINS resolution, no gateway, and DNS disabled).
[snip]
> However, I can't ping one machine from the other :(
> which of course means no internet connection from the win98 box.

You are certainly going to need to be able to ping, but if you want to be
able to access the internet from the Win98 machine, you will need to put the
linux machine in as a gateway.

[snip]

Quote:> Also, should I use the same host name on my win98 box as my linux box?

Probably not :) Call one machine Linux and the other Win98 :)