Another person that needs Internet help


 
Thread Tools Search this Thread
Operating Systems Solaris Another person that needs Internet help
# 1  
Old 06-28-2005
Another person that needs Internet help

Ok i have a router, which my sparc 5 is connected to. I can acess the router webpage (192.168.0.1). But I cant access the internet.

When i use sys-unconfig i enter my ip address fine then i click none for when it asks me for DNS info because I dont have a domain. I was told i can manually change the inside Solaris, I was wondering how i would do that. Or if there is anyother way to make my internet work.
# 2  
Old 06-28-2005
gateway:
####
cat /etc/defaultrouter
192.168.0.1
####
nameserver:
####
cat /etc/resolv.conf
nameserver 192.168.0.xxx
cat /etc/nsswitch.conf
.....
...
hosts: files dns
..
.
#####
reboot (eariest way)--> should work

greetings PRESSY
# 3  
Old 06-28-2005
Ok u kind of lost me, where do I type all this stuff?
# 4  
Old 06-28-2005
gateway: - to fix your gateway (add your gateway), edit /etc/defaultrouter and set it to 192.168.0.1 so when you do the 'cat /etc/defaultrouter' command shown, it has only 192.168.0.1 in it.
#### <----these are line breaks between the information posted
cat /etc/defaultrouter
192.168.0.1


nameserver: to fix dns, put "nameserver 192.168.0.xxx" in /etc/resolf.conf - note that xxx should be the dns server. If you don't have a dns server running on 192.168.0.xxx, then maybe the dns servers at your ISP will work. You would have to get their IP addresses and put them in instead of using 192.168.0.xxx.
####
cat /etc/resolv.conf
nameserver 192.168.0.xxx

You should edit nsswitch.conf so that it uses both files and dns when attempting to look up host IP addresses - do this AFTER you get dns working (your /etc/resolv.conf)

cat /etc/nsswitch.conf
.....
...
hosts: files dns
..
.
#####
reboot (eariest way)--> should work. <---Then simply reboot the server and it all should work.
# 5  
Old 06-29-2005
Oh O

I dont have the file: /etc/defaultrouter
or the file: resolf.conf

I do however have the nssswitch.conf file.

So I created both files, when i enter the command: cat /etc/defaultrouter it says

192.168.0.1#

and

nameserver 192.168.0.1#

(I have 2 other ip addresses i can try but first iwant to make sure im doing this right),

Thanks for all your help

Last edited by vikster007; 06-29-2005 at 03:29 AM..
# 6  
Old 06-29-2005
Get rid of the # on the end of those lines and you should be fine.
# 7  
Old 06-30-2005
How do I do that?
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Renaming a file (non unix person)

I am trying to move a file to a new file with a datestamp in the filename on a unix server using a script I am trying to write. I have searched this forum and have tried 100 different variations but cannot solve my problem. My requirement is: Rename archiveSF\sfglsoarian.txt to... (3 Replies)
Discussion started by: cavleader
3 Replies

2. Shell Programming and Scripting

Script executable only for one person at same time

Hi My question: Is there a way to lock a script if its already running for other users? Like if i want to start a script, that is running by another user, there will be a message: Hey, you cant start the script because its running by another user, try it later. my idea was that the... (10 Replies)
Discussion started by: DarkSwiss
10 Replies

3. Linux

SFTP an internet address from a system behind an internet proxy

I was wondering if it is possible to setup SFTP to go through the internet proxy while connecting to an internet location. Problem: Client system is behind internet proxy. SFTP to any internet location fails as there is no documented way to configure SFTP to connect to internet locations through... (4 Replies)
Discussion started by: toobrown1
4 Replies

4. What is on Your Mind?

Game: Name this person

Simple rules... 1. Guess who it is, the first person to get it posts the next picture, post your guess as a reply to this thread. 2. Wait for the person who posted the picture to confirm that you are correct before posting a new picture. 3. If the person who posted the picture does not answer... (268 Replies)
Discussion started by: reborg
268 Replies

5. Shell Programming and Scripting

New Person Added to the Forum

Hello, I'm brand new to this forum. I am working on my first Bash shell script. We were given an exercise to get ready for the real assignment. I could use some help. The exercise is to "set two variables (i. e., file1 & file2) on the command line to the paths of the text files. We are to... (1 Reply)
Discussion started by: wcarp05
1 Replies
Login or Register to Ask a Question