Networking Forums

Networking Forums > Computer Networking > Linux Networking > Assigning static addresses and DNS info

Reply
Thread Tools Display Modes

Assigning static addresses and DNS info

 
 
Monty Wiseman
Guest
Posts: n/a

 
      08-07-2003, 10:43 PM
I want to assign static address to my Windows machine that use RH as a
gateway/router. Can I assign static IP addresses to the windows machine but
still have them get DNS servers via DHCP.

Alternately, is there a way to indicate my RH gateway/router as the DNS
server. The RH gateway/router is on a dialup.

-Monty


 
Reply With Quote
 
 
 
 
Iassen Hristov
Guest
Posts: n/a

 
      08-07-2003, 10:58 PM

> Can I assign static IP addresses to the windows machine but still have
> them get DNS servers via DHCP.

No.

> Alternately, is there a way to indicate my RH gateway/router as the DNS
> server. The RH gateway/router is on a dialup.

Yes. When you specify the static IP in NT you can specify all this.

--
Iassen Hristov
 
Reply With Quote
 
Monty Wiseman
Guest
Posts: n/a

 
      08-07-2003, 11:03 PM
The RH server is already setup to be a router. If I set the Windows machines
to use the RH server as the DNS server is there anything else I need to
setup on the RH server or will it just forward the DNS requests to its DNS
server at my ISP?

-Monty

"Iassen Hristov" <(E-Mail Removed)> wrote in message
newsprtj4r1kfii9c5d@news-(E-Mail Removed)...
>
> > Can I assign static IP addresses to the windows machine but still have
> > them get DNS servers via DHCP.

> No.
>
> > Alternately, is there a way to indicate my RH gateway/router as the DNS
> > server. The RH gateway/router is on a dialup.

> Yes. When you specify the static IP in NT you can specify all this.
>
> --
> Iassen Hristov



 
Reply With Quote
 
/dev/rob0
Guest
Posts: n/a

 
      08-07-2003, 11:38 PM
In article <tCAYa.89286$(E-Mail Removed)>,
Monty Wiseman wrote:
> I want to assign static address to my Windows machine that use RH as a
> gateway/router. Can I assign static IP addresses to the windows machine but
> still have them get DNS servers via DHCP.


You can tell dhcpd to hand out static addresses using the "host"
directive in dhcpd.conf(5). Your dhcpd should have come with sample
dhcpd.conf files which illustrate this.

> Alternately, is there a way to indicate my RH gateway/router as the DNS
> server. The RH gateway/router is on a dialup.


It would be a good idea for anyone on dialup to run a local caching DNS
server. If you're running such a server, sure, set up your client boxes
to use it. If not, then no, it won't work.

Over the past few days I've written some posts here about DNS servers.
If you missed those, try Google Groups.
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply
 
Reply With Quote
 
Monty Wiseman
Guest
Posts: n/a

 
      08-08-2003, 08:00 PM
Thank you all.

Monty

"Monty Wiseman" <wiseman-(E-Mail Removed)> wrote in message
news:tCAYa.89286$(E-Mail Removed)...
> I want to assign static address to my Windows machine that use RH as a
> gateway/router. Can I assign static IP addresses to the windows machine

but
> still have them get DNS servers via DHCP.
>
> Alternately, is there a way to indicate my RH gateway/router as the DNS
> server. The RH gateway/router is on a dialup.
>
> -Monty
>
>



 
Reply With Quote
 
Rich Piotrowski
Guest
Posts: n/a

 
      08-08-2003, 09:01 PM
On Thu, 7 Aug 2003 16:38:32 -0700, /dev/rob0 <(E-Mail Removed)> wrote:

>In article <tCAYa.89286$(E-Mail Removed)>,
> Monty Wiseman wrote:
>> I want to assign static address to my Windows machine that use RH as a
>> gateway/router. Can I assign static IP addresses to the windows machine but
>> still have them get DNS servers via DHCP.

>
>You can tell dhcpd to hand out static addresses using the "host"
>directive in dhcpd.conf(5). Your dhcpd should have come with sample
>dhcpd.conf files which illustrate this.


Unfortunately, RedHat does not come with a sample dhcpd.conf. At least
not in /etc. This is a snippet of mine to do that.

###### start dhcpd.conf #################
authoritative;
ddns-update-style interim;

subnet 192.168.100.0 netmask 255.255.255.0 {
range 192.168.100.64 192.168.100.127;
one-lease-per-client true;
ignore client-updates;
default-lease-time 518400;
max-lease-time 2592000;
ddns-domainname "piotro.net";
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.100.255;
option routers 192.168.100.254;
option netbios-name-servers 192.168.100.254;
option domain-name-servers 192.168.100.254;
option domain-name "piotro.net";

host jakepiot {
hardware ethernet 00:02:b3:64:f8:0e;
fixed-address 192.168.100.2;
}

######### end #############

< snip>


Rich Piotrowski

To reply via E-Mail use rpiotro(at)wi(dot)rr(dot)com
 
Reply With Quote
 
Rich Piotrowski
Guest
Posts: n/a

 
      08-09-2003, 12:03 AM
On Fri, 8 Aug 2003 14:54:27 -0700, /dev/rob0 <(E-Mail Removed)> wrote:

>In article <(E-Mail Removed)>,
> Rich Piotrowski wrote:
>> Unfortunately, RedHat does not come with a sample dhcpd.conf. At least
>> not in /etc. This is a snippet of mine to do that.

>
>It's probably in /usr/share/doc/dhcp-$VERSION or somewhere like that.


Ah! Yes it is. Some interesting stuff I'll have to look into some
rainy day but, nothing there about sending fixed addresses.


Rich Piotrowski

To reply via E-Mail use rpiotro(at)wi(dot)rr(dot)com
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Assigning fixed ip addresses to a router? Mark Network Routers 3 03-25-2006 10:04 PM
DHCP Server not assigning addresses to clients Neil Sutulic Windows Networking 0 01-26-2006 10:40 AM
Assigning IP addresses with IAS authentication Marcello Gorlani Windows Networking 1 05-03-2005 08:17 AM
Static Ip's and BT - I have just recieved A BT router with 5 static IP Addresses. However, I want 5 computers in the office to use only one of the addresses. ery Difficult Question Nattasian Broadband 3 07-13-2004 08:55 AM
MN-700 DHCP service stops assigning IP addresses JayDee Broadband Hardware 2 07-08-2004 04:36 AM



1 2 3 4 5 6 7 8 9 10 11