Solved

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

Posted on 2000-03-01
3
232 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

What’s a web proxy server? A proxy server is a server that goes between clients and web servers, used in corporate to enforce corporate browsing policy and ensure security. Proxy servers are commonly used in three modes. A)    Forward proxy …
Let’s list some of the technologies that enable smooth teleworking. 
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

772 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

11 Experts available now in Live!

Get 1:1 Help Now