There are five routing daemons in use, and there is one manager daemon. These daemons may be located on separate machines from the manager daemon. Each of these daemons will listen on a particular port for incoming VTY connections. The routing daemons are:
The following sections discuss commands common to all the routing
daemons.
Menu | |
---|---|
Config Commands | Commands used in config files |
Common Invocation Options | Starting the daemons |
Virtual Terminal Interfaces | Interacting with the daemons |
Menu | |
---|---|
Basic Config Commands | Some of the generic config commands |
Sample Config File | An example config file |
In a config file, you can write the debugging options, a vty's password, routing daemon configurations, a logfile name, and so forth. This information forms the initial command set for a routing beast as it is starting.
Config files are generally found in:
/usr/local/etc/*.conf
Each of the daemons has its own config file. For example, zebra's default config file name is:
/usr/local/etc/zebra.conf
The daemon name plus .conf is the default config file name. You can specify a config file using the -f or --config-file options when starting the daemon.
Below is sample configuration of the zebra daemon.
If a comment character is not the first character of the word, it's a
normal character. So above ! will not be regarded as a comment and the
password is set to zebra!password.
These options are common to all Zebra Daemons.
VTY - Virtual Terminal [aka TeletYpe] Interface is a command line
interface (CLI) to change and/or view the current configuration.
Set hostname of the router.
Set password for vty interface. If there is no password, a vty
won't accept connections.
Set enable password.
Set loggin output to stdout.
If you want to log into a file please specify `filename' as
follows.
Set loggin output to syslog.
Displays the current configuration to the vty interface.
Write current configuration to configuration file.
Change to configuration mode. This command is the first step to
configuration.
Set terminal display length to <0-512> If length is 0, no
display control is performed.
List commands.
Encrypt password.
Enable advanced mode VTY.
Set system wide line configuration. This configuration command
applies to all VTY interfaces.
Show the current version of the Zebra and it's build host
information.
Enter vty configuration mode.
Set default motd string.
No motd banner string will be printed.
Set VTY connection timeout value. When only one argument is
specified it is ued for timeout value in seconds. Default
timeout value is 10 minutes. When timeout value is zero, it means
no timeout.
Do not perform tiomeout at all. This ocmmand is as same as
exec-timeout 0 0
Restrict vty connections with an access list.
!
! Zebra configuration file
!
hostname Router
password zebra
enable password zebra
!
log stdout
!
!
! and # are comment characters. If the first character of the
word is one of comment characters then, from the rest of the line will
be ignored as a comment.
password zebra!password
--daemon
Runs in daemon mode.
--config_file=FILE
Set configuration file name.
--help
Display this help and exit.
--vty_port=PORT
Set the VTY port number.
--version
Print program version.
Menu | |
---|---|
VTY Overview | Basics about VTYs |
VTY Modes | Basics about VTYs |
VTY CLI Commands | Basics about VTYs |
VTY stands for Virtual TeletYpe interface. It means you can connect to the daemon via the telnet protocol. To enable a VTY interface, you have to setup a VTY password. If there is no VTY password, one cannot connect to the VTY interface at all.
% telnet localhost 2601 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Hello, this is zebra (version 0.88) Copyright 1997-2000 Kunihiro Ishiguro User Access Verification Password: XXXXX Router> ? enable Turn on privileged commands exit Exit current mode and down to previous mode help Description of the interactive help system list Print command list show Show running system information who Display who is on a vty Router> enable Password: XXXXX Router# configure terminal Router(config)# interface eth0 Router(config-if)# ip address 10.0.0.1/8 Router(config-if)# ^Z Router# ? is very useful for looking up commands.
There are three basic VTY modes:
Menu | |
---|---|
VTY View Mode | Mode for read-only interaction |
VTY Enable Mode | Mode for read-write interaction |
VTY Other Modes | Special modes (tftp, etc) |
There are commands that may be restricted to specific VTY modes.
This mode is for read-only access to the CLI. One may exit the mode
by leaving the system, or by entering `enable' mode.
this mode is for read-write access to the cli. one may exit the mode
by leaving the system, or by escaping to view mode.
This page is for describing other modes.
Commands that you may use at the command-line are described in the
following three subsubsections.
CLI Movement Commands | Commands for moving the cursor about |
CLI Editing Commands | Commands for changing text |
CLI Advanced Commands | Other commands, session management and so |
These commands are used for moving the CLI cursor. The <C> character
means press the Control Key.
These commands are used for editing text on a line. The <C>
character means press the Control Key.
There are several additional CLI commands for command line
completions, insta-help, and VTY session management.
This file documents the GNU Zebra software which manages common
TCP/IP routing protocols.
This is Edition 0.1, last updated 5 July 2000 of `The GNU Zebra
Manual', for Zebra Version 0.88.
Copyright (C) 1999, 2000 Kunihiro Ishiguro
Permission is granted to make and distribute verbatim copies of this
manual provided the copyright notice and this permission notice are
preserved on all copies.
Permission is granted to copy and distribute modified versions of
this manual under the conditions for verbatim copying, provided that the
entire resulting derived work is distributed under the terms of a
permission notice identical to this one.
Permission is granted to copy and distribute translations of this
manual into another language, under the above conditions for modified
versions, except that this permission notice may be stated in a
translation approved by Kunihiro Ishiguro.
CLI Movement Commands
<RIGHT>
Move forward one character.
<LEFT>
Move backward one character.
Move forward one word.
Move backward one word.
Move to the beginning of the line.
Move to the end of the line.
<DEL>
Delete the character before point.
Delete the character after point.
Forward kill word.
Backward kill word.
Kill to the end of the line.
Kill line from the beginning, erasing input.
Transpose character.
Interrupt current input and moves to the next line.
End current configuration session and move to top node.
<DOWN>
Move down to next line in the history buffer.
<UP>
Move up to previous line in the history buffer.
Use command line competion by typing <TAB>.
You can use command line help by typing help at the beginning of the line. Typing ? at any point in the line will show possible completions.