Re: Subject: Re: conf-reg challenge

2000-11-03 Thread Paul Werner

> Subject: Re: conf-reg challenge
> 
> Groupstudy,
> 
> I received a few responses to the challenge.  Most of you 
probably thought you knew it and passed it by.
 
> Surprise.  The answer is D, not A as every person who e-mailed 
me guessed. I should note that a few people did recognize that 
there was a trick, but still guessed A.
> 
> Here's the scoop.  conf-reg expects a hex value.  In the 
question below, I assigned a decimal value. 2102=0x836.  So, in 
essence, I actually ran the command:
>
> router(config)#config-register 0x836

Actually, the correct answer is "it depends" :-)

One of the quirky things about the IOS that you have to get used 
to, is how things change over time.  What is a problem in one 
version of IOS, later gets fixed in another version of IOS.  In 
earlier versions of code, there was a definite problem 
(converting a decimal value to an expected hex value).  Cisco 
modified the command line parser somewhere around the tail end 
of 11.3 or 12.x code to remove that quirky little feature.

Here is an output from a Cisco 804 running 12.03T1 code:

cisco804(config)#config-register ?
  <0x0-0x>  Config register number

cisco804(config)#config-register 2102
 ^
% Invalid input detected at '^' marker.  

HTH,

Paul Werner


Get your own "800" number - Free
Free voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

_
FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html
Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]



Re: conf-reg challenge

2000-11-03 Thread Matthew . Sypherd


Groupstudy,

I received a few responses to the challenge.  Most of you probably thought
you knew it and passed it by.

Surprise.  The answer is D, not A as every person who e-mailed me guessed.
I should note that a few people did recognize that there was a trick, but
still guessed A.

Here's the scoop.  conf-reg expects a hex value.  In the question below, I
assigned a decimal value.
2102=0x836.  So, in essence, I actually ran the command:
router(config)#config-register 0x836

If you investigate the bit details of the config-register command, you'll
find that bits 12 and 11 (counting from 0 from the right) specify the
console port speed.

Normally, when the config register is set to 0x2102, the port speed is 9600
(view this in a fixed width font, if possible - hopefully the tabs will
line up)

hex   2 1 0  2
binary0010  0001     0010
 |  |
 bits 12 and 11 (counting from 0 from the right) set to 00, which is
9600 bps

But, decimal 2102, or hex 0x836, changes the port speed to 4800
hex   0 8 3  6
binary  1000  0011   0110
 |  |
 bits 12 and 11 (counting from 0 from the right) set to 01, which is
4800 bps

Those two bits have the following values:
9600 0 0
4800 0 1
1200 1 0
2400 1 1

for reference on the config-register command, see
http://www.cisco.com/univercd/cc/td/doc/product/l3sw/8540/cnfg_gd/ccfg8540.htm
(this link is for the 8540, but is applicable to the standard conf-reg)

Let me know if you have any questions

Matthew C. Sypherd
[EMAIL PROTECTED]
CCNP+Security CCDP CCSE MCSE




[EMAIL PROTECTED]@groupstudy.com
11/02/2000 09:58 AM





Please respond to [EMAIL PROTECTED]

Sent by:  [EMAIL PROTECTED]


To:   [EMAIL PROTECTED]
cc:

Subject:  conf-reg challenge


Hey,

I recently had a learning experience with config-register, so I thought I'd
share it as a challenge.
(note: this is my question and my answers and I haven't seen them on any
tests I've taken, so I'm not violating any copyrights or NDAs)

Q - What is the effect of running the following command on a Cisco router?
router(config)#config-register 2102

a) It sets the router to its default boot settings
b) It sets the router to its default boot settings but ignores the config
stored in NVRAM
c) It sets the router to boot with the console port set to 2400 bps 7/N/1
d) It sets the router to boot with the console port set to 4800 bps 8/N/1
e) It sets the router to boot with the console port set to 1200 bps 8/N/1

Reply with your answer and the reason for picking your answer.

Seasoned Folks: If you know right off, don't answer to the list, make the
one's who aren't sure either guess or look it up first.
Newbies(of which I was one on this topic until recently): Hint - it's
probably not what you think.  You are probably going to need a calculator
and some paper.

Oh, and wish me luck - I'm taking the CCIE R/S written tomorrow. My middle
name is Charles ("Chuck"), so hopefully that will help.
I've also signed up to take the CCIE Security beta written next Friday (the
last day it's available) - perhaps I'm just a masochist.

Matthew "Chuck" Sypherd
[EMAIL PROTECTED]
CCNP+Security CCDP CCSE MCSE

_
FAQ, list archives, and subscription info:
http://www.groupstudy.com/list/cisco.html
Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]



_
FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html
Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]



conf-reg challenge

2000-11-02 Thread Matthew . Sypherd

Hey,

I recently had a learning experience with config-register, so I thought I'd
share it as a challenge.
(note: this is my question and my answers and I haven't seen them on any
tests I've taken, so I'm not violating any copyrights or NDAs)

Q - What is the effect of running the following command on a Cisco router?
router(config)#config-register 2102

a) It sets the router to its default boot settings
b) It sets the router to its default boot settings but ignores the config
stored in NVRAM
c) It sets the router to boot with the console port set to 2400 bps 7/N/1
d) It sets the router to boot with the console port set to 4800 bps 8/N/1
e) It sets the router to boot with the console port set to 1200 bps 8/N/1

Reply with your answer and the reason for picking your answer.

Seasoned Folks: If you know right off, don't answer to the list, make the
one's who aren't sure either guess or look it up first.
Newbies(of which I was one on this topic until recently): Hint - it's
probably not what you think.  You are probably going to need a calculator
and some paper.

Oh, and wish me luck - I'm taking the CCIE R/S written tomorrow. My middle
name is Charles ("Chuck"), so hopefully that will help.
I've also signed up to take the CCIE Security beta written next Friday (the
last day it's available) - perhaps I'm just a masochist.

Matthew "Chuck" Sypherd
[EMAIL PROTECTED]
CCNP+Security CCDP CCSE MCSE

_
FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html
Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]