on Thu Jun 11 2009, David Abrahams 
<dave-xT6NqnoQrPdWk0Htik3J/w-AT-public.gmane.org> wrote:

> on Thu Jun 11 2009, "Fajar A. Nugraha" <fajar-AT-fajar.net> wrote:
>
>> On Thu, Jun 11, 2009 at 7:37 PM, David Abrahams<[email protected]> wrote:
>>>
>>> Hi,
>>>
>>> I have a couple of links I want to aggregate with a static IP address.
>>> Should be simple, right?  Well, just getting a static IP address set up
>>> turns out to be challenging at best.  I've done a lot of googling, and
>>> found a *lot* of people having trouble with it, too.  The first
>>> instructions I found that actually worked for me happen to use NWAM:
>>> http://bopl.samharris.us/2008/06/solaris-nwam-and-static-ips/ I'd be
>>> happy to use the "default" network service instead, but haven't been
>>> able to get DNS name lookup to work.
>>
>>
>> (1) disable nwam, enable network/physical:default (I think you get this 
>> already)
>> (2) backup the default /etc/nsswitch.conf
>> (3) copy /etc/nsswitch.conf.dns to /etc/nsswitch.conf <== this might
>> be your pitfall
>> (4) adjust /etc/resolv.conf as necessary
>> (5) set up link aggregation with dladm. Lets call this bond0
>> (6) ifconfig bond0 plumb
>> (7) setup networking manually with ifconfig and route
>> (8) test
>
> Yes!!
>
>> (9) if you're happy with the results, create/adjust /etc/hosts,
>> /etc/hostname.bond0, /etc/defaultrouter, and /etc/netmasks (classic
>> solaris networking, really)
>
> No... :(.  Browsing inside my local subnet works, but outside fails.

Hah! Problem solved!  It was revealed by svcs -xv that the
name-service-cache hadn't started because...


> (1) disable nwam, enable network/physical:default
>
>     # svcadm disable network/physical:nwam
>     # svcadm disable network/physical:default
>
> (2) backup the default /etc/nsswitch.conf
>
>     # cp /etc/nsswitch.conf /etc/nsswitch.conf.bak
>
> (3) copy /etc/nsswitch.conf.dns to /etc/nsswitch.conf
>
>     # cp /etc/nsswitch.conf.dns /etc/nsswitch.conf
>     cp: cannot access /etc/nsswitch.conf.dns
>
> !!! Whoa, I didn't even notice that error when I did this originally; I
>     just assumed the command had succeeded.  The odd thing is that there
>     used to be a variety of /etc/nsswitch.conf.* files but now (after
>     following the whole procedure) they are all missing.  I have no idea
>     why the above command failed, though; I'm pretty sure the file was
>     there.

.../etc/nsswitch.conf was missing.  I guess given the error message
above, I shouldn't be surprised, but why/how could it happen in the
first place?  Anyway, I just repeated the cp command and re-enabled the
name service cache (and sendmail).  Now all is good, or so it seems!

Thanks for your patience and all your help.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

_______________________________________________
indiana-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss

Reply via email to