nic configuration


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers nic configuration
# 1  
Old 06-08-2005
nic configuration

Hi,
what are the basic steps/command to configure a new nic (2nd) on Solaris 9? Smilie
10x N.
# 2  
Old 06-08-2005
you would have to know what type your nic is.
for example on a qfe card you have to "activate" your interface:
# ifconfig qfe1 plumb
now you can configure it with your new ip address
# ifconfig qfe1 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.133.255 up
and it is online! but only until a reboot. if you want to set it permanently you would have to edit following files:
/etc/hostname.qfe1 --> IP or hostname (must be in /etc/hosts)
/etc/netmasks --> if you are in a different subnet than the first one
done... ;-)

or do you want to activate a failover nic? then ask again and you will get an answere ;-)

gP
# 3  
Old 06-08-2005
thanks!

many thanks!
# 4  
Old 06-09-2005
Ermm... maybe I'm being stupid but I thought you also have to edit files in (it must depend on your distro I guess)

/etc/sysconfig/network/

If you do need to edit these files, you'll probably already see something which looks like

/etc/sysconfig/network/ifcfg-eth0

If you see that, the quickest thing to do would be to

cp /etc/sysconfig/network/ifcfg-eth0 /etc/sysconfig/network/ifcfg-eth1

The edit it

pico /etc/sysconfig/network/ifcfg-eth1

Just change the hardware address and the IP setting then run

/etc/init.d/network restart

Voila, you should have a new interface available. That will load at startup too.

Note: Your network script paths may vary depending upon the distro you have
# 5  
Old 06-09-2005
Quote:
Originally Posted by d11wtq
....I thought you also have to edit files in (it must depend on your distro I guess)
It does differ across various flavours of Unix/Linux. The original poster stated they were using Solaris 9, and the procedure pressy posted is correct for this OS.

You posted the procedure for a Linux distro - which is still useful for people needing to set up a NIC under Linux Smilie

Cheers
ZB
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Linux

Add two different subnet public IPs to single NIC or two different NIC on same box

Hello Admins, My ask is how can I add two different subnet IPs to same box with two different gateways? The issue is I can connect to the box when I am on ethernet LAN, but I am not able to connect to the same IP when I am on wifi. The server is RHEL 7 VM on vmware. How can I get connected... (4 Replies)
Discussion started by: snchaudhari2
4 Replies

2. Virtualization and Cloud Computing

Rediscover a new NIC

hi guys I am using Suse 11 in virtual enviroment using vmware. For some reasons I need to add a new virtual nic or just a nic to my suse 11. so is there a way to add this new NIC to my Suse 11 without restarting? thanks a lot ---------- Post updated 01-24-13 at 01:22 AM ----------... (0 Replies)
Discussion started by: karlochacon
0 Replies

3. Red Hat

I want to tune NIC's rps, rfs and xps value. which NIC device should I modify.

Dear All I want tune my NIC's rps, rfs and xps value. In my system I have two NIC (eth0, eth1) and I have a bond0 ( eth0, eth1). Here is the question? Which device should I modify ? eth0 and eth1? or just modify bond0 or modify all device (eth0, eth1, bond0) Any advice is welcome.... (0 Replies)
Discussion started by: nnnnnnine
0 Replies

4. IP Networking

squid proxy: one NIC for inbound & one NIC for outbound?

I am new in squid proxy. My question is how to (and if it's necessary) to set one NIC for inbound traffic (http requests) and one NIC for outbound traffic (http answers)? Thank you in advance! (4 Replies)
Discussion started by: aixlover
4 Replies

5. Solaris

x86 Solaris 10 nic driver added but not attached. NIC is not detected.

I couldn't install my nic in solaris 10. I compiled and added the driver but failed to attach the driver and ifconfig output shows only loopback dev. Please see the following output and tell me whether my nic has been detected and why the driver failed to attach? My nic is detected in linux... (0 Replies)
Discussion started by: vectrum
0 Replies

6. Solaris

Not able to find the new NIC

I have a Sun Blade 2500 with SUN 5.9 OS installed. I have one NIC built-in which is working fine. I insert another new NIC in the machine with four RJ45 connector options(means four NICs in one Card). The problem is i am not able to see the new NIC Thanks (13 Replies)
Discussion started by: z_haseeb
13 Replies

7. HP-UX

how can I determine which NIC card is virtual NIC Card

how can I determine which NIC card is virtual NIC Card which condition can make a decision Does HP UX have Virtual Network Adapter Concept if ,it has where I can Find if I Install Virutal Network Adapter or which command that i can get it or which software can generate thanks (2 Replies)
Discussion started by: alert0919
2 Replies

8. Solaris

Cause of NIC changes ...?

Hi , I came across a SUN server whereby it was installed with additional ethernet card. By right in any configuration, you would probably see the onboard ports Net0,Net1 and so on should correspond to e1000g0,e1000g1... But instead the ext PCI takes precedence in the order and the Net0 becomes... (3 Replies)
Discussion started by: incredible
3 Replies

9. UNIX for Advanced & Expert Users

NIC Driver

Hi:- I am trying to install a device driver for Intel NIC card on TurboLinux, but getting following errors, cc -O -Wall -o eepro100-diag eepro100-diag.c eepro100-diag.c:72: unistd.h: No such file or directory eepro100-diag.c:73: stdio.h: No such file or directory eepro100-diag.c:74:... (1 Reply)
Discussion started by: s_aamir
1 Replies
Login or Register to Ask a Question