[ale] DHCP vs. Static Who would win?

tewkewl at mindspring.com tewkewl at mindspring.com
Thu Jan 31 17:28:11 EST 2002


unless both cards are on the same layer 2 network (hub/switch/being connected via crossover/etc....) only the card that resides on the dhcp servers network will pull an ip address.

now... the DG for a machine is not based on NIC but actually the machine itself...(as well as dns)  so the machine will add a DG if the dhcp server is spitting one out.  (however, static routes in most OS's will take prec. of dhcp learned routes) (or rip/ospf/etc...)

I can't remember right off hand if linux will change the metric of a dhcp gateway to that higher than the current static gateway or not. (or just not display it)...  hmmm I might have to go home and play now to double check... :)  

-Patrick


Denny Chambers <dchambers at snapserver.com> wrote:
> Scenario:

	I have a linux server with 2 ethernet card in them. eth0 is on subnet A
and eth1 is on subnet B. eth0 has a static IP Address, where eth1 uses
dhcp. Routing is not turned on. My default gateway and dns is reachable
through Subnet A, so I set them manually. My question is if Subnet B's
dhcp is also broadcasting a default gateway and dns information, will it
override what I typed in manually. What happens when both cards are set
for dhcp? Anyone know?
-- 
Denny Chambers

---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.



---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list