Visit Our UNIX and Linux User Community


Can't connect to Internet


 
Thread Tools Search this Thread
Operating Systems Solaris Can't connect to Internet
# 1  
Old 12-12-2009
Can't connect to Internet

Dear freinds...

I downloaded solaris for x86 and was able to configure the lan correctly.. I can ping and share with other destops through lan... but still I can't connect to internet ? can you please help..

I put my default gateway which is 192.168.1.1 to /etc/defaultrouter but with no use..

My ip is 192.168.1.100

please advise
# 2  
Old 12-12-2009
if you use the search function, you should find tons of information for this topic...

the key should be the dns configuration. edit the files
/etc/resolv.conf
and
/etc/nsswitch.conf
with the correct settings!

best,
DN2
# 3  
Old 12-12-2009
thank you for your response...

Yes, I read about these files, but I still dont know how should I configure the /etc/nsswitch.conf file... ?

----

cat /etc/resolv.conf
server1 192.168.1.1

is this ok also ? my hostname is server1

thank you
# 4  
Old 12-12-2009
/etc/resolv.conf should contain line like that:
Code:
nameserver 192.168.1.100

where 192.168.1.100 is the IP address of your DNS server.
# 5  
Old 12-13-2009
edit the nsswitch.conf file. look for the line with:

Code:
hosts: files

add dns at the end of this line to enable dns lookup for hosts on your machine.

more information can be found here: Enabling a Machine to Use DNS (Solaris Naming Setup and Configuration Guide) - Sun Microsystems
# 6  
Old 12-13-2009
Simply, run the command:

Code:
#cp /etc/nsswitch.dns   /etc/nsswitch.conf

Thanks,
Deepak
# 7  
Old 12-13-2009
Many many thanks...

It works now :-) ....

But now every time I restart my solaris I have to run "ifconfig gani0 192.168.1.100 netmask 255.255.255.0 ...

where can I insert this command so that it runs automatically each time I restart my pc ??

Many thanks again

Previous Thread | Next Thread
Test Your Knowledge in Computers #496
Difficulty: Easy
Many programming languages assign special meaning to keywords such as for, if, and while (for example) that are used to define various control structures.
True or False?

10 More Discussions You Might Find Interesting

1. IP Networking

How to connect internet in Linux OS

How to enable internet on my Linux OS My OS: Red Hat Fedora Release 9 (Sulphur) version: 2.6 I have to connect via my Nokia cell phone via cable. This way only I had been using internet on my Windows OS. If any software is required to install on my UNIX for internet, then I don't have any. If... (14 Replies)
Discussion started by: ravisingh
14 Replies

2. Red Hat

How to connect internet in Linux OS?

What all is required so that I can use internet on my Linux OS My OS: Red Hat Fedora version: 2.6 I have to connect via my Nokia cell phone via cable. This way only I had been using internet on my Windows OS. If any software is required to install on my UNIX for internet, then I don't... (1 Reply)
Discussion started by: ravisingh
1 Replies

3. Linux

How to connect to internet

Hi, Can someone guide me regarding how to connect to internet. what are steps? Thanks in advance (2 Replies)
Discussion started by: naren nandale
2 Replies

4. UNIX for Dummies Questions & Answers

Solaris 10 - How to connect to internet

I recently installed solaris 10 on a seperate hard disk in my desktop pc. My first hard disk is running windows xp. I am totally new to solaris. Please help me to connect to the internet through solaris 10. I read a few threads, and re-installed solaris 10 by giving 'Yes' to the question that... (1 Reply)
Discussion started by: hari86av
1 Replies

5. Linux

how to connect internet????

HI, Am using GPRS ( MOB # 3230 ) internet connection in windows Hw to use internet r connect in linux.. ( Red Hat Linux Ver.10 ) Please help me.. Thanks in adv.. (1 Reply)
Discussion started by: bharath raja
1 Replies

6. Solaris

How to connect to Internet

Hi I installed solaris developer edition 1/08 today.I want to connect to Broadband internet through my ADSL 2+ Modem/Router with a username and password. plz help in this case,I am new to sun solaris:confused: the modem itself is a router it worked well on ubuntu and red hat (3 Replies)
Discussion started by: santugvd
3 Replies

7. Solaris

how to connect to internet on Solaris 10

Hi, I am new to Solaris just migrating from Windows XP. I want to connect to internet but I have problem with configuration. My ISP has provided me a router.I get internet connection through DHCP. I don't know any proxy or subnetmask or any IP address that requires during configuration of... (1 Reply)
Discussion started by: pappu2008
1 Replies

8. Solaris

trying to connect to internet

i have just installed solaris 10 on a 60 gb hard drive. now im trying to install my nic driver but when i put in the floppy disk for the nic card it cant read it, so then i found that i have to mount the floppy drive and i tried putting in the mount command but i dont know where to mount it and if... (38 Replies)
Discussion started by: vutty81
38 Replies

9. Solaris

How to connect Solaris 10 to the internet ?!

ive installed a fresh copy of solaris 10 on a E3500 Server machine, i gave it a static IP address , 192.168.1.15 its a test server in our office (small office) we are using LINKSYS as our internet router and DHCP as well .. its IP is 192.168.1.1 and ive added this IP as Default route on the server... (9 Replies)
Discussion started by: mduweik
9 Replies

10. UNIX for Dummies Questions & Answers

Cannot connect to the Internet

I running HPUX 11.0, Netscape gives me an error "Unable to locate Server" when using a www.something.com address. If I use an IP address I get past the router and onto the Internet. My workstation can get to the Router @ 192.168.0.1 and also it's local APACHE server. I have DHCP enabled... (8 Replies)
Discussion started by: johnalt
8 Replies

Featured Tech Videos