[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference kernel::sun_users

Title:Ask your Sun questions here
Moderator:COMICS::BEDDALL
Created:Mon Feb 26 1996
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:518
Total number of notes:1624

513.0. "need help w/ network conf" by STAR::DMORIN () Wed Jan 08 1997 20:19

T.RTitleUserPersonal
Name
DateLines
513.1I like this one...AZUR::HUREZConnectivity & Computing Services @VBE. DTN 828-5159Fri Jan 10 1997 15:1421
513.2Getting closer. Can see new SMC card.STAR::DMORINFri Jan 31 1997 20:3018
    
    I brought a SMC EtherEZ card and I can at least see it.  I am able to
    ping localhost and my hostname but I can't seem to get further than my
    own system.  I have the e-net card connected to a twisted pair and that
    is connected one of those converter boxes that has thin wire on it. 
    The leds are showing activity but I can't ping other systems on my
    network.  Nor can other systems ping me.
    
    When I run IFCONFIG SMC0 it sees the ip address correctly, the netmask
    is fffff000 but the broadcast is 16.255.255.255.  I would expect the
    broadcast address to be 16.30.176.255. Maybe that's my problem?
    
    Any ideas???
    
    Thanks 
    Diane
    
    diane
513.3CFSCTC::SMITHTom Smith MRO1-3/D12 dtn 297-4751Sat Feb 01 1997 18:5980
    This inforamation is from Solaris/SPARC, but I'm pretty sure it's the
    same for Solaris/Intel.
    
    Your netmask doesn't look right. If your address is 16.30.176.100, and
    your netmask _should_ be 255.255.255.0, your ifconfig output should
    look like:
    
    smc0: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
            inet 16.30.176.100 netmask ffffff00 broadcast 16.30.176.255
    
    If not, first check /etc/inet/netmasks. You should have an entry:
    
    	16.0.0.0        255.255.255.0
    
    Once that's there, issue the following command:
    
    	ifconfig -au netmask + broadcast +
    
    That should make the ifconfig output look as above. If so, that part
    should be all set. That command is run at boot time from
    /etc/init.d/inetsvc.
    
    Now check your router:
    
    $ netstat -r
    
    Routing Table:
      Destination           Gateway           Flags  Ref   Use   Interface
    -------------------- -------------------- ----- ----- ------ ---------
    localhost            localhost             UH       0   9783  lo0
    16.30.176            myhost                U        3  16208  smc0
    224.0.0              myhost                U        3      0  smc0
    default              myrouter.site.dec.com UG       0   2912
    
    If you have an /etc/inet/networks or an NIS networks map, the network
    addresses above may be names. If you do not have DNS configured
    (/etc/resolv.conf and /etc/nsswitch.conf), some of the host names may
    be IP addresses. If you have a default gateway router, the "default"
    line should show up above. Otherwise, it should have started routed and
    you'll have all kinds of stuff in there instead. If you only have one
    router between your subnet and the rest of the world, set a default
    router in /etc/defaultrouter. The file should be a single line
    containing the IP address of your router:
    
    	16.30.176.254	[or whatever]
    
    Issue:
    
    	/usr/sbin/route -f add default 16.30.176.254 1
    
    to apply it immediately and confirm with another "netstat -r". As long
    as /etc/defaultrouter exists, the same command will be run from
    /etc/init.d/inetinit when you re-boot.
    
    You should now be able to ping other hosts using IP addresses and they
    should be able to ping you. If you can do that, but you can't ping
    other hosts by name, do your DNS configuration in /etc/resolv.conf and
    /etc/nsswitch.conf.
    
    You will probably also need an /etc/nodename and/or an
    /etc/hostname.smc0 (both doesn't hurt) each containing your fully
    qualified hostname:
    
    	myhost.site.dec.com
    
    Also make sure that the /etc/hosts entry for your host (and all others)
    has the fully qualified name first:
    
    	16.30.176.100	myhost.site.dec.com	myhost
    
    After re-booting with all that in place, confirm that:
    
    	 "hostname" returns "myhost.site.dec.com"
    	 ifconfig -a and netstat -r return results as above
    	 you can ping other hosts by IP address and by name
    	 other hosts can ping you by IP address
    	 other hosts can ping you by name (if not, check that you're
    		registered in DNS)
    
    -Tom                               
513.4getting closerSTAR::DMORINMon Feb 03 1997 20:5718
    Tom,
    
    Thanks for all the input.
    
    I fixed the netmask and broadcast.  Ifconfig now looks right.  I setup
    the default route and did the netstat -r and it looks correct. 
    However, I cannot ping to any other system.  I've checked the converter
    box and cables by using them on a different system and they worked fine
    so I know that the part is ok.  When I try to ping either using an IP
    address or name (provided I put it in /etc/host) I get "no answer". 
    I'm able to ping myself and localhost.  I don't have a /etc/resolv.conf
    and have not touched /etc/nsswitch.conf.  Could this be why I can't
    ping out using IP addresses?  Another thought someone else had was some
    sort of licensing issue.  I couldn't find anything in the book about
    it.
    
    Thanks again
    Diane
513.5CFSCTC::SMITHTom Smith MRO1-3/D12 dtn 297-4751Tue Feb 04 1997 17:0812
    /etc/resolv.conf and /etc/nsswitch.conf should only affect name
    lookups, not explicit IP addresses, so ping 16.x.y.z should work,
    especially to anything in your subnet.

    Stranger things than licensing issues have happened, but I'd be
    surprised if that's it. More likely would be hardware problems (cables,
    T's and terminators, repeaters, etc.), or the kernel support/configuration
    for that adapter. I know it's a dumb question, but do you have a T and
    terminator on the BNC connector of the 10-BaseT-to-thinwire converter?
    If not, try putting one on. If you do have one, try removing it.
    
    -Tom
513.6T and terminator there.STAR::DMORINTue Feb 04 1997 17:1914
    Ok so I won't worry about the /etc/resolv.conf and /etc/nsswitch just
    yet.
    
    Yes I have a T and terminator on the BNC connector on the converter
    box.  If I remove them the green led goes out which means it I've lost
    connection to a hub.  
    
    Do I need to modify a SMC.CONF file?  I been tinkering with it and I
    modified it to reflect the IRQ, which is 5 on the board, but 3 in the
    file.  Should I be using/modifying a SMC.CONF file?
    
    Thanks again
    diane 
    
513.7CFSCTC::SMITHTom Smith MRO1-3/D12 dtn 297-4751Wed Feb 05 1997 04:234
    Got me there, Diane. smc.conf must be specific to that driver. Sorry.
    No other ideas off the top of my head. 
    
    -Tom
513.8I'm going to re-installSTAR::DMORINWed Feb 05 1997 13:0112
    Thanks Tom,
    
    I think I'm going to re-install the software.  The first time I did the
    installation I didn't have the SMC card in but rather a DE450 and
    Solaris doesn't support that card.  So, maybe re-installing with the
    card in from the start will help.
    
    I was reading in one of my manuals that Solaris doesn't support PnP
    is that true?
    
    d
    
513.9still at it.STAR::DMORINThu Feb 06 1997 14:4310
    Well, I re-installed the software and every once in a while I can ping
    the gateway.  I had someone from telecom looking at it with me and she
    thinks there's still a problem with netstat -r, specically the gateway
    part.  Mine looks like
    
    default 16.30.176.200 ug 0 0 (there's nothing in for interface)
    
    Should there be something under the interface?
    
    diane	
513.10Got it!STAR::DMORINThu Feb 06 1997 20:417
    We have lift off!!!
    
    Finally got the solaris on the net.  After re-installing and
    reconfiguring the SMC card it now works.  
    
    Thanks again,
    Diane
513.11Congratulations!CFSCTC::SMITHTom Smith MRO1-3/D12 dtn 297-4751Sun Feb 09 1997 20:181