dhcp question

dhcp question

Post by Paul Nixo » Sun, 03 Mar 2002 08:04:11



I've just started converting my static ip internal networks over to dhcp and
I've run into some trouble. Basically I have a server connected to the
internet via cable modem. I use dhcpcd to get an ip address, gateway info,
and DNS info. Originally I had all my other machines on two networks (wired
and wireless) point to the Linux Mandrake 7.2 server as the gateway, and
each system had the DNS info included as part of their network setup
(Windows) or /etc/resolv.conf (Linux).

Now I am working with dhcpd and a single Windows system to try to get a
handle on things. Basically I've been able to get the Windows machine to
request an IP from the Mandrake server and it works fine. I included a DNS
entry in the dhcpd.conf file and that gets passed to the Windows machine no
problem. Where I have the trouble is when I attempt to telnet from the
Windows machine to the server. Because the ip is no longer static, the
hostname no longer resolves to what is in the /etc/hosts file and so the
session takes a long time before I can log in. Once logged in there is no
problem. I would like to fix the time delay in the log in if possible.

I read somewhere that the problem is caused by the server attempting to do a
reverse lookup.

Is there an easy way to fix this problem?

Thanks in advance,
Paul Nixon

 
 
 

dhcp question

Post by Wild Wizar » Sun, 03 Mar 2002 11:20:02


Paul Nixon wrote:
> I've just started converting my static ip internal networks over to dhcp
> and I've run into some trouble. Basically I have a server connected to the
> internet via cable modem. I use dhcpcd to get an ip address, gateway info,
> and DNS info. Originally I had all my other machines on two networks
> (wired and wireless) point to the Linux Mandrake 7.2 server as the
> gateway, and each system had the DNS info included as part of their
> network setup (Windows) or /etc/resolv.conf (Linux).

> Now I am working with dhcpd and a single Windows system to try to get a
> handle on things. Basically I've been able to get the Windows machine to
> request an IP from the Mandrake server and it works fine. I included a DNS
> entry in the dhcpd.conf file and that gets passed to the Windows machine
> no problem. Where I have the trouble is when I attempt to telnet from the
> Windows machine to the server. Because the ip is no longer static, the
> hostname no longer resolves to what is in the /etc/hosts file and so the
> session takes a long time before I can log in. Once logged in there is no
> problem. I would like to fix the time delay in the log in if possible.

> I read somewhere that the problem is caused by the server attempting to do
> a reverse lookup.

> Is there an easy way to fix this problem?

> Thanks in advance,
> Paul Nixon

you should really have a dns server given you have a resonable number
of machines on your network

do you have any experince with dns servers?

firstly dhcpd can give a specfic ip to a machine based on that machines
ethernet mac address

this is a part of my dhcpd.conf which shows how i give a "static" ip
via dhcp
---
subnet 192.168.0.0 netmask 255.255.255.0 {
        range 192.168.0.20 192.168.0.254;

        use-host-decl-names on;

        host office {
                hardware ethernet 00:90:27:17:10:ac;
                fixed-address 192.168.0.10;
                }

        host indigo {
                hardware ethernet 00:d0:b7:b5:f3:c9;
                fixed-address 192.168.0.11;
                }

        host wildfire {
                hardware ethernet 00:01:02:fc:23:0c;
                fixed-address 192.168.0.12;
                }

}

---

next we want to enable a dns server to do reverse lookups for this network
you will need to look at the mandrake docs to find out how to start the dns
server (you might even need to install it)

if you need help makeing the zone files just edit the obvius part of my
email address and send me your hosts files and tell me how you want to configure
dhcp on your network (i can also give you a dhcpd.conf file as well)
hopefully you can figure out enough from my samples.

this is how you define the reverse lookup zone for the 192.168.0.0 network
change the file names for your own setup and replace the techdrive.foo for your
own domain

named.conf
---
zone "0.168.192.in-addr.arpa" in {
        type master;
        file "arpa/in-addr/192/168/000";

};

---

arpa/in-addr/192/168/000
---
$TTL 86400      ; 1 day
@                       IN SOA  ns1.techdrive.foo. root.ns1.techdrive.foo. (
                                2002       ; serial
                                10800      ; refresh (3 hours)
                                3600       ; retry (1 hour)
                                3600000    ; expire (5 weeks 6 days 16 hours)
                                86400      ; minimum (1 day)
                                )
                        NS      ns1.techdrive.foo.
                        NS      ns2.techdrive.foo.

1                       PTR     router.techdrive.foo.
2                       PTR     server.techdrive.foo.
3                       PTR     server-3.techdrive.foo.
4                       PTR     server-4.techdrive.foo.
5                       PTR     server-5.techdrive.foo.
6                       PTR     server-6.techdrive.foo.
7                       PTR     server-7.techdrive.foo.
8                       PTR     server-8.techdrive.foo.
9                       PTR     server-9.techdrive.foo.
10                      PTR     office.techdrive.foo.
11                      PTR     indigo.techdrive.foo.
12                      PTR     wildfire.techdrive.foo.
13                      PTR     accounts.techdrive.foo.
14                      PTR     hawke.techdrive.foo.
15                      PTR     node-15.techdrive.foo.
16                      PTR     node-16.techdrive.foo.
17                      PTR     node-17.techdrive.foo.
18                      PTR     node-18.techdrive.foo.
19                      PTR     node-19.techdrive.foo.

; this is specfic to bind 9 it wont work on anythig else
; Automatically generate dhcp-20 to dhcp-254
$GENERATE 20-254 $ PTR dhcp-$.techdrive.foo.
---

too do the forward lookups (name to ip)

named.conf
---
zone "techdrive.foo" {
        type master;
        file "foo/techdrive/hosts";

};

---

foo/techdrive/hosts
---
; File: techdrive.foo
$TTL            86400
techdrive.foo.          IN      SOA     ns1.techdrive.foo.      root.ns1.techdrive.foo. (
                                2002    ; Serial
                                3H      ; Refresh
                                15M     ; Retry
                                1W      ; Expiry
                                1D )    ; Minimum
                        NS              ns1.techdrive.foo.
                        NS              ns2.techdrive.foo.
                        MX      1       server.techdrive.foo.

router          IN      A               192.168.0.1
server-1        IN      A               192.168.0.1

server          IN      A               192.168.0.2
ns1             IN      A               192.168.0.2
---

--
You are only young once, but you can stay immature indefinitely.

 
 
 

1. DHCP questions...need your help !

Here is the problem :
Solaris 8 and Sunray 1.3 server

Since i change the ip address of my server the ip address still the old one
in the dhcpmgr util box....or the /var/dhcp/SUNWfiles1_192_168_128_0 file :

# SUNWfiles1_192_168_128_0
#
# Do NOT edit this file by hand -- use pntadm(1M) or dhcpmgr(1M) instead
#
192.168.128.19|00|00|132.203.35.84|0|16420968666322960385|SunRay-hme1|
192.168.128.66|0100065B363F25|00|132.203.35.84|1008446779|171437964065159249
94|SunRay-hme1|
192.168.128.162|0100065B233B83|00|132.203.35.84|1017408544|14849775346324078
724|SunRay-hme1|
.
.
.
132.203.35.84 is the old server box address....

Is it possible to fix the ip address of my old server box ? If yes, how ???

And i have some problem like the in.dhcp process after something like 10
days start to bust with a 40 % cpu (with top) all sunray on the subnet lost
the connections...like this in /var/adm/messages :

in.dhcpd[1255]: [ID 990463 daemon.error] Client: 01080020B63CE7 is trying to
renew 192.168.128.50, an IP address it has not leased.

If i need to lease a address for a client what will be the command ?

And the last one...is there a way to increase the lease time for unlimitted
time or something like that...if yes where and how i can do that ??

is it in /var/dhcp/SUNWfiles1_dhcptab file ??

# SUNWfiles1_dhcptab
#
# Do NOT edit this file by hand -- use dhtadm(1M) or dhcpmgr(1M) instead
#
SunRay|m|1585548543811125249|:LeaseTim=86400:LeaseNeg:
AuthSrvr|s|6188227362983772161|Vendor=SUNW.NewT.SUNW,21,IP,1,1
AltAuth|s|4937071091504906241|Vendor=SUNW.NewT.SUNW,35,IP,1,0
AuthPort|s|15690541101758808065|Vendor=SUNW.NewT.SUNW,22,NUMBER,2,1
NewTVer|s|10668183092310573057|Vendor=SUNW.NewT.SUNW,23,ASCII,1,0
NewTBW|s|16868513879292903425|Vendor=SUNW.NewT.SUNW,30,NUMBER,4,1
LogHost|s|8648318659434905601|Vendor=SUNW.NewT.SUNW,24,IP,1,1
LogKern|s|11268569217634402305|Vendor=SUNW.NewT.SUNW,25,NUMBER,1,1
LogNet|s|17263704746594664449|Vendor=SUNW.NewT.SUNW,26,NUMBER,1,1
LogUSB|s|2474727995240087553|Vendor=SUNW.NewT.SUNW,27,NUMBER,1,1
LogVid|s|16512448033753923585|Vendor=SUNW.NewT.SUNW,28,NUMBER,1,1
LogAppl|s|13850257704024539137|Vendor=SUNW.NewT.SUNW,29,NUMBER,1,1
FWSrvr|s|5829346767677685761|Vendor=SUNW.NewT.SUNW,31,IP,1,1
Intf|s|18274199912985919489|Vendor=SUNW.NewT.SUNW,33,ASCII,1,0
192.168.128.0|m|17869157421499285506|:Broadcst=192.168.128.255:Subnet=255.25
5.255.0:MTU=1500:Router=192.168.128.1:FWSrvr=192.168.128
.1:Intf="hme1":NewTVer="1.3_12.c,REV=2001.07.16.20.52":
SunRay-hme1|m|10366723392253460486|:Include=SunRay:AuthSrvr=192.168.128.1:Au
thPort=7009:LogHost=192.168.128.1:LogKern=6:LogNet=6:Log
USB=6:LogVid=6:LogAppl=6:

with the LeaseTim value ???

Any help, hints will be appreciated !!!

Sorry for my bad english !
Thank's in advance !

Chamby

2. How to resize curses window in an xterm?

3. DHCP questions

4. TCP/ip <=> serial pass-through

5. Netgear Route/Linux DHCP Question from Newbie

6. Can not go to site?!

7. Newbie - DHCP question

8. Newbie to UNIX

9. DHCP Question of curiosity

10. DHCP Question

11. DHCP question

12. Easy DHCP Question

13. Host name and dhcp question