Solved

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

Posted on 2000-03-01
3
241 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 50 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 learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

751 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