?
Solved

Probably a broad question

Posted on 2003-03-29
34
Medium Priority
?
397 Views
Last Modified: 2013-12-27
I cant seem to find an answer anywhere.  I have a Sun SPARCclassic, SunOS 5.7.  I am trying to get it on to my network.

Currently it is plugged into my router/gateway, the le0 is active.  default interface is multicast the gateway is set to Classic or 127.0.0.1 dont know why I want the gateway set to 192.168.1.1 which is the router/gateway IP address, I want to set the Sparc to an IP of 192.168.1.103.  Everthing functions well.

Can someone please help.  I have setup  Linux system, for internet access and hosting, but this is nothing like that not the same files/filenames.

thanks
0
Comment
Question by:dmccullough1972
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 22
  • 12
34 Comments
 

Author Comment

by:dmccullough1972
ID: 8232113
Okay I have just discovered something.  I can hit other computers on my network.  I can FTP over to another computer and I can ping the other computers.  What I dont know is what the Classics IP address is, how do I get to the internet, I cant ping yahoo.com.
0
 
LVL 2

Accepted Solution

by:
soupdragon earned 300 total points
ID: 8232419
Network address is specified at bootup by two files, /etc/hostname.le0 which will contain the hostname. This in turn looks at /etc/hosts and matches the hostname above with a corresponding IP address. e.g. if your host is called puma:

# cat /etc/hostname.le0
puma

# cat /etc/hosts
127.0.0.1     localhost loghost
192.168.1.103 puma

To make an IP address change on the fly - not using le0 since we are changing it!

# ipconfig le0 down
# ipconfig le0 192.168.1.103 netmask 255.255.255.0 broadcast +
# ipconfig le0 up

# netstat -a
Lists your interfaces, IP addresses and netmask

Default gateway set during boot from file /etc/defaultrouter

# netstat -rn
Lists routes

# route add default 192.168.1.1 1
Adds default gateway on the fly

Are the addresses you can ping only on the 192.168.1? network - if so your gateway is wrong as you suspect. Do you  have a firewall? - if so you may need to add 192.168.1.103 to the rules.

SD
0
 

Author Comment

by:dmccullough1972
ID: 8232792
Where is ipconfig?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:dmccullough1972
ID: 8232835
I found it, its one that i have goofed up a few times. ifconfig.

I can ping and hit other computers in the 192.168.1 area.  but getting outside is still not working.  there is no firewall up at the moment.

Here is some output.
# netstat -a
UDP
   Local Address         Remote Address     State
-------------------- -------------------- -------
      *.route                               Idle
      *.*                                   Unbound
      *.sunrpc                              Idle
      *.*                                   Unbound
      *.32771                               Idle
      *.name                                Idle
      *.biff                                Idle
      *.talk                                Idle
      *.time                                Idle
      *.echo                                Idle
      *.lockd                               Idle
      *.discard                             Idle
      *.daytime                             Idle
      *.chargen                             Idle
      *.32772                               Idle
      *.32773                               Idle
      *.32774                               Idle
      *.32775                               Idle
      *.32776                               Idle
      *.32777                               Idle
      *.32778                               Idle
      *.32779                               Idle
      *.syslog                              Idle
      *.*                                   Unbound

TCP
   Local Address        Remote Address    Swind Send-Q Rwind Recv-Q  State
-------------------- -------------------- ----- ------ ----- ------ -------
      *.*                  *.*                0      0     0      0 IDLE
      *.sunrpc             *.*                0      0     0      0 LISTEN
      *.*                  *.*                0      0     0      0 IDLE
      *.ftp                *.*                0      0     0      0 LISTEN
      *.telnet             *.*                0      0     0      0 LISTEN
      *.shell              *.*                0      0     0      0 LISTEN
      *.login              *.*                0      0     0      0 LISTEN
      *.exec               *.*                0      0     0      0 LISTEN
      *.uucp               *.*                0      0     0      0 LISTEN
      *.finger             *.*                0      0     0      0 LISTEN
      *.time               *.*                0      0     0      0 LISTEN
      *.echo               *.*                0      0     0      0 LISTEN
      *.discard            *.*                0      0     0      0 LISTEN
      *.daytime            *.*                0      0     0      0 LISTEN
      *.chargen            *.*                0      0     0      0 LISTEN
      *.32771              *.*                0      0     0      0 LISTEN
      *.32772              *.*                0      0     0      0 LISTEN
      *.lockd              *.*                0      0     0      0 LISTEN
      *.32773              *.*                0      0     0      0 LISTEN
      *.32774              *.*                0      0     0      0 LISTEN
      *.fs                 *.*                0      0     0      0 LISTEN
      *.32775              *.*                0      0     0      0 LISTEN
      *.printer            *.*                0      0     0      0 LISTEN
      *.smtp               *.*                0      0     0      0 LISTEN
puma.telnet          router.4688          64181      0  9254      0 ESTABLISHED
      *.*                  *.*                0      0     0      0 IDLE

# netstat -rn
Routing Table:
  Destination           Gateway           Flags  Ref   Use   Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.1.0          192.168.1.101         U        3      1  le0
224.0.0.0            192.168.1.101         U        3      0  le0
default              192.168.1.1           UG       0      0  
127.0.0.1            127.0.0.1             UH       0      9  lo0

looks like I screwed something up
0
 

Author Comment

by:dmccullough1972
ID: 8232838
Also when I rebooted the system I got two messages.  

Hostname:  Classic
Setting default interface for multicast:  add net 224.0.0.0:  gateway Classic
Classic:  bad value

???? huh I thought I changed all that
0
 
LVL 2

Expert Comment

by:soupdragon
ID: 8233492
Looks like you have your IP address set to 192.168.1.101

If you make the changes dynamically you still hae to make the changes to the config files or else it will revert to old settings on a reboot.

Sorry - that should read ifconfig not ipconfig - I'm getting confused with Windows!!

What are the contents of /etc/hosts and /etc/hostname.le0. The /etc/defaultrouter file should only contain the ip address 192.168.1.1.

What does 'ifconfig -a' say?

SD
0
 

Author Comment

by:dmccullough1972
ID: 8233802
Heres some things

#
# Internet host table
#
127.0.0.1       localhost loghost
192.168.1.1     router
192.168.1.100   imac
192.168.1.102   mac
192.168.1.103   dan-laptop
192.168.1.101   puma

$ cat /etc/hostname.le0
puma

It says there is no /etc/defaultrouter

# ifconfig -a
lo0: flags=849<UP,LOOPBACK,RUNNING,MULTICAST> mtu 8232
        inet 127.0.0.1 netmask ff000000
le0: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
        inet 192.168.1.101 netmask ffffff00 broadcast 192.168.1.255
        ether 8:0:20:1d:68:6
0
 

Author Comment

by:dmccullough1972
ID: 8235483
Awesome !!!! Great.  One more question?

I can get anywhere using IP addresses.  I cant get anywhere using domain names.

Help ?
0
 
LVL 2

Expert Comment

by:soupdragon
ID: 8235617
puma was just an example it should really be your own hostname here since it's your primary address. I'm also assuming you want address 192.168.1.101 not 192.168.1.103.

I'm guessing your machine is called 'Classic' - check by calling 'uname -n'.

So /etc/hostname.le0 should read
Classic

/etc/hosts
...
192.168.1.101   Classic
...

/etc/defaultrouter
192.168.1.1

To use names rather then IP addresses, make the following changes.

/etc/nsswitch.conf
....
hosts: files dns
....

/etc/resolv.conf
domain your.domain.com
nameserver <IP Address of primary nameserver>
nameserver <IP Address of secondary nameserver>

reboot
0
 

Author Comment

by:dmccullough1972
ID: 8238231
That still didnt work.  I can still ping IP but no names.

this is what I setup

/etc/resolv.conf
domain www.some-net.com
nameserver 66.128.255.32
nameserver 141.25.85.32
domain www.other.com
nameserver 66.128.255.32
nameserver 141.25.85.32

I hate to keep bothering you.
So if you dont mind are there some forums or mailing lists where I can ask these questions, where people are patient with someone just starting out.
0
 
LVL 2

Expert Comment

by:soupdragon
ID: 8242117
You can't have two domain entries in /etc/resolv.conf - should be your (or your ISPs) domain here only. All this does is automatically add '.yourdomain.com' to non-qualified addresses.

i.e.
'ping www.hotmail.com' - goes to hotmail
'ping www' - will try to ping www.yourdomain.com

Did you make the change to /etc/nsswitch.conf to add dns to the files lookup entry?

Are you able to ping 66.128.255.32 (odd address!) and 141.25.85.32?

If you type nslookup what does it say?

Sun has a full set of documentation available on-line at http://docs.sun.com 

DNS is covered here
http://docs.sun.com/db/doc/806-1390/806-1390#hic

0
 

Author Comment

by:dmccullough1972
ID: 8242223
Okay this evening I cant ping 66.128.255.32 or 141.25.85.32.  If I try www or mail then I get www.mydomain.com is alive.

in /etc/nsswitch.conf
host:  file dns

# nslookup
Authoritative answers can be found from:
(root)  nameserver = G.ROOT-SERVERS.NET
(root)  nameserver = H.ROOT-SERVERS.NET
(root)  nameserver = I.ROOT-SERVERS.NET
(root)  nameserver = J.ROOT-SERVERS.NET
(root)  nameserver = K.ROOT-SERVERS.NET
(root)  nameserver = L.ROOT-SERVERS.NET
(root)  nameserver = M.ROOT-SERVERS.NET
(root)  nameserver = A.ROOT-SERVERS.NET
(root)  nameserver = B.ROOT-SERVERS.NET
(root)  nameserver = C.ROOT-SERVERS.NET
(root)  nameserver = D.ROOT-SERVERS.NET
(root)  nameserver = E.ROOT-SERVERS.NET
(root)  nameserver = F.ROOT-SERVERS.NET
A.ROOT-SERVERS.NET      internet address = 198.41.0.4
B.ROOT-SERVERS.NET      internet address = 128.9.0.107
C.ROOT-SERVERS.NET      internet address = 192.33.4.12
D.ROOT-SERVERS.NET      internet address = 128.8.10.90
E.ROOT-SERVERS.NET      internet address = 192.203.230.10
F.ROOT-SERVERS.NET      internet address = 192.5.5.241
G.ROOT-SERVERS.NET      internet address = 192.112.36.4
H.ROOT-SERVERS.NET      internet address = 128.63.2.53
I.ROOT-SERVERS.NET      internet address = 192.36.148.17
J.ROOT-SERVERS.NET      internet address = 192.58.128.30
K.ROOT-SERVERS.NET      internet address = 193.0.14.129
L.ROOT-SERVERS.NET      internet address = 198.32.64.12
M.ROOT-SERVERS.NET      internet address = 202.12.27.33
*** Can't find server name for address 66.80.146.130: No information
Authoritative answers can be found from:
(root)  nameserver = F.ROOT-SERVERS.NET
(root)  nameserver = G.ROOT-SERVERS.NET
(root)  nameserver = H.ROOT-SERVERS.NET
(root)  nameserver = I.ROOT-SERVERS.NET
(root)  nameserver = J.ROOT-SERVERS.NET
(root)  nameserver = K.ROOT-SERVERS.NET
(root)  nameserver = L.ROOT-SERVERS.NET
(root)  nameserver = M.ROOT-SERVERS.NET
(root)  nameserver = A.ROOT-SERVERS.NET
(root)  nameserver = B.ROOT-SERVERS.NET
(root)  nameserver = C.ROOT-SERVERS.NET
(root)  nameserver = D.ROOT-SERVERS.NET
(root)  nameserver = E.ROOT-SERVERS.NET
A.ROOT-SERVERS.NET      internet address = 198.41.0.4
B.ROOT-SERVERS.NET      internet address = 128.9.0.107
C.ROOT-SERVERS.NET      internet address = 192.33.4.12
D.ROOT-SERVERS.NET      internet address = 128.8.10.90
E.ROOT-SERVERS.NET      internet address = 192.203.230.10
F.ROOT-SERVERS.NET      internet address = 192.5.5.241
G.ROOT-SERVERS.NET      internet address = 192.112.36.4
H.ROOT-SERVERS.NET      internet address = 128.63.2.53
I.ROOT-SERVERS.NET      internet address = 192.36.148.17
J.ROOT-SERVERS.NET      internet address = 192.58.128.30
K.ROOT-SERVERS.NET      internet address = 193.0.14.129
L.ROOT-SERVERS.NET      internet address = 198.32.64.12
M.ROOT-SERVERS.NET      internet address = 202.12.27.33
*** Can't find server name for address 64.141.71.91: No information
Authoritative answers can be found from:
(root)  nameserver = C.ROOT-SERVERS.NET
(root)  nameserver = D.ROOT-SERVERS.NET
(root)  nameserver = E.ROOT-SERVERS.NET
(root)  nameserver = F.ROOT-SERVERS.NET
(root)  nameserver = G.ROOT-SERVERS.NET
(root)  nameserver = H.ROOT-SERVERS.NET
(root)  nameserver = I.ROOT-SERVERS.NET
(root)  nameserver = J.ROOT-SERVERS.NET
(root)  nameserver = K.ROOT-SERVERS.NET
(root)  nameserver = L.ROOT-SERVERS.NET
(root)  nameserver = M.ROOT-SERVERS.NET
(root)  nameserver = A.ROOT-SERVERS.NET
(root)  nameserver = B.ROOT-SERVERS.NET
A.ROOT-SERVERS.NET      internet address = 198.41.0.4
B.ROOT-SERVERS.NET      internet address = 128.9.0.107
C.ROOT-SERVERS.NET      internet address = 192.33.4.12
D.ROOT-SERVERS.NET      internet address = 128.8.10.90
E.ROOT-SERVERS.NET      internet address = 192.203.230.10
F.ROOT-SERVERS.NET      internet address = 192.5.5.241
G.ROOT-SERVERS.NET      internet address = 192.112.36.4
H.ROOT-SERVERS.NET      internet address = 128.63.2.53
I.ROOT-SERVERS.NET      internet address = 192.36.148.17
J.ROOT-SERVERS.NET      internet address = 192.58.128.30
K.ROOT-SERVERS.NET      internet address = 193.0.14.129
L.ROOT-SERVERS.NET      internet address = 198.32.64.12
M.ROOT-SERVERS.NET      internet address = 202.12.27.33
*** Can't find server name for address 66.80.146.131: No information
*** Default servers are not available
#
0
 

Author Comment

by:dmccullough1972
ID: 8242272
I keep getting Classic sendmail:  unable to qualify my own domain name (Classic) -- using short name
0
 
LVL 2

Expert Comment

by:soupdragon
ID: 8242277
Can you ping anything outside of your subnet yet?

Your nsswitch.conf should say 'files' not 'file'

What are 66.80.146.130 64.141.71.91 66.80.146.131 - are they in your resolv.conf file?

Looks like DNS has already been set up in server mode on your system! Does 'ps -ef | grep named' return anything other than your grep command?
0
 
LVL 2

Expert Comment

by:soupdragon
ID: 8242320
To stop the sendmail message put

192.168.1.101   Classic  Classic.your.domainname

in /etc/hosts - this gives it a domainname for sendmail to work on.
0
 

Author Comment

by:dmccullough1972
ID: 8242329
question I cant find my /etc/named.conf or /etc/named.boot file

how can I see if I'm BIND 8.1 or 4.9?
0
 

Author Comment

by:dmccullough1972
ID: 8242334
# /usr/sbin/named-bootconf
/etc/named.boot does not exist
0
 
LVL 2

Expert Comment

by:soupdragon
ID: 8242362
You don't need them if you are running as a client, you only need nsswitch.conf and resolv.conf. What I don't understand is where it is getting info about root servers if it can't see any of the name servers you have defined. Only a DNS server knows about the root servers, a client should't know about them unless it can see a server.
0
 

Author Comment

by:dmccullough1972
ID: 8242380
Sorry let me list the contents of a few files.

# cat /etc/nsswitch.conf
#
# /etc/nsswitch.files:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

passwd:     files
group:      files
hosts:      files dns
networks:   files
protocols:  files
rpc:        files
ethers:     files
netmasks:   files      
bootparams: files
publickey:  files
# At present there isn't a 'files' backend for netgroup;  the system will
#   figure it out pretty quickly, and won't use netgroups at all.
netgroup:   files
automount:  files
aliases:    files
services:   files
sendmailvars:   files

# cat /etc/hosts
#
# Internet host table
#
127.0.0.1       localhost loghost      
192.168.1.1     router
192.168.1.100   imac
192.168.1.102   mac
192.168.1.103   dan-laptop
192.168.1.101   Classic
192.168.1.101   Classic Classic.mccullough-net.com

# cat /etc/resolv.conf
domain mccullough-net.com
nameserver 127.0.0.1
nameserver 66.80.146.130
nameserver 64.141.71.91

I still cant ping anything this evening an nslookup basically returns what I showed above.  I was going through the Sun DNS guide that you sent the link for and that I was running through it correcting stuff.  They said to put no more then three nameservers in the resolv.conf so I did they also had 127.0.0.1 in the first one.  Then I moved on to named.conf, except their wasnt one, and so I went to named.boot, none either.  To me that doesnt sound good.
0
 

Author Comment

by:dmccullough1972
ID: 8242405
I dont know the life this server had before my purchase.  I got it for $50 in an ISP selloff, and really have left it in the back corner.  I dont think this would have been a DNS server, it doesnt look to have BIND installed on it.  I did a search for /etc/init.d/named  and there was no file found.

I get odd things on the startup, I still get it "Setting default interface for multicast:  add net 244.0.0.0: gateway Classic syslog service starting"  Yet I cant find where that is setting that or if it even matters.

If you want I can tell you how to hit the box and you can poke around theres nothing on here of importance I was planning on settng this up as a mail server since my wifes ISP is dropping the ball on a regular basis.
0
 

Author Comment

by:dmccullough1972
ID: 8242420
I dont know the life this server had before my purchase.  I got it for $50 in an ISP selloff, and really have left it in the back corner.  I dont think this would have been a DNS server, it doesnt look to have BIND installed on it.  I did a search for /etc/init.d/named  and there was no file found.

I get odd things on the startup, I still get it "Setting default interface for multicast:  add net 244.0.0.0: gateway Classic syslog service starting"  Yet I cant find where that is setting that or if it even matters.

If you want I can tell you how to hit the box and you can poke around theres nothing on here of importance I was planning on settng this up as a mail server since my wifes ISP is dropping the ball on a regular basis.
0
 

Author Comment

by:dmccullough1972
ID: 8242428
I dont know the life this server had before my purchase.  I got it for $50 in an ISP selloff, and really have left it in the back corner.  I dont think this would have been a DNS server, it doesnt look to have BIND installed on it.  I did a search for /etc/init.d/named  and there was no file found.

I get odd things on the startup, I still get it "Setting default interface for multicast:  add net 244.0.0.0: gateway Classic syslog service starting"  Yet I cant find where that is setting that or if it even matters.

If you want I can tell you how to hit the box and you can poke around theres nothing on here of importance I was planning on settng this up as a mail server since my wifes ISP is dropping the ball on a regular basis.
0
 

Author Comment

by:dmccullough1972
ID: 8242461
I dont know the life this server had before my purchase.  I got it for $50 in an ISP selloff, and really have left it in the back corner.  I dont think this would have been a DNS server, it doesnt look to have BIND installed on it.  I did a search for /etc/init.d/named  and there was no file found.

I get odd things on the startup, I still get it "Setting default interface for multicast:  add net 244.0.0.0: gateway Classic syslog service starting"  Yet I cant find where that is setting that or if it even matters.

If you want I can tell you how to hit the box and you can poke around theres nothing on here of importance I was planning on settng this up as a mail server since my wifes ISP is dropping the ball on a regular basis.
0
 

Author Comment

by:dmccullough1972
ID: 8242602
Sorry about all those extra posts, it seemed to keep my post information.

Anyway I was playing around and nsswitch and took dns out and now I can ping IPs outside my subnet.
0
 
LVL 2

Expert Comment

by:soupdragon
ID: 8244248
You only need 1 entry for Classic in the hosts file - the OS will just find and use the first one so would not get to your second entry.

remove the line
192.168.1.101   Classic

leave
192.168.1.101   Classic Classic.mccullough-net.com

This will stop the email error messages

The nameserver 127.0.0.1 entry should be removed from your resolv.conf - this is used to tell a host that it is running named locally which your's currently isn't. Should read.

domain mccullough-net.com
66.80.146.130
64.50.168.187
64.50.168.188

nsswitch.conf has no function when pinging by IP address -something else must have changed to allow you to ping externally.

To receive mail on this server you will also need a DNS MX record and reverse record that either points to your sun server or a server that will forward mail to it. Currently it points to dns.dnsmadeeasy.com which doesn't seem to be a valid server name.

The message:

Setting default interface for multicast:  add net 244.0.0.0: gateway Classic
syslog service starting

is entirely legitimate - the 224.0.0.0 is a loopback address for multicast - nothing to do with normal IP routing. You will see it as an extra entry in 'ifconfig -a'
0
 

Author Comment

by:dmccullough1972
ID: 8245514
I could ping externally when I removed dns out of nsswitch under hosts:
0
 
LVL 2

Expert Comment

by:soupdragon
ID: 8245556
nsswitch is only used when pinging by name - if you ping by IP address it never goes anywhere near nsswitch.conf
0
 

Author Comment

by:dmccullough1972
ID: 8245566
I could ping externally when I removed dns out of nsswitch under hosts:
0
 

Author Comment

by:dmccullough1972
ID: 8245568
I could ping externally when I removed dns out of nsswitch under hosts:
0
 

Author Comment

by:dmccullough1972
ID: 8245628
Is there a place where I can pick up a fresh copy of Solaris 7.

I just went in and /usr/local is missing.
0
 

Author Comment

by:dmccullough1972
ID: 8245670
Is there a place where I can pick up a fresh copy of Solaris 7.

I just went in and /usr/local is missing.
0
 
LVL 2

Expert Comment

by:soupdragon
ID: 8245680
I don't think so, you can download the SPARC Solaris 9 CD images from www.sun.com in the downloads area (3 CDs). What makes you think there should be anything in /usr/local it is only used for downloaded shareware packages - not core Solaris files.

0
 
LVL 2

Expert Comment

by:soupdragon
ID: 8245711
I don't think so, you can download the SPARC Solaris 9 CD images from www.sun.com in the downloads area (3 CDs). What makes you think there should be anything in /usr/local it is only used for downloaded shareware packages - not core Solaris files.

0
 
LVL 2

Expert Comment

by:soupdragon
ID: 8245717
I don't think so, you can download the SPARC Solaris 9 CD images from www.sun.com in the downloads area (3 CDs). What makes you think there should be anything in /usr/local it is only used for downloaded shareware packages - not core Solaris files.

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month9 days, 19 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question