LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   How to configure network with solaris? (https://www.linuxquestions.org/questions/solaris-opensolaris-20/how-to-configure-network-with-solaris-221164/)

bathory 08-24-2004 04:24 AM

If you run sys-unconfig it will unconfigure your box and reboot. During reboot it will ask you about hostname, IP address, netmask etc, to configure from scratch your network. The other approach is to manually edit a lot of files (see http://www.unixguide.net/sun/x86faq/6.8.shtml for details)

subaruwrx 08-24-2004 04:33 AM

Quote:

Originally posted by bathory
If you run sys-unconfig it will unconfigure your box and reboot. During reboot it will ask you about hostname, IP address, netmask etc, to configure from scratch your network. The other approach is to manually edit a lot of files (see http://www.unixguide.net/sun/x86faq/6.8.shtml for details)
But after that, how do I know the interface I am using?

bathory 08-24-2004 04:46 AM

According to your nic installation the interface is named rtls0. Try ifconfig rtls0, to see if it shows up.

subaruwrx 08-24-2004 04:51 AM

Quote:

Originally posted by bathory
According to your nic installation the interface is named rtls0. Try ifconfig rtls0, to see if it shows up.
no :(

I think the installation is incomplete.

Maybe I should try another driver huh.

bathory 08-24-2004 04:59 AM

Take a look at: http://access1.sun.com/technotes/01146.html to see if you can correct that devfsadm error.

subaruwrx 08-24-2004 05:17 AM

Quote:

Originally posted by bathory
Take a look at: http://access1.sun.com/technotes/01146.html to see if you can correct that devfsadm error.
thanx for the site.

I think I am getting there soon.

Now, what entry must I add into /etc/hostname.rtls0? What hostname? I'm using static ip 192.168.0.162, the hostname of this solaris is "solaris".

bathory 08-24-2004 05:27 AM

The only entry in /etc/hostname.rtls0 must be "solaris" (without the quotes)

subaruwrx 08-24-2004 05:38 AM

cool, the interface is there.

But I can't surf net. How do I configure my DNS server and gateway ip?

I remembered I did add in the entry during installation of solaris. But I don't have both of the file /etc/defaultrouter and /etc/resolv.conf

bathory 08-24-2004 05:48 AM

Edit /etc/resolv.conf to add your DNS servers.
Also check /etc/nsswitch.conf to see if you have the line: "hosts: files dns"
Perhalps you have to add the dns keyword.
Edit (or create if it doesn't exist) /etc/defaultrouter to give your gateway IP address

subaruwrx 08-24-2004 05:50 AM

Quote:

Originally posted by bathory
Edit /etc/resolv.conf to add your DNS servers.
Also check /etc/nsswitch.conf to see if you have the line: "hosts: files dns"
Perhalps you have to add the dns keyword.
Edit (or create if it doesn't exist) /etc/defaultrouter to give your gateway IP address

Ya I know I need to create manually. But I not sure what line do I have to type in.

I google-d and I have created and added "nameserver x.x.x.x" to my /etc/resolv.conf. How about defaultrouter?

bathory 08-24-2004 06:00 AM

echo xxx.xxx.xxx.xxx > /etc/defaultrouter
where xxx.xxx.xxx.xxx is the IP of your gateway

subaruwrx 08-24-2004 06:03 AM

Below is my config, it is still not working :(

Have already configured nsswitch.conf

Code:

bash-2.05# netstat -r

Routing Table: IPv4
  Destination          Gateway          Flags  Ref  Use  Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.0.0          solaris              U        1      0  rtls0
224.0.0.0            solaris              U        1      0  rtls0
localhost            localhost            UH        5    281  lo0

bash-2.05# cat /etc/resolv.conf
nameserver 165.21.83.88
bash-2.05# cat /etc/defaultrouter
192.168.0.1

Tried pinging google.com.sg

Code:

bash-2.05# ping 64.233.167.104
ICMP Host Unreachable from gateway solaris (192.168.0.162)
 for icmp from solaris (192.168.0.162) to 64.233.167.104
ICMP Host Unreachable from gateway solaris (192.168.0.162)
 for icmp from solaris (192.168.0.162) to 64.233.167.104


bathory 08-24-2004 06:15 AM

Try: route add default 192.168.0.1

subaruwrx 08-24-2004 08:54 PM

Quote:

Originally posted by bathory
Try: route add default 192.168.0.1
thanx man it work

hmm.. why doesn't /etc/defaultrouter works?

bathory 08-25-2004 02:16 AM

/etc/defaultrouter works at system startup. It reads from there the default gateway.
Glad to see you have done it.
Cheers


All times are GMT -5. The time now is 05:28 PM.