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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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. |
| ||||
| 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 |