malachi@serveris:/etc/nwam# ifconfig -a
lo0: flags=2001000849
inet 127.0.0.1 netmask ff000000
nge0: flags=201004843
inet 10.10.1.155 netmask ffffff00 broadcast 10.10.1.255
ether 0:18:f3:d5:cd:9b
nge1: flags=201000802
inet 0.0.0.0 netmask 0
ether 0:18:f3:d5:cd:9c
lo0: flags=2002000849
inet6 ::1/128
Step 2: Setup the nameservers....
gedit /etc/resolv.conf
add in the DNS servers...
EX:
nameserver 10.10.1.1
nameserver 66.93.87.2
nameserver 216.231.41.2
Step 3: Switch to using the DNS servers...
malachi@serveris:/etc# cp nsswitch.conf nsswitch.conf.original
malachi@serveris:/etc# cp nsswitch.dns nsswitch.conf
malachi@serveris:/etc# svcadm restart svc:/network/dns/client:default
malachi@serveris:/etc# cp nsswitch.dns nsswitch.conf
malachi@serveris:/etc# svcadm restart svc:/network/dns/client:default
Step 4: Switch to a static IP
gedit /etc/nwam/llp
change the 'nge0 dhcp' (or whatever device from Step 1) to 'nge0 static 10.10.1.10/24' (or whatever ip)
svcadm restart svc:/network/physical:nwam
On reboot it complained that serveris was not in the /etc/hosts file, so I just added the line '10.10.1.10 serveris' and all seems fine now.
ReplyDeletealso, should do:
ReplyDelete# pfexec svcadm enable svc:/network/physical:default
# pfexec vi /etc/defaultrouter
(add '10.10.1.1' on its own line)
# pfexec svcadm restart network/routing-setup
Excellent, thanks for that. I've just installed an OpenSolaris 2008.11 box and wondered why when setting /etc/nwam/llp to have a static address, DNS didn't see to work anymore!
ReplyDeleteLifesaver!
very cool procedure! thanks! I'm happy that found your blog:)
ReplyDeleteYou would think it would be easier, but...
ReplyDeleteGlad it helped! :)
Thanks mate...saved me a world of pain.
ReplyDeleteno problem. happy to be of assistance.
ReplyDeleteThanks!
ReplyDeleteFunning thing is: why isn't this not in a manpage?
Good point. Maybe we should recommend updating the nwam man page
ReplyDelete