LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 08-24-2004, 04:24 AM   #16
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040

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)
 
Old 08-24-2004, 04:33 AM   #17
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
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?
 
Old 08-24-2004, 04:46 AM   #18
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
According to your nic installation the interface is named rtls0. Try ifconfig rtls0, to see if it shows up.
 
Old 08-24-2004, 04:51 AM   #19
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
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.
 
Old 08-24-2004, 04:59 AM   #20
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Take a look at: http://access1.sun.com/technotes/01146.html to see if you can correct that devfsadm error.
 
Old 08-24-2004, 05:17 AM   #21
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
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".
 
Old 08-24-2004, 05:27 AM   #22
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
The only entry in /etc/hostname.rtls0 must be "solaris" (without the quotes)
 
Old 08-24-2004, 05:38 AM   #23
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
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

Last edited by subaruwrx; 08-24-2004 at 05:44 AM.
 
Old 08-24-2004, 05:48 AM   #24
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
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
 
Old 08-24-2004, 05:50 AM   #25
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
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?
 
Old 08-24-2004, 06:00 AM   #26
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
echo xxx.xxx.xxx.xxx > /etc/defaultrouter
where xxx.xxx.xxx.xxx is the IP of your gateway
 
Old 08-24-2004, 06:03 AM   #27
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
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
 
Old 08-24-2004, 06:15 AM   #28
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Try: route add default 192.168.0.1
 
Old 08-24-2004, 08:54 PM   #29
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by bathory
Try: route add default 192.168.0.1
thanx man it work

hmm.. why doesn't /etc/defaultrouter works?
 
Old 08-25-2004, 02:16 AM   #30
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Network Printer on Solaris 8 Pimple Solaris / OpenSolaris 9 08-26-2015 01:16 PM
Network on solaris A-fil Solaris / OpenSolaris 15 11-19-2005 10:06 PM
how to configure my network on slackware 10.0 so i can access a windows network salviadud Linux - Newbie 2 02-11-2005 01:19 PM
How to I configure gcc on Solaris ehsan Solaris / OpenSolaris 5 01-08-2003 12:18 PM
How to configure a Network everywhere fast network card under Linux Mandrake 7.2 margo256 Linux - Newbie 1 03-12-2001 10:45 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 07:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration