Chapter 72. Annexe sur le langage de commande de Zebra

Revision History
Revision $Revision: 1.1 $$Date: 2004/10/30 22:56:08 $

Table of Contents

Annexe sur le langage de commande de Zebra

Abstract

Utilisation du mode commande de Zebra.

Annexe sur le langage de commande de Zebra

Zebra est configuré (/etc/zebra/zebra.conf)

[mlx@mr]$ telnet localhost 2601
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

Hello, this is zebra (version 0.94).
Copyright 1996-2002 Kunihiro Ishiguro.


User Access Verification

Password:      // Entrer le mot de passe
mr> enable     // On passe en mode privilégié
mr# disable    // On revient en mode normal
mr> exit       // Quitter
Connection closed by foreign host.
# Obtenir les commandes de bases
mr>?
  enable    Turn on privileged mode command
  exit      Exit current mode and down to previous mode
  help      Description of the interactive help system
  list      Print command list
  quit      Exit current mode and down to previous mode
  show      Show running system information
  terminal  Set terminal line parameters
  who       Display who is on vty
# Obtenir les commandes en mode privilégié
mr> enable
mr# ?
  configure  Configuration from vty interface
  copy       Copy configuration
  debug      Debugging functions (see also 'undebug')
  disable    Turn off privileged mode command
  end        End current mode and change to enable mode.
  exit       Exit current mode and down to previous mode
  help       Description of the interactive help system
  list       Print command list
  no         Negate a command or set its defaults
  quit       Exit current mode and down to previous mode
  show       Show running system information
  terminal   Set terminal line parameters
  who        Display who is on vty
  write      Write running configuration to memory, network, or terminal
# list donne la liste de toutes les commandes

mr# list
  configure terminal
  copy running-config startup-config
  debug zebra events
  debug zebra kernel
  debug zebra packet
  debug zebra packet (recv|send)
  debug zebra packet (recv|send) detail
  disable
  end
  exit
  help
  list
  no debug zebra events
  no debug zebra kernel
  no debug zebra packet
  quit
 --More--
# Une commande suivi de "?" indique la liste 
# des paramètres attendus
mr# configure ?
  terminal  Configuration terminal
mr# configure

Les commandes "show running-config" et "show startup-config" permettent respectivement d'avoir la configuration active du routeur et les commandes de configuration de démarrage lors du démarrage du routeur.

"show interface" donne les indications sur les interfaces.

"show ip route" donne les information sur la table de routage.

"show history" donne la listes des commandes saisies.

"configure terminal" permt de passer en mode configuration.