Configuring Solaris 10 SPARC for internet ready connection


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Configuring Solaris 10 SPARC for internet ready connection
# 1  
Old 05-11-2019
Configuring Solaris 10 SPARC for internet ready connection

I have a Oracle SPARC server with Solaris SPARC 10 OS installed
I have a domestic router/modem box from my ISP in my house. I have a wifi extender in my room which has a RJ45 female socket for ethernet connection. The Wifi extender is configured properly to act as a bridge for machines to connect with my router/modem.
I have setup my NIC card in Solaris 10 with the following commands
Code:
 dladm show-link ifconfig e1000g0 plumb up ifconfig 192.168.0.22 netmask 255.255.255.0 broadcast + up

I have put the IP address of 192.168.0.22 into the /etc/defaultrouter file and again the same IP address in /etc/hostname.e1000g0 file
Next I typed in 'init 6' to reboot Solaris 10. Once Solaris 10 is up again I can successfully ping the address of 192.168.0.22. But my router obviously needs a password as it is a WPA protected domestic router. This means programs like WGET which needs an URL address to download data doesnt work ATM. Does anyone know what to do to complete the tasks of making my server internet ready. Thanks in advance for any help given to me
Regards
Moderator's Comments:
Mod Comment
Please wrap all code, files/data, input & output/errors in CODE tags.
It makes it easier to read and preserves multiple spaces for indenting or fixed-width data.
# 2  
Old 05-11-2019
Well you've confused me!

Are you trying to connect from your SPARC box to your router through wi-fi? If so, you need a wi-fi interface on your SPARC.

Otherwise.............

You should be able to use the ifconfig command to display the ip address of the host (SPARC box) which will tell you the ip address which it's using.

The file /etc/hostname.e1000g0 should contain only the host name of the SPARC box (not the ip address).

The file /etc/hosts should contain the host name and ip address of the SPARC box (and any other foreign hosts ip addresses that you want it to be able to look up locally without using DNS). One record MUST have the host box name+ip adress.

The /etc/defaultrouter file contains just a single ip address of the default router on the first line of the file, left justified, nothing else. This tells the host where to send requests for connections outside the local network, ie, the internet. Don't forget you'll need DNS servers configured for that too.

If you have all this correctly configured and it still doesn't connect then post back here.

Last edited by hicksd8; 05-11-2019 at 01:06 PM..
This User Gave Thanks to hicksd8 For This Post:
# 3  
Old 05-11-2019
Hi there. thanks for your reply.


To clarify the situation I have a WIFI extender plugged into the domestic 240v mains wall socket. The device itself has been configured to be a bridge between my domestic ISP modem/router and any device that uses wifi. The wifi extender has 2 female RJ45 ethernet sockets on the deive to allow ethernet connection between the Wifi extender and the proposed machine (in this case my SPARC server. The Wifi extender connects to my Router box via wifi.


WhenI first installed Solaris 10 I had to install the ethernet port

Moderator's Comments:
Mod Comment
Please wrap all code, files/data, input & output/errors in CODE tags.
It makes it easier to read and preserves multiple spaces for indenting or fixed-width data.


Code:
(ifconfig e1000g0 plumb up)


When this was done there was no IP address assigned to the e1000g0 device. So I had to assign an IP address that my router box could accept


Code:
ifconfig 192.168.0.22 netmask 255.255.255.0 broadcast + up




I shall rectify the /etc/hosts and the /etc/hostname.e1000g0 files. If this process fails I shall return back to you


I hope I have clarified myself more with this post!
# 4  
Old 05-11-2019
Yes, ok, I get that now.

If the SPARC box's ip address is 192.168.0.22 then that DOESN'T go into /etc/defaultrouter.

The ip address that you put in /etc/defaultrouter is the ip address of your router/gateway, whatever that is.

So if I'm Solaris, when I'm booting I go:

1. Look for /etc/hostname.* files and when I find /etc/hostname.e1000g0 I say, ok, that tells me that this hardware has a e1000g0 ethernet interface. I need to plumb that. If e1000g0 doesn't exist on this hardware, that's a fail.
2. Read this /etc/hostname.e1000g0 to get the host name that I am to the outside world (on this interface) eg, Jupiter. Apply that hostname to this interface. I cannot read my hostname from this file, that's a fail.
3. Read /etc/hosts and look for Jupiter and retrieve what ip address I need to be on this interface. I cannot read my own ip address from /etc/hosts, that's a fail.
4. Read the ip address from /etc/defaultrouter so that I know where to send requests for nodes outside my local network. If I can't do that, I can only talk locally.
5. What are my DNS server(s). Are any configured? If not I only know about those hosts listed in /etc/hosts and cannot resolve any other names.

That's how it goes.

Code:
# ifconfig -a

should list most of your network interface configuration.
This User Gave Thanks to hicksd8 For This Post:
# 5  
Old 05-11-2019
Also, have you tried putting a different machine (non-Solaris) on this wi-fi extended LAN connection eg, a Windows box, to check that the remote connection actually works?
# 6  
Old 05-11-2019
Quote:
Originally Posted by hicksd8
The ip address that you put in /etc/defaultrouter is the ip address of your router/gateway, whatever that is.
More-than-likely the gateway is 192.168.0.1 in this case.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Configuring NIC device in Solaris 9 SPARC OS [QEMU]

I have Xubuntu 18.04 installed on my PC. I have created a 10G .img image file created by QEMU-IMG. I have installed inside of it Solaris 9 SPARC edition . If I try and mount the image file as a loop device (using sudo losetup /dev/loop0 /path-to-img-file) I can only mount it as read only. ... (1 Reply)
Discussion started by: alphatron150
1 Replies

2. Solaris

Solaris 10 internet connection setup

I have a solaris 10 on my laptop. I want to let my internet work. Command: ifconfig -a Return: lo: ... e1000g0: ... I dont know what else to setup so when I open firefox, I have access to internet. Can anyone show me how to do the setting? Thanks a lot. (1 Reply)
Discussion started by: dbahaha
1 Replies

3. Solaris

Internet connection failed on solaris 10

Hi, i am new bie on solaris ,i just installed it on vmware. i tryed to connect to the internet from solaris but it failed. during the installation i ignore the DHCP and i assign a fixed ip address to the host. is that has an impact on internet access ? and if so how to add another interface... (3 Replies)
Discussion started by: Mirsol
3 Replies

4. UNIX for Dummies Questions & Answers

can I emulate solaris/sparc on virtualbox? Or other emulator to run solaris for sparc in my win7 PC?

Hi Gurus can I emulate solaris/sparc on virtualbox? Or other emulator to run solaris for sparc in my win7 PC? regards, Israel. (9 Replies)
Discussion started by: iga3725
9 Replies

5. Solaris

share internet connection in solaris

Hi, how can i share internet connection to LAN in Solaris? (3 Replies)
Discussion started by: harishindn
3 Replies

6. Solaris

Solaris 10 ftp connection problem (connection refused, connection timed out)

Hi everyone, I am hoping anyone of you could help me in this weird problem we have in 1 of our Solaris 10 servers. Lately, we have been having some ftp problems in this server. Though it can ping any server within the network, it seems that it can only ftp to a select few. For most servers, the... (4 Replies)
Discussion started by: labdakos
4 Replies

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

8. Solaris

solaris 10 isnt detecting my internet connection

I installed solaris 10 on my desktop pc, however it does not detect my internet connection. IM also running redhad and that detects it automatically, so i guess i have to go in manually and change something. Im new to all this however and i have no idea how to proceed. (5 Replies)
Discussion started by: stride6
5 Replies

9. UNIX for Dummies Questions & Answers

solaris internet connection

Hi everyone, I just installed Solaris 10 in my PC. However, once I finished installing it, I lost my internet connection. When I switch to windows, the internet can run smoothly. Does anyone know how to set up internet connection in Solaris ? I am so sorry, I am new in UNIX (7 Replies)
Discussion started by: qqq
7 Replies
Login or Register to Ask a Question