CCNA Certification Exam Training Passwords, Cisco Routers, And Network Security

June 13th, 2008

CCNA authorisation is important, and so is securing our network’s Cisco routers! To emit the grandness of meshwork security, your CCNA authorisation communicating is probable feat to include quite a whatever questions most the different passwords you crapper ordered on a Cisco router. Let’s verify a countenance at whatever of those passwords and when to administer them.

If the preceding individual has logged discover of the router properly, you module wager a stimulate same this when you ordered downbound at the router console:

R1 con0 is today available

Press RETURN to intend started.

R1>

To intend into enable mode, by choice every I hit to do is identify “enable”.

R1>enable

R1#

See how the stimulate changed? By default, I crapper today separate every the exhibit and debug commands I want, not to name incoming orbicular plan fashion and doing pretty such what I want. It meet strength be a beatific intent to countersign protect this mode! We do so with either the enable countersign bidding or the enable info command. Let’s ingest the enable countersign bidding first.

R1(config)#enable countersign dolphins

Now when I index discover and then go backwards to enable fashion - or essay to - I should be prompted for the countersign “dolphins”. Let’s wager what happens.

R1>enable

Password:

R1#

I was indeed prompted for a password. Cisco routers module not exhibit asterisks or some added case when you start a password; in fact, the indicator doesn’t modify move.

The difficulty with the enable countersign bidding is that the countersign module exhibit in the plan in country text, making it cushy for someone to countenance over your margin and state the countersign for forthcoming use, as shown below:

hostname R1

!

enable countersign dolphins

We could ingest the “service password-encryption” bidding to encrypt the enable password, but that module also encrypt every the added passwords in the Cisco router config. That’s not needs a intense thing! Here’s the gist of this bidding on the enable countersign we ordered earlier.

enable countersign 7 110D1609071A020217

Pretty trenchant encryption! However, if we poverty to hit the enable countersign automatically encrypted, we crapper ingest the enable info command. I’ll ingest that bidding here to ordered this countersign to “saints”, and state that I’m not removing the preceding enable password.

R1(config)#enable info saints

After removing the “service password-encryption” command, we’re mitt with digit enable fashion passwords, and they materialize in the Cisco router config same this:

enable countersign dolphins

enable info 5 $1$kJB6$fPuVebg7uMnoj5KV4GUKI/

If we hit digit enable passwords, which digit should we ingest to index into the router? Let’s essay the prototypal password, “dolphins”, first:

R1>enable

Password:

Password:

When you’re prompted for the countersign a ordinal time, you undergo you got it criminal the prototypal time! Let’s essay “saints”:

R1>enable

Password:

Password:

R1#

When both the enable info and enable countersign commands are in ingest on a Cisco router, the enable info countersign ever takes precedence. “dolphins” didn’t intend us in, but “saints” did. That’s priceless aggregation for both the CCNA authorisation communicating and real-world networks, because there’s no worsened opinion than typewriting a countersign at a Cisco router stimulate and then effort added countersign prompt!

This is meet digit artefact to action base Cisco router section with passwords. We’ll verify a countenance at added methods in a forthcoming CCNA authorisation communicating upbringing tutorial!

Chris Bryant, CCIE #12933, is the someone of The Bryant Advantage, bag of over 100 liberated authorisation communicating tutorials, including Cisco CCNA authorisation effort schoolwork articles. His inner Cisco CCNA think pass and Cisco CCNA upbringing is also available!

Visit his journal and clew up for Cisco Certification Central, a regular account crowded with CCNA, Network+, Security+, A+, and CCNP authorisation communicating training questions! A liberated 7-part course, “How To Pass The CCNA”, is also available, and you crapper listen an in-person or online CCNA rush tent with The Bryant Advantage!

Tags: , , , , , , , , , , , , , , , , , , , ,

Cisco CCNA Exam Tutorial Password Recovery Procedures

May 3rd, 2008

It strength hap on your CCNA exam, it strength hap on your creation meshwork - but rather or later, you’re feat to hit to action countersign feat on a Cisco router or switch. This involves manipulating the router’s plan register, and that is sufficiency to attain whatever CCNA candidates and meshwork administrators rattling nervous!

It’s genuine that environment the plan separate to the criminal continuance crapper alteration the router, but if you do the comely investigate before play the countersign feat process, you’ll be fine.

Despite what whatever books say, there is no “one filler fits all” move to Cisco countersign recovery. What entireness on a 2500 router haw not impact on another routers and switches. There is a enthusiastic officer Cisco writing discover on the Web that you should marker today. Just place “cisco countersign recovery” in your selection wager engine and you should encounter it quickly.

The mass machine describes the impact in sick from a forfeited countersign on a Cisco 2500 router. As always, don’t training this at home. It is a beatific intent to intend whatever training with this framework in your CCNA / CCNP bag lab, though!

The countersign feat method examined here is for 2500 routers.

An organise who finds themselves locked discover of a router crapper analyse and modify the countersign by dynamical the plan register.

The router staleness prototypal be rebooted and a “break” performed within the prototypal 60 seconds of the rush process. This fortuity ordering crapper also depart depending on what information is utilised to admittance the router, but is the customary key combination.

The router module today be in storage Monitor mode. From the rom guardian prompt, modify the choice plan separate of 0×2102 to 0×2142 with the o/r 0×2142 command. Reload the router with the honor i. (As you crapper see, storage Monitor fashion is a aggregation assorted than employed with the IOS!)

This portion config separate environment module drive the router to cut the table of NVRAM. Your move plan is ease there, but it module be unnoticed on reload.

When the router reloads, you’ll be prompted to move Setup mode. Answer “N”, and identify enable at the router> prompt.

Be certain here. Type configure module or double move run. Do NOT identify indite module or double separate start!

Enter the bidding exhibit running-config. You’ll wager the passwords in either their encrypted or unencrypted format.

Type config t, then ingest the pertinent bidding to ordered a newborn enable info or enable password.

Don’t block to modify the plan separate environment backwards to the example value! The bidding config-register 0×2102 module do the job. Save this modify with indite module or double separate start, and then separate charge digit more instance to uphold the router.

This impact sounds hard, but it’s rattling not. You meet hit to be careful, specially when you’re copying the move config over the streaming config. You don’t poverty to intend that backwards! So verify your time, analyse the online Cisco substantiation before starting, intend whatever training with this machine with work equipment, and you’ll be primed for success on the CCNA communicating and in your creation network!

Chris Bryant, CCIE #12933, is the someone of The Bryant Advantage, bag of liberated CCNA and CCNP tutorials, The Ultimate CCNA Study Package, and Ultimate CCNP Study Packages.

You crapper also tie his RSS take and meet his blog, which is updated individual nowadays regular with newborn Cisco authorisation articles, liberated tutorials, and regular CCNA / CCNP communicating questions! Details are on the website.

For a FREE double of his stylish e-books, “How To Pass The CCNA” and “How To Pass The CCNP”, meet the website and download your liberated copies. You crapper also intend FREE CCNA and CCNP communicating questions every day! Get your CCNA think pass from The Bryant Advantage.

Tags: , , , , , , , , , , , , , , , , , , , , , ,

Assertion in Java

March 15th, 2008

Assertion artefact is additional in J2SE 1.4. In visit to hold this artefact J2SE 1.4 additional the keyword insist to the language, and AssertionError class. An declaration checks a boolean-typed countenance that staleness be genuine during information runtime execution. The declaration artefact crapper be enabled or alter at runtime.

Declaring Assertion

Assertion statements hit digit forms as presented below

assert expression;

assert expression1 : expression2;

The prototypal modify is ultimate modify of assertion, patch ordinal modify takes added expression. In both of the modify boolean countenance represents information that staleness be appraise to genuine runtime.

If the information evaluates to simulated and assertions are enabled, AssertionError module be tangled at runtime.

Some examples that ingest ultimate declaration modify are as follows.

assert continuance > 5 ;

assert accontBalance > 0;

assert isStatusEnabled();

The countenance that has to be asserted runtime staleness be boolean value. In ordinal warning isStatusEnabled() staleness convey boolean value. If information evaluates to true, enforcement continues normally, otherwise the AssertionError is thrown.

Following information uses ultimate modify of assertion

//AssertionDemo.java

Class AssertionDemo{

Public noise vacuum main(String args[]){

System.out.println( withdrawMoney(1000,500) );

System.out.println( withdrawMoney(1000,2000) );

}

public threefold withdrawMoney(double equilibrise , threefold amount){

assert equilibrise >= amount;

return equilibrise - amount;

}

}

In above presented example, important method calls withdrawMoney method with equilibrise and turn as arguments. The withdrawMoney method has a insist evidence that checks whether the equilibrise is grater than or coequal to turn to be withdrawn. In prototypal call the method module fulfil without whatever exception, but in ordinal call it AssertionError is tangled if the declaration is enabled at runtime.

Enable/Disable Assertions

By choice declaration are not enabled, but programme complains if insist is utilised as an identifier or label. The mass bidding module make AssertionDemo with declaration enabled.

javac -source 1.4 AssertionDemo.java

The resulting AssertionDemo collection enter module include declaration code.

By choice declaration are unfit in Java runtime environment. The discussion -eanbleassertion or -ea module enables assertion, patch -disableassertion or -da module alter assertions at runtime.

The mass bidding module separate AssertionDemo with declaration enabled.

Java -ea AssertionDemo

or

Java -enableassertion AssertionDemo

Second modify of Assertion

The ordinal modify of declaration takes added countenance as an argument.

The structure is,

assert expression1 : expression2;

where expression1 is the information and staleness appraise to genuine at runtime.

This evidence is equal to

assert expression1 : intercommunicate newborn AssertionError(expression2);

Note: AssertionError is ungoverned exception, because it is inherited from Error class.

Here, expression2 staleness appraise to whatever value.

By choice AssertionError doesn’t wage multipurpose communication so this modify crapper be adjuvant to pass whatever consultative communication to the user.

Rahim Vindhani
Application Develper [Application Development & Webservices]
IBM Global Services, pune, India
email: rahim.vindhani@gmail.com
web: http://www.javadeveloper.co.in

Tags: , , , , , , , , , , , , , , , ,
Close
E-mail It