Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2000-03-01
3
Medium Priority
?
245 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
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This program is used to assist in finding and resolving common problems with wireless connections.
Tech spooks aren't just for those who are tech savvy, it also happens to those of us running a business. Check out the top tech spooks for business owners.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
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…

926 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