Creating Command Aliases on Cisco Router


Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config) #alias exec rt show ip route
Router(config) #alias exec on show ip ospf neighbor
Router(config) #end
Router#

Router#show aliases
Exec mode aliases:
h help
lo logout
p ping
r resume
s show
u undebug
un undebug
w where
rt show ip route
on show ip ospf neighbor
Router#