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

 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

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.

1 Like

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

(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

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!

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.

# ifconfig -a

should list most of your network interface configuration.

1 Like

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?

More-than-likely the gateway is 192.168.0.1 in this case.