Solved

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

Posted on 2000-03-01
3
234 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 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

New! My Passport Wireless Pro Wi-Fi Mobile Storage

Portable wireless storage to offload, edit, and stream anywhere.

High-capacity, wireless mobile storage designed to accompany professional photographers and videographers in the field to easily offload, edit and stream captured photos and high-definition videos.

Question has a verified solution.

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

Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
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…

914 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

19 Experts available now in Live!

Get 1:1 Help Now