Solved

Stuck assigning IP

Posted on 2004-09-26
6
313 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
ID: 12156290
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
ID: 12156502
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
ID: 12156817
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

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

Expert Comment

by:yuzh
ID: 12157210
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
ID: 12158182
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSH commands for Nas4free 21 378
Generate FIPS 140-2 Public Key on Unix 5 67
text in table need to be center of the box 4 75
Control Number of Log Files -Perl 7 55
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…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.:

920 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

16 Experts available now in Live!

Get 1:1 Help Now