Solved

Stuck assigning IP

Posted on 2004-09-26
6
311 Views
Last Modified: 2013-12-27
Solaris 9 on x86:  I have a 3com 3509c  NIC in there (it's on Solaris's HCL).
It finds the NIC during installation.  However, when I try to let it get an IP (via DHCP) it cant get one.  Even though my DHCP server is working perfectly.

So I assigned an IP manually during installation.  Seems ok, but when the system rebooted, it looks for a DHCP server. Why does it do this when I specified static?

I log into the system, do an ifconfig -a.  It shows the loopback, and it shows my NIC as e1x10.
But the IP is not assigned to it.
Any ideas?
Thanks

0
Comment
Question by:dissolved
6 Comments
 

Author Comment

by:dissolved
Comment Utility
Well I got an IP assigned to the Nic.
ifconfig elxl0 inet 192.168.4.4 netmask 255.255.255.0 up

How do I specify DNS and default gateway settings?  Still curious as to why the DHCP server cant get through....
0
 
LVL 40

Accepted Solution

by:
jlevie earned 200 total points
Comment Utility
You can set the gateway by placing the IP in /etc/defaultgateway and the namservers can be specified in /etc/resolv.conf. If the install didn't already do so you man need to modify /etc/nsswitch.conf and include dns in the search list for hosts.

I don't know if it applies to Solaris with a 3c509, but on Linux you must use a 3Com diagnostic tool to disable the card's PnP mode and set it for a fixed IP. Otherwise the card won't work properly.
0
 
LVL 38

Assisted Solution

by:yuzh
yuzh earned 200 total points
Comment Utility
To setup your Solaris box as the DHCP client, please read the instructions in the following page:

http://www.experts-exchange.com/Operating_Systems/Solaris/Q_20678299.html

The instructions in the about page still apply to Solaris x 86, you need to remember to
replace the real insterface name (eg, iprb0).


PS: You might need to run "/usr/sbin/sys-unconfig" to  
      unconfigure the Solaris box and then reconfigure it.

In case of the DHCP server failed to pass the DNS server infor to the client, or the client failed to get the DNS infor from the DHCP
server. (It might be a bug!).

Manually add the 'nameserver xxx.xxx.xxx.xxx' entries to resolv.conf after booting.  and also  check the/etc/nsswitch.conf
 to make sure that the "hosts" record looks like:

hosts:     files dns [NOTFOUND=continue]


     
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:dissolved
Comment Utility
Thanks guys. Jlevie, any idea where I can get the 3com diagnostics program ?
0
 
LVL 38

Expert Comment

by:yuzh
Comment Utility
Which model of 3com are you using, have a look at:
http://support.3com.com/infodeli/tools/nic/3c905b.htm

Or do a search on the web for your versioin of NIC.
0
 
LVL 3

Assisted Solution

by:cagri
cagri earned 100 total points
Comment Utility
Could you please write your hostname in the file
/etc/hostname.elxl0 (those are "L"s not "1"s), please be careful.
Then, open your /etc/hosts file and match the specified hostname with the IP address of your preference.

It work Ok on the next reboot. I don't thing it is realted with the hardware itself.

Hope this helps.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now