Unix Technical Forum

Simulate a NIC failure

This is a discussion on Simulate a NIC failure within the comp.unix.solaris forums, part of the Solaris Operating System category; --> Hi, Is there a command or procedure to simluate a NIC failure?I want to test whether the IPMP works ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > comp.unix.solaris

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2008, 05:58 AM
govindo@gmail.com
 
Posts: n/a
Default Simulate a NIC failure

Hi,
Is there a command or procedure to simluate a NIC failure?I want to
test whether the IPMP works if one of the Interface becomes faulty

I have tried pulling out the cable from switch,host,patch panel and I
can see IPMP failover successfull

Cheers
CG

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-12-2008, 05:58 AM
Ceri Davies
 
Posts: n/a
Default Re: Simulate a NIC failure

On 2007-09-13, govindo@gmail.com <govindo@gmail.com> wrote:
> Hi,
> Is there a command or procedure to simluate a NIC failure?I want to
> test whether the IPMP works if one of the Interface becomes faulty


ifconfig foo0 down ?

--
That must be wonderful! I don't understand it at all.
-- Moliere
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-12-2008, 05:58 AM
nelson.bensley@gmail.com
 
Posts: n/a
Default Re: Simulate a NIC failure

i think you could simulate by inserting a silly module to the stream,
assuming bge0 and bge1 are in the ipmp group you could do something
like
ifconfig bge0 modinsert ldterm@2
wait/check logs/ifconfig output, then
ifconfig bge0 modremove ldterm@2

redo using bge1 in place of bge0.

cable pulling is more fun though



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-12-2008, 05:58 AM
Jim Leonard
 
Posts: n/a
Default Re: Simulate a NIC failure

On Sep 13, 5:32 pm, nelson.bens...@gmail.com wrote:
> cable pulling is more fun though


It is more fun, but the "official" way to do it is to use if_mpadm.
For example, to detach one interface:

/usr/sbin/if_mpadm -d *interface*

....will take it offline and you should see the rollover on the
console. The "-r" argument reattaches it to bring it back online.

Unfortunately it won't let you take both of them offline at the same
time, so to test clusters and whatnot, you must indeed pull cables to
test.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-12-2008, 05:58 AM
nelson.bensley@gmail.com
 
Posts: n/a
Default Re: Simulate a NIC failure

if_mpadm, hadn't seen that one. looks to be a better way. neato,
learning stuff on a friday an' all

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-12-2008, 05:58 AM
Andre van Eyssen
 
Posts: n/a
Default Re: Simulate a NIC failure

On 2007-09-13, govindo@gmail.com <govindo@gmail.com> wrote:

> Is there a command or procedure to simluate a NIC failure?I want to
> test whether the IPMP works if one of the Interface becomes faulty
>
> I have tried pulling out the cable from switch,host,patch panel and I
> can see IPMP failover successfull


In addition to the previous methods, you could probably use ndd to create
incompatible negotiation parameters between the two devices (10hdx on one
side, 100fdx on the other for example).



--
|
/\ ._ _|.__ | http://www2.purplecow.org
/--\| |(_||(/_ | email: andre at purplecow dot org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:01 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com