Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to add and modify a NIC under solaris2.6 for x86

Posted on 2000-03-01
3
Medium Priority
?
243 Views
Last Modified: 2013-12-23
Hello,
I setup a solaris2.6 for x86. During the setup process I had a 3c905B NIC, I give IP address and mask to it. Now I added another 3c905B into the computer. My question is: How can I add this new NIC to the solaris? and how to modify the old one, e.g modify its gateway.
Please tell me detail, step by step is better. Because I can't find the ifconfig manual entry.
0
Comment
Question by:maixp
[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
  • 2
3 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 2574700
The first step after installing the second 3c905 is to escape to the "Configuration Assistant" as the system boots. From there you want to do a full scan to locate all of the hardware. Both NIC's should be in the list.

The allow the Configuration Assistant to boot the system. You should see it "adding devices" as a part of the boot. When the system is up you'll need to make an entry in /etc/hosts for the hostname and IP adddress that the new card will have. To have the IP assigned to the card at the next boot you'll need to create a second hostname file in /etc. I think it'll be /etc/hostname.elx1, but I'm not positive. Do an "ls /etc/hostname.*" and use the same name as is there with the last character changed from "0" to "1". Put the new host name that you entered into /etc/hosts in the new file. Then reboot.

Check to see that everything worked by looking at the output of "ifconfig -a", there should be lo0, elx0, and elx1 instances. The new one should have the new IP that you added to /etc/hosts. and the correct netmask if the IP is from a standard network.

To change what Solaris uses for a default gateway you put the IP of the gateway into /etc/defaultrouter. If the system was previously getting its default route from a routing advertisement (or if it's never had a default route set), /etc/defaultrouter won't exist and you'll have to create it.
0
 

Author Comment

by:maixp
ID: 2580377
Thank you very much! jlevie.
Regarding to your commment, I have installed the second NIC to my system successfully. And I modified the /etc/netmasks too, because my ip is not the standard network.
Now I have the correct ip address and netmasks, gateway. Can you tell me where to set the DNS and NIS address? Which file shall I modify?
0
 
LVL 40

Accepted Solution

by:
jlevie earned 200 total points
ID: 2580573
The DNS is controlled by two files, /etc/resolv.conf and /etc/nsswitch.conf. /etc/resolv.conf contains the domain and nameserver definitions, for instance:

domain my-domain.com
nameserver 10.0.1.1
nameserver 10.0.2.1

To get the system to use DNS, you change the "hosts" definition in /etc/nsswitch.conf to include dns in the search order, like:

hosts:      dns files

I'm not sure what you asking with regard to NIS. If you mean how to get the system to use NIS, you should really do  a "sys-unconfig" and reboot. When it comes back up it'll go through the question phase that allows you to set the hostname, IP, name service , etc.
0

Featured Post

Looking for a new Web Host?

Lunarpages' assortment of hosting products and solutions ensure a perfect fit for anyone looking to get their vision or products to market. Our award winning customer support and 30-day money back guarantee show the pride we take in being the industry's premier MSP.

Question has a verified solution.

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

When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
This article explains the fundamentals of industrial networking which ultimately is the backbone network which is providing communications for process devices like robots and other not so interesting stuff.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

704 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