Solved

Adding Second nic in Solaris 10

Posted on 2008-10-13
11
1,424 Views
Last Modified: 2013-12-27
I am tring to add a second nic in a T1000 running Solaris 10. After I add the nic with the config as follows:

bge0: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.1.67 netmask ffffff00 broadcast 192.168.1.255
        ether 0:21:28:10:a3:d0
bge1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
        inet 192.168.1.68 netmask ffffff00 broadcast 192.168.1.255
        ether 0:21:28:10:a3:d1

Evrething works fine but if I unplug the first nic there is no trafic in the server.
why I can not use the second nic if I unplug the first one even if the second nic is pluged and is running?

Thank you
0
Comment
Question by:smurgu
[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
  • 6
  • 5
11 Comments
 
LVL 40

Expert Comment

by:omarfarid
ID: 22704648
if you run

ifconfig -a

what do you get?

0
 

Author Comment

by:smurgu
ID: 22704696
I post that in my question.
bge0: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.1.67 netmask ffffff00 broadcast 192.168.1.255
        ether 0:21:28:10:a3:d0
bge1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
        inet 192.168.1.68 netmask ffffff00 broadcast 192.168.1.255
        ether 0:21:28:10:a3:d1
The fist interface is not running because I unplug the cable to see if the second one is working when the fisrt one is down.
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 22704732
when you say unplug the first nic, do you mean the cable?

Also, why do you haveboth nics in the same subnet?
0
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

 

Author Comment

by:smurgu
ID: 22704787
Yes I unplug the cable.

Its not my network, and I don't have any control over its configuration. I need to use the second nic in case the first one fails without IPMP or link aggregation.
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 22704826
can you show the output of

netstat -rn

0
 

Author Comment

by:smurgu
ID: 22704831
Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface
-------------------- -------------------- ----- ----- ---------- ---------
default              192.168.1.161        UG        1        100          
192.168.1.0          192.168.1.67         U         1          4 bge0      
192.168.1.0          192.168.1.68         U         1          0 bge1      
224.0.0.0            192.168.1.67         U         1          0 bge0      
127.0.0.1            127.0.0.1            UH        4        117 lo0    
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 22704891
OK, from the routing table, the network 192.168.1.0 is reachable through bge0 and bge1

If you shutdown the bge0 interface with

ifconfig bge0 down

do you still get the problem?
0
 

Author Comment

by:smurgu
ID: 22704926
No if I put that interface down it works but I have to switches and each nic is plug in a diferent switch. I need to be able to send and receive trafic if one of the switch is down.
0
 
LVL 40

Accepted Solution

by:
omarfarid earned 500 total points
ID: 22705008
If not mistaken, this has to do with IP routing since the system see a valid route to the subnet on that interface and then try to use it. since you don't want to use IPMP (which will give what you want), then I am afraid that you need a script on the server itself to monitor the interfaces and bring down the one that shows that it is unplugged
0
 

Author Comment

by:smurgu
ID: 22705624
can you give me an example of the script and also if you can tell me how this script will detect the link-failure. I know this is a diferent question than the original one let me know if I have to close this and open a new question.

Thank you,
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 22706173
Sorry that you closed the question before reaching a solution, but you can try to see if you can run snmp

and use

/usr/sfw/bin/snmpwalk

to get the interface status then try to do something.

Also you may try

/usr/sbin/ndd -get  /dev/bge  link_status

But I do not have two interfaces to test with and see what it return
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

724 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