Networking Forums

Networking Forums > Computer Networking > Linux Networking > Help Pls Routing Dhcp & Static

Reply
Thread Tools Display Modes

Help Pls Routing Dhcp & Static

 
 
Leon.
Guest
Posts: n/a

 
      12-17-2003, 08:38 AM

"David Syratt" <(E-Mail Removed)> wrote in message
news:3fdfefba$0$59614$(E-Mail Removed)...
> I am attempting to configure a linux box to act as a router in a network
> comprising a Win2000 network utilising Dhcp and a Linux network using
> statically assigned internal IP's. I require the Dhcp PC users to access a
> a seperate linux internet gateway.




> Most articles I have googled require the linux routers nix cards to have
> there gateway address set as each others ip address



No sentence is wrong. The linux boxes dont need to be each others gateway.
That would form a routing loop.


The PC's need the DHCP supplied address as there gateway address. Thats the
problem.

> but because one of the
> cards is assigned a dynamic address I am at a loss as how to configure it
> in this situation.


Yes, you are lost. There is no way to do this reliably.


>
> <--[Linux Gateway] - [ Linux Router ] - [ Win2000 Server ] - [PC's]
>
> 10.10.10.254 eth0 10.10.10.13 10.0.0.X 10.0.0.x
> eth1 10.0.0.x



you will have to stop 10.0.0.x being variable. you will have to get it a
single IP address.

This is your windows problem, you fix your DHCP Server the windows way.
go and pay gates $5000 for lessons in configuring DHCP servers.


 
Reply With Quote
 
 
 
 
Neil Horman
Guest
Posts: n/a

 
      12-17-2003, 02:05 PM
David Syratt wrote:
> I am attempting to configure a linux box to act as a router in a network
> comprising a Win2000 network utilising Dhcp and a Linux network using
> statically assigned internal IP's. I require the Dhcp PC users to access a
> a seperate linux internet gateway.
> Most articles I have googled require the linux routers nix cards to have
> there gateway address set as each others ip address but because one of the
> cards is assigned a dynamic address I am at a loss as how to configure it
> in this situation.
>
> <--[Linux Gateway] - [ Linux Router ] - [ Win2000 Server ] - [PC's]
>
> 10.10.10.254 eth0 10.10.10.13 10.0.0.X 10.0.0.x
> eth1 10.0.0.x
>
> I appreciate your assistance.
>
> Regards
>
> David


Routers, as a rule, should never really have dynamic address assigned to
their interfaces. It creates exactly this problem. You _could_ get
around it by running routing protocol daemons on your linux router and
all your PC's (ospf, rip, BGP, etc), assuming you could find daemons for
the windows pcs. That would allow the router and the pcs to know when
an interface ip has changed, so they could update their routing tables,
but the configuration and maintenence headache would be such that its
far easier to just reserve an ip address out of the dhcp pool and assign
it statically to the router.

HTH
Neil
--
Neil Horman
Red Hat, Inc., http://people.redhat.com/nhorman
gpg keyid: 1024D / 0x92A74FA1, http://www.keyserver.net

 
Reply With Quote
 
David Syratt
Guest
Posts: n/a

 
      12-17-2003, 03:57 PM
I am attempting to configure a linux box to act as a router in a network
comprising a Win2000 network utilising Dhcp and a Linux network using
statically assigned internal IP's. I require the Dhcp PC users to access a
a seperate linux internet gateway.
Most articles I have googled require the linux routers nix cards to have
there gateway address set as each others ip address but because one of the
cards is assigned a dynamic address I am at a loss as how to configure it
in this situation.

<--[Linux Gateway] - [ Linux Router ] - [ Win2000 Server ] - [PC's]

10.10.10.254 eth0 10.10.10.13 10.0.0.X 10.0.0.x
eth1 10.0.0.x

I appreciate your assistance.

Regards

David
 
Reply With Quote
 
Peter Matulis
Guest
Posts: n/a

 
      12-17-2003, 04:54 PM
On Wed, 17 Dec 2003 16:57:30 +0000, David Syratt
<(E-Mail Removed)> wrote:

>I am attempting to configure a linux box to act as a router in a network
>comprising a Win2000 network utilising Dhcp and a Linux network using
>statically assigned internal IP's. I require the Dhcp PC users to access a
>a seperate linux internet gateway.


Stop. First off, you don't need the Windows DCHP server unless you
either have machines that connect and disconnect from your network
(such as laptops) or such a large number of machines that you don't
want to configure locally. In either case, this remains a completely
separate and trivial issue. You simply tell your windows server to
supply addresses (such as in the 192.168.0.0/24 network) to your
internal lan hosts.

>Most articles I have googled require the linux routers nix cards to have
>there gateway address set as each others ip address but because one of the
>cards is assigned a dynamic address I am at a loss as how to configure it
>in this situation.


You statically configure your linux box's internal interface (this is
going to be the default gateway for all your windows machines).

><--[Linux Gateway] - [ Linux Router ] - [ Win2000 Server ] - [PC's]


You didn't explicitly say so but I am assuming that you Gateway is an
Internet Gateway. Change your setup to this:

><--[Linux Gateway/Router] - [hub or switch] - [ Win2000 Server ] - [PC's]


It doesn't make any sense to have two adjacent routers unless you're
hiding something from us.
 
Reply With Quote
 
David Syratt
Guest
Posts: n/a

 
      12-19-2003, 08:57 AM
Thanks - all your advice is much appreciated.

David



David Syratt wrote:

> I am attempting to configure a linux box to act as a router in a network
> comprising a Win2000 network utilising Dhcp and a Linux network using
> statically assigned internal IP's. I require the Dhcp PC users to access a
> a seperate linux internet gateway.
> Most articles I have googled require the linux routers nix cards to have
> there gateway address set as each others ip address but because one of the
> cards is assigned a dynamic address I am at a loss as how to configure it
> in this situation.
>
> <--[Linux Gateway] - [ Linux Router ] - [ Win2000 Server ] - [PC's]
>
> 10.10.10.254 eth0 10.10.10.13 10.0.0.X 10.0.0.x
> eth1 10.0.0.x
>
> I appreciate your assistance.
>
> Regards
>
> David


 
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
static routing Robert Windows Networking 15 07-06-2007 02:05 AM
DHCP Error 64 - No static IP bound to this DHCP Server DHCP Firewall Windows Networking 0 02-02-2006 04:04 PM
Running static routing in addition to DHCP on my router. junk@consultageek.com Windows Networking 0 01-26-2006 03:43 AM
Tell me about static IP routing sz Linux Networking 13 04-19-2004 08:55 PM
Static Routing Windows Networking 1 12-20-2003 09:12 PM



1 2 3 4 5 6 7 8 9 10 11