sometimes we missed simplicity, sometimes we missed the basics. what is the basic mean when we using multitasking or network ready operating systems? is just about connection to internet, usually over ethernet, and at the moment of writing this article, i’ve been using Solaris 10 as my daily basis OS.
daily basis OS mean all of my works depend on it, in case of internet connection, Solaris 10 use most commonly UNIX command, svcadm, routeadm, ifconfig, route, and ifconfig, also. So, what the hell with Solaris internet connection? Some people ask me how todo internet connection using ethernet card, what a simple task when we did it on Linux or FreeBSD/OpenBSD, but on Solaris 10 you must be sure, connecting to the internet, is not easy as you wish.. horrible.
okay, lets through these steps:
- open your console
- $ su
- get the version of your OS, # uname -a
- i get: SunOS risal-solaris 5.10 Generic_137138-09 i86pc i386 i86pc
- my network uses DHCP, so lets activate it, but first, let see your working ethernet card, # ifconfig -a
- i get: rtls0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4>
- uses DHCP connection, # ifconfig rtls0 down ; ifconfig rtls0 auto-dhcp
- see through your routing table, # vim /etc/defaultrouter
- be sure that it works!
- setup your dns connection, # vim /etc/resolv.conf
- fill with domain, nameserver and search parameter
- change the /etc/nsswitch.dns to /etc/nsswitch.conf , use cp command!
- lets try to route to google.com
# route get google.com
route to: jc-in-f99.google.com
recvpipe sendpipe ssthresh rtt,ms rttvar,ms hopcount mtu expire
0 0 0 0 0 0 1500 0
BINGO! you are in!