
The Cisco IOS v1.22 – Aaron Balchunas
* * *
All original material copyright © 2007 by
Aaron Balchunas (aaron@routeralley.com),
unless otherwise noted. All other material copyright © of their respective owners.
This material may be copied and used freely, but may not be altered or sold without the expressed written
consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com.
15
“Piping” Commands
In newer versions of the Cisco IOS, the output of show commands can be
filtered to remove irrelevant lines, through the use of the pipe “ | ” character.
The following command will display the contents of the startup-config,
beginning with the first line containing the text ethernet:
Router# show startup | begin ethernet
The following command will exclude all lines containing the text ethernet:
Router# show startup | exclude ethernet
The following command will include all lines containing the text ethernet:
Router# show startup | include ethernet
Miscellaneous Commands
To change the hostname of your router:
Router(config)# hostname MyRouter
MyRouter(config)# hostname MyRouter
To assign a description to an interface for documentation purposes:
Router(config)# interface serial 0
Router(config-if)# description SBC T1 connection to Chicago
Router# show interfaces
Serial 0 is up, line protocol is up
Hardware is Serial
Internet address is 70.22.3.1, subnet mask is 255.255.255.0
Description: SBC T1 connection to Chicago
To create a banner message which users will see when logging into an IOS
device:
Router(config)# banner motd #
Logging into this router without authorization is illegal
and will be prosecuted!
#
The # symbol is used as a delimiter to indicate the beginning and end of the
banner. Any character can be used as a delimiter.
Comentários a estes Manuais