First, thanks for the detailed answer.

<[email protected]> writes:

[...]

> So in your case, the dns configuration was (partially) removed,
> but nothing ever replaced it, because the static address implied
> no dhcp information at all.  If you're regularly using static
> addresses, and your configuration is dynamic (i.e. the dns server
> data could change, or you don't always want to use dns), you'll
> need to make the name service configuration changes explicitly.
> The nwam ULP is one way of doing this; refer to the 'Upper-Layer
> Profiles' section at the bottom of
> http://www.opensolaris.org/os/project/nwam/prototype/ for more
> information about those, or follow up on nwam-discuss.  Note,
> though, that this mechanism will change pretty dramatically with
> the integration of phase 1.

In my case I do want to use all static IPs on my home lan.  The
default route (lan to inet router) for lan machines does get its
config from the internet dhcp server of my ISP.

So by aiming local lan machines at the router as default route and for
dns lookups in  /etc/resolv.conf
   nameserver 192.168.0.20

The local lan machines are accessing the ISP nameservers thru my local
lan router.

But the addressing for the local machines is static (always the
same).  At least that is my aim.

On my two osol machines I have been faking it by setting the lan
router to serve specific dhcp addresses to specific MAC address on the
local machines, thru its dhcp service.  So (in effect) I have a static
number I know will be the address for each of the two machines.

That seemed like kind of a confusing way to arrive at static IP
numbers so I decided to change over to real static addressing.

Like the other 5 lan machines use.

So far it seems to work to set something in /etc/nwam/llp like:

  rge0  static 192.168.0.29

And since as you've pointed out... server sees static and sees no need
to add `dns' to  /etc/nsswitch.conf

So I made sure (after help from this list) to add `dns' to 
hosts: files dns  in /etc/nsswitch.conf

Now with those two things and any needed adjustments to /etc/hosts,
it appears to be working through reboots and shutdowns.

So is it likely something will overwrite /etc/nsswitch.conf or
/etc/nwam/llp?  And remove my edits? 

_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to