vi /etc/nsswitch.conf line that says hosts should read:
hosts: files dns (and /usr/sbin/ifconfig -a will show how your network is configured) Mike Harry Putnam wrote: > Harry Putnam <reader at newsguy.com> writes: > >> Michael Ramchand <Mike.Ramchand at Sun.COM> writes: >> >>> If all you really want is a permanently static IP, I think the >>> following still works: >>> >>> 1: svcadm disable nwam >>> 2: svcadm enable network/physical:default >>> 3: in /etc/hostname.<interfacename> put the name of the machine you >>> want it to be. >>> 4: In /etc/hosts, make sure there is an IP for the hostname above. > > [...] > >> I just now followed those directions fleshed out a little more on a >> site here: >> >> http://dlc.sun.com/osol/docs/content/2008.11/SYSADV0/How%20to%20Manually%20Configure%20the%20System%27s%20Wired%20Network%20Settings.html >> >> I haven't rebooted yet but will now to see if it sticks. > > OK, reboot over... the network came up and allowed all services to > start but dns fails. I can navigate my home lan but not the internet. > > /etc/resolv.conf looks like: > domain hsd1.in.comcast.net. > nameserver 192.168.0.20 > > That is the address of my router. > > cat > /etc/defaultrouter > 192.168.0.20 > > # cat /etc/hostname.rtls0 > 192.168.0.36 > > ifconfig rtls0 > rtls0: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 > index 2 > inet 192.168.0.36 netmask ffffff00 broadcast 192.168.0.255 > ether 0:40:5:9:80:f0 > > head -3 /etc/hosts > ::1 zfs zfs.local localhost loghost > 127.0.0.1 zfs zfs.local.lan localhost loghost > 192.168.0.36 zfs.local.lan zfs # osol.11 > > svcs|grep network/physical > online 17:11:04 svc:/network/physical:default > > And I'm pretty sure netstat -nr shows what you would want it to: > > # netstat -nr > Routing Table: IPv4 > Destination Gateway Flags Ref Use > ------------- ------------- ----- ----- ---------- -- > default 192.168.0.20 UG 1 2 > 192.168.0.0 192.168.0.36 U 1 2 rtls0 > 127.0.0.1 127.0.0.1 UH 1 0 lo0 > > ===== * ===== * ===== * ===== > ===== * ===== * ===== * ===== > > But if I ping anything on the internet: > > # ping ftp.ucsb.edu > ping: unknown host ftp.ucsb.edu > > _______________________________________________ > desktop-discuss mailing list > desktop-discuss at opensolaris.org -- Mike Ramchand Principal Field Technologist Systems Practice Sun Microsystems (UK) Tel: +44 125 2421091, Ext: (70)21091, Mob: +44 780 1179593 -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3253 bytes Desc: S/MIME Cryptographic Signature URL: <http://mail.opensolaris.org/pipermail/desktop-discuss/attachments/20090304/2749e4ea/attachment.bin>