Pages

Showing posts with label cisco ios. Show all posts
Showing posts with label cisco ios. Show all posts

Saturday, September 21, 2019

IT Problème ... Magic Cable

Solution du IT Problème "ping impossible".

Comme l'a dit Christophe en commentaire, il suffisait tout simplement de faire un ping en explicitant le nom de la VRF sur R1 : ping vrf CUST 192.168.0.1.
En effet, l'interface est configurée en étant membre de la VRF CUST. Donc elle n'est plus dans le contexte global du routeur. Il est d'ailleurs possible de vérifier cela en tapant un show ip route sur R1, on voit que le réseau n'est plus sur le routeur (ce que j'appelle contexte global), par contre un show ip route vrf CUST permet de voir l'existence de la route sur la vrf CUST.

J'en profite aussi pour dire que la solution Cisco EVN (Easy Virtual Network) facilite la gestion des VRFs. En effet, il suffira alors de se mettre dans la VRF CUST (via routing-context vrf CUST), puis de taper ping 192.168.0.1 pour faire un ping dans la VRF CUST.

Monday, January 20, 2014

Getting the connector type on your Cisco devices using SNMP

At the end of 2013, the company where I'm currently working at, needed to know how many unused connectors are on our running devices (mainly Cisco devices).
So, I needed to know what kind of information I could get from these devices.

The simplest way to do that would be to log on each device and then check the unused connector with a show command. We could make a script that will perform the task and return the connector (unfortunately there were a lot of devices to check on). The problem with this method is that using the script or using the manual way, we have to log on the device, and the company has a "no connection" policy (and that makes you realize that the Network is a really sensible thing on the general infrastructure).

I was working on a script using SNMP polling to make my own "show interface status" merged with the "show ip int brief" and "show etherchannel summary" command, and so I looked on how the connector information was stored in the MIB...

Sunday, May 20, 2012

IT Problème ... ping impossible

Solution du IT Problème "Fibre Optique".

Théoriquement, l'atténuation sur la fibre devrait être d'environ 0,1 dB (il y a environ 500m de fibre, l'atténuation théorique pour une longueur d'onde de 1310 nm est de 0,2 dB/km).

Or ce n'est pas le cas ...
Il y a un raccord de 2 fibres (entre segment 1 et 2) au niveau A, cela provoque une atténuation de l'ordre de 0,02 dB.
Il y a un connecteur de fibres (entre segment 2 et segment 3) au niveau B, cela entraine une atténuation de l'odre de 0,2 dB.
Interprétation de l'OTDR

Voila pour l'explication du problème précedent, maintenant un nouveau problème plus simple.

Monday, April 16, 2012

Simuler un SIGBREAK sur un routeur

Après une configuration TACACS, s'il y a un problème pour ensuite accéder au mode privilégié, la solution consiste à faire une restauration de mot de passe.

Le problème, c'est lorsqu'il n'est pas possible d'envoyer le SIGBREAK (vous savez? la combinaison de touches magiques) pour passer en rommon.

La solution : simuler le SIGBREAK, pour cela, il faut relancer une connection avec les paramètres suivants, 1200 bauds, 8-N-1, sans contrôle. Et il faut juste presser la touche SPACE pendant une quinzaine de question, puis relancer une session classique (9600, 8-N-1).

Monday, January 16, 2012

Monday, December 19, 2011

Commandes cachées

Il existe des commandes cachées (non affichées lors d'un ?) qui peuvent être utiles

Monday, October 17, 2011

Deleting files in the flash

To delete files contained in the flash: delete

At this step, the files are just flagged to be deleted, but they are still in the flash memory. It means that the files are still available, and they can be "restored" (in fact, they'll just be unflagged).

To restore the files : undelete

To delete the flagged files : squeeze