Friday, November 2, 2007
HSRP and preempt command
Answer: To get the role of this command suppose that the active HSRP router fails, in this case the standby router will become active. If no preempt command is used in HSRP setting after the previously active router, the one with the highest priority, comes up again the status of HSRP will not change. This means that the previous standby router, current active one, will stay active even though it's priority is lower.
When preempt is used, whenever a router with higher priority comes up it will become active.
Monday, October 29, 2007
Checking the integrity of a copied file.
Answer: To check the integrity of the file you copied use the MD5 signature.
Issue the following command to get the MD5 key of the copied file and compare it with the MD5 key provided by Cisco.
verify /md5 flash:filename
After you get the MD5 key go to Cisco.com and try to download the same image in Software Downloads part, just before you download the software you will be provided with a table containing some details about the image and in that table you will find the MD5 key of the file.
Compare it with the one you get as a result of verify command, if they are the same your file is copied properly.
Tuesday, October 9, 2007
tftp file size limit
Answer:
Originally tftp protocol supports maximum file size of 32MB, however some changes have been made so tftp can support up to 4GB. But to be practical you need to upgrade your IOS using FTP or RCopy.
To do this with FTP all you need is replacing "tftp" with "ftp" in the commands you used before:
enable
copy ftp: sup-bootdisk:
Of course you need an FTP server instead of a tftp server as well.
If your ftp server requires username and password you have too define them in your switch:
conf t
ip ftp username xxxx
ip ftp password yyyy
Friday, August 10, 2007
Ping all subnets
Answer:
There is an easy way, connect to the switch via it’s console port (con 0) then you can ping every subnet!
Friday, June 29, 2007
SFP Negotiation
Answer:
When a port with a SFP module does not come up and you are sure about the cable and connections always check the speed negotiation and even disable it by:
speed nonegotiate
interface command.
Friday, June 22, 2007
Inactive status in CatOS switches
Answer:
When you see a port in ‘Inactive’ status in a switch running CatOS it is very likely that you have VLAN problems. For instance, if you put a port in VLAN X and that VLAN X is not defined in the switch then the port will go to inactive status.
In order to resolve the issue, first make sure that the VLAN to which the inactive port is assigned to exists or not (mostly not); do this by issuing the following command:
sh vlan
You probably do not see the VLAN in the list, if you want to create the VLAN:
First make sure that the switch is in one of the VTP transparent or server modes,
show vtp domain
Look at the phrase under Local Mode to see in which mode the switch operates.
(For IOS:
show vtp status
Look at the VTP Operating Mode in the out put of the above command to see the VTP mode.)
If your switch is in VTP client mode you should create the VLAN in the VTP domain server switch.
To create the vlan use the following command:
set vlan vlan-number name vlan-name
Thursday, June 21, 2007
Monitoring and troubleshooting an interface in CATOS
For Cisco IOS, the show interfaces card-type x/y counters command is similar to show mac for CatOS platforms. show counters mod/port is also useful.
Power Supply Monitoring
show environment power
However this command will fail in some CATOS versions, in this case you can use:
show systemto see if PSU(s) is/are in a proper working condition
Introduction
While I was living in my home country, Iran, I was also involved in Cisco networking and mostly in teaching some Cisco courses. Fortunately my old students have not forgotten me yet and they still send me their problems and questions and I am more than happy to help them out (if I can!).
After about two years being away, I decided to put these questions and answers, which are now quite a lot, here in this blog mainly to share them with others and discuss about them.
In most of the cases the questions are in Farsi language so I do not mention the exact question here to make it a bit more useful for my international friends. From now on I will try to translate the questions but for the previous ones No Way!!
And one last thing, please correct me and let me know in case you find any mistakes in my writings.
Good Luck!
Babak