|
Home > Archive > Sun Solaris > August 2002 > Networking Solaris
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Networking Solaris
|
|
|
| Hi, I'm working on networking my sun system to connect to the Internet in a subnet-based environment. How do I configure the gateway address? In Linux, it's easier... just change the gateway address in /etc/sysconfig/network.
I'm very much new to Sun Solaris. So if anyone can provide any time to examples that show how to network Sun systems.
Thanks
Thanks | |
| spoofy 2002-08-04, 1:16 am |
| there is a /etc/gatways file.
if your looking to set your machine to route via a default router.... there is /etc/defaultrouter | |
| peanutbutter 2002-08-04, 11:16 am |
| After delving into my Solaris box yesterday, here's what I come up with if anyone wants to setup network on the Sun machine:
1. Enter the host address(es) in /etc/hosts
ex.
127.0.0.1 localhost
192.168.1.3 nameofyourcomputer loghost
you may also enter the hostname in /etc/hostname.hme0 using the following command
# echo "nameofyourcomputer" > /etc/hostname.hme0
2. Enter subnet mask address in /etc/netmasks or /etc/inet/netmasks. The latter should also include your network address
ex.
192.168.1.0 255.255.255.0
3. Create a file called /etc/defaultrouter or /etc/gateways and enter the default gateway address (in Linux this is equivalent to file /etc/sysconfig/network)
ex.
192.168.1.1
4. Create a file called /etc/resolv.conf and enter the your dns address(es). In Linux, the file exists for you to modify. In Solaris, you have to create it.
ex.
domain company.dom
nameserver 206.11.28.39
nameserver 206.11.28.40
5. run command "netstat -rn" to check your routing table, which should include the default gateway address, your network address, and the host address(es).
6. remember the above steps assume that you've already configured your NIC. check "ifconfig -a" to make sure your NIC is "up" and properly configured.
7. ping, ping, ping... check your router/firewall to make sure you have the right setting.
If you're coming from Linux (Cisco would help), like myself, you shouldn't have any problem with the above steps. If you're not familiar with Linux/Unix, read some books to help you understand Linux, which have more resources on the Web than Solaris. At first I hated Solaris, but after playing around with it, I find it's actually pretty good although I still prefer Linux... hehehehhe. I've struggled getting the information necessary to guide me to set up network on a Sun machine. I've looked for help on the Web, but to my dismay there's very little support in the Solaris community. So hopefully the above info will help you.
I forgot to mention that there is one book I find very useful in setting up Solaris network. I sat at my local bookstore and skimmed through it... it has most of the information including the above steps on how to set up Solaris network.
Sun Certified Network Administrator for Solaris 8 by Rick Bushnell
There's also another book that most people considered to be a classic Linux book:
Running Linux (3rd Edition) by Matt Welsh, Matthias Kalle Dalheimer, Lar Kaufman, Matthew Welsh
And one more... a Unix book that you should have on your bookshelf:
UNIX System Administration Handbook (3rd Edition) by Evi Nemeth |
|
|
|
|