how to link x86 Solaris 10 system to the Internet?


 
Thread Tools Search this Thread
Operating Systems Solaris how to link x86 Solaris 10 system to the Internet?
# 1  
Old 04-21-2011
how to link x86 Solaris 10 system to the Internet?

Hi, I have an x86 Solaris system linked on the network at work. We have DSL, and all the Windows PC's on this network can access the Internet with no problems.

On my x86 Solaris, I am trying to use commands such as "wget" to access to the outside world, and it's not working. How do I configure this x86 so that it can communicate to the outside world, so I can use "wget"? Thanks.
# 2  
Old 04-21-2011
Is your Solaris system configured with proper IP address? Can you ping Windows PCs from the Solaris system? Do you have DHCP server in your network? Post output of those commands executed on Solaris box:
Code:
ifconfig -a

Code:
netstat -rn

# 3  
Old 04-21-2011
Exactly which version of Solaris?
# 4  
Old 04-21-2011
Yes, I can ping from the Solaris x86 to the Windows PC and vice versa. The DHCP server on the network is the DSL router. The Solaris x86 has a static IP address set up inside /etc/hosts. There's no proxy. The Windows PC can access the web without problems. I simply want to run a wget command from my Solaris system to yahoo.com.

Here are the results that you asked for:


Code:
# ifconfig -a 
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000 
rge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.1.12 netmask ffffff00 broadcast 192.168.1.255
        ether 0:16:e7:16:56:1b 

 
 
 
# netstat -rn 
Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface 
-------------------- -------------------- ----- ----- ---------- --------- 
192.168.1.0          192.168.1.12         U         1       1342 rge0      
224.0.0.0            192.168.1.12         U         1          0 rge0      
127.0.0.1            127.0.0.1            UH       44    2904681 lo0    
   
#


Last edited by pludi; 04-22-2011 at 04:07 AM..
# 5  
Old 04-21-2011
Static IP? Ahah.

You need to set your DNS servers statically too. Without those, you can't talk to domain names, only IP addresses. That's done through /etc/resolv.conf, which should have one or more lines like
Code:
nameserver 142.165.21.5

where the IP addresses are perhaps your router and your ISP's own DNS servers.

Once you save the file, the settings should take effect immediately.

---------- Post updated at 06:24 PM ---------- Previous update was at 06:16 PM ----------

Code:
# netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
192.168.1.0 192.168.1.12 U 1 1342 rge0
224.0.0.0 192.168.1.12 U 1 0 rge0
127.0.0.1 127.0.0.1 UH 44 2904681 lo0

#

I'm not especially familiar with Solaris routing tables, but pointing your server's gateway address at itself seems a bit of a catch-22. Maybe that should be going to your router, presumably 192.168.1.1?
# 6  
Old 04-21-2011
That actually looks like correct routing - almost. If you look closely, the "destination" column consists of networks. I don't see a default route though.

What's in "/etc/defaultrouter"? It should contain something like "192.168.1.1", or whatever the OP's router IP address actually is.
# 7  
Old 04-22-2011
Quote:
Originally Posted by Corona688
Once you save the file, the settings should take effect immediately.
Not necessarily. /etc/nsswitch.conf should list dns as a backend for host resolution.

But why doing it the hard way ?

The OP windows OS is flawlessly connecting to the Internet because it is very likely configured to use DHCP, which automatically does all the configuration.

Just do it the same with Solaris:

Code:
rm /etc/hostname.rge0 /etc/resolv.conv /etc/defaultrouter 
touch /etc/dhcp.rge0
ifconfig rge0 dhcp start


Last edited by jlliagre; 04-22-2011 at 06:52 AM..
This User Gave Thanks to jlliagre For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. 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

2. UNIX for Advanced & Expert Users

Unable to connect to INTERNET using BSNL Broad band connection on Solaris-x86

Hi, Iam using BSNL broad band connection and i have installed two OS Xp & Sun solaris -x86 on my machine.Iam able to use INTERNET on windows Xp but not able to do it on solaris x86. I have tried using DHCP concept as well as sys-unconfig command in solaris but no results. When i use... (5 Replies)
Discussion started by: jayaprakash
5 Replies

3. Solaris

internet setup for solaris on x86 platform

Hi all, i have configured my solaris 5 .10 for internet connection by editing the files /etc/hosts/,/etc/resolve.config,/etc/defalutrouter and nsswitchconfig . during installation i was not requested for ip adddress even i plugged network cable. am i need to install any network card... (2 Replies)
Discussion started by: srikanthg
2 Replies

4. Solaris

Problem with Solaris system on x86. It would not boot again after updates.

Hi All, I have an x86 system which I have just installed Solaris 10 on, I intend to use this as a database server for Oracle, I tried to patch the server with the latest updates from SUN in preparation for the Oracle installation as I wanted to make sure that I was running the latest patches. ... (0 Replies)
Discussion started by: platforminc
0 Replies

5. Solaris

Link for solaris on x86

Hi All, Can any body guide me towards the x86 link? I need to understand the disk slice and booting sequences in x86 as I have to give my SA1. Please help. (4 Replies)
Discussion started by: kumarmani
4 Replies

6. Gentoo

Properly Sizing an x86 Server for Internet DNS?

Where I work, we have to very old Alpha boxes running OpenVMS 7. They also have Multinet and are using the BIND component for DNS services. We are planning on retiring those boxes and replacing them with x86 servers running Linux. I've decided to go with Gentoo Linux for this and I've inherited... (3 Replies)
Discussion started by: deckard
3 Replies

7. UNIX for Dummies Questions & Answers

Running Solaris Sparc Apps on X86 Solaris

I know that Sun make s a version of Solaris for Sparc platforms and also an x86 (Intel/AMD) release of Solaris. Can an application that runs on Solaris/Sparc also run on a PC running the x86 release of Solaris? Would a different release be required or any re-compling of the application? jim (1 Reply)
Discussion started by: stocksj
1 Replies
Login or Register to Ask a Question