Link to home
Start Free TrialLog in
Avatar of Delta526
Delta526

asked on

Solaris 5.7 needs a network config helper

Hello Experts,

I just purchased myself a Solaris Ultra Sparc 5 with ver 5.7 installed. Im trying get it connected to the internet but it has no tools to do such a thing and I obviously know very little about Unix can you guys help me get this computer connected to the internet?? Where do I start?? I will start a new thread for each quiestion.

Thanks
Avatar of Arty K
Arty K
Flag of Kazakhstan image

How do you try to connect to the Internet?

Do you have DSL line and your Solaris box should authenticate agains remote ISP server, your Solaris is too old (it should be at least Solaris 8 10/01):
http://www.phildev.net/solaris/spppoe.html also there is a way of compiling RP-PPOE package on Solaris 7: http://www.phildev.net/solaris/rp-pppoe.html but that's not an easy way and you should download many extra packages to get it running.


If you have an Internet IP address or some other device connects to the Internet, you should just configure IP address on your Ultra 5 NIC and add a default route. Everything is done manually with text editing files:

/etc/hostname.hme0        - write here a hostname of your machine, that is in /etc/hosts (I use "ultra5")

/etc/hosts                         - add here a line with your Sun's IP address and host name, like "192.168.0.2   ultra5"

/etc/defaultrouter             - add here your default router IP address, like 192.168.0.1

then reboot, you should have IP address assigned to the interface hme0
Avatar of Delta526
Delta526

ASKER

I found /etc/hostname.hme0  and I added this line ulta5 and then I found /etc/hosts where I added:
192.168.21.2 ultra5 loghost
My gateway is 192.168.21.1 but I can find the defaultrouter file can I create it? and if so what should it say in the file?
ASKER CERTIFIED SOLUTION
Avatar of Arty K
Arty K
Flag of Kazakhstan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Oh sorry about your first question about how I connect to the NET, I have a gateway on my windows box. I created a defaultrouter file and put my gateway IP and I can ping this solaris box from my windows box so I am on the network!!! thank you. but I still can't connect to the internet on the conputer. There is a globe icon that maybe is not an internet browser? When I open it its called HotJava for Solaris??? what the heck??
Thank you for points.
You may try  'nslookup google.com' or 'telnet google.com 80'
if both commands work, you are connected.

What Solaris 7 comes with old Netscape Navigator browser. I don't have Solaris 7 to see how it looks or where is it located, but as far as I remember, yes, it's a globe sign. Sun Co. names  everything with a 'Java' prefix even when there is nothing common with Java. Just try any URL in address bar or configure Proxy if you need to. Most probably it _is_ your browser.
I can get to google by typing http://64.233.167.99 and my hotjava is looking at a Google screen. But it can't find anything I think I need wins resloution??
Yes, now edit your /etc/resolve.conf and add a line like:
--[cut]--
nameserver 212.122.1.2
--[cut]--

put your DNS IP instead of 212.122.1.2, you may add more nameservers
next edit /etc/nsswitch.conf, find 'hosts:' entry and change to:
--[cut]--
hosts: dns files
--[cut]--

Now DNS should work, no reboot required.
Thanks Nopius! but I can still only get to a website with an IP address how do I add more name servers?

nameserver 212.122.1.22
nameserver 212.122.1.23
nameserver 212.122.1.24
or is it
nameserver 212.122.1.22:nameserver 212.122.1.23:nameserver 212.122.1.24 or how?

Oh hey whats the deal with proxies?? When I try to use www.google.com it comes back with:

Unknown Host:
Make sure your proxies are setup correctly:

Then it asks for
HTTP: Port:
FTP: Port:
SOCKS: Port:


multiple nameservers should be one to one line

nameserver 212.122.1.2

is a real IP address of My ISP DNS server, it _may_ work for you, but you should have closer DNS server, ask your ISP for IP or look in your Windows router with "ipconfig /all".
I used ipconfig /all and I entered our name DNS server sorry about the copy. It should have been

nameserver 192.168.67.12 for a DNS but perhaps I need to add the WINS server too? If I can get the google page on my screen using the IP address of google then I am almost there right???
Just use "nameserver 192.168.67.12", no WINS, no proxy. Don't forget about changing /etc/nsswitch.conf
Nopius, this box is on the net thanks to you. I can ping it from my windows box and I can ftp to it so its good to go. Why this Java browser won't work is a whole other issue. But thanks for helping me through this!!!