cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
14301
Views
0
Helpful
8
Replies

Alias Command

habeeb_talal
Level 1
Level 1

Hello,

I found this configuration in a core switch 6509 and I want to know what is the purpose of alias command.

here are the configurations:

ip address 172.19.201.103 255.255.255.192

gateway 172.19.201.108

alias 172.19.201.65 255.255.255.192

!

!

alias configure csm module ContentSwitchingModule 9

alias exec scsm-arp show module csm 9 arp

alias exec scsm-vserver show module csm 9 vserver

alias exec scsm-vlan show module csm 9 vlan

alias exec scsm-con show module csm 9 conns

alias exec fw session slot 8 pr 1

alias exec csmssl session slot 9 pro 1

alias exec pingcsm ping module csm 9

Thanks

Talal

8 Replies 8

Thanks for the link, put it didn't demonstrate the purpose of this command and what is its function?

Thanks

The purpose and function of the command is to use a more friendly command for those hard to remember commands.

For instance

alias 172.19.201.65 255.255.255.192

instead of typing 172.19.201.65 in the global config, you can type 255.255.255.192 and it will behave the same as typing 172.19.201.65.

Thanks for this information, so it's like linux, another question related to the first one but first see the configuration sample:

!

vlan 212 client

ip address 172.19.201.103 255.255.255.192

gateway 172.19.201.108

alias 172.19.201.65 255.255.255.192

so if I typed 255.255.255.192 it will behave the same as typing 172.19.201.65, the question is why they put this command although the Interface has a differnet IP address?

Thanks

172.19.201.65 may be another device in your network residing on vlan 212 and the previous admin felt it was easier to remember 255.255.255.192 than 172.19.201.65

There is a difference between

"alias 172.19.201.65 255.255.255.192"

and "alias exec" commands

"alias 172.19.201.65 255.255.255.192" - is command from ContentSwitchingModule meaning floating IP (similar to HSRP standby IP address)

for "alias exec" commands you got a link, just a creation of shortcuts.

Hope this helps

The alias command breaks down as follows:

alias (mode) (shortcut name) (command to issue)

So, a command like this:

alias exec ct conf t

will be the same as issuing the conf t command with just the letters ct.

OPDCA3BFR1#ct

Enter configuration commands, one per line. End with CNTL/Z.

OPDCA3BFR1(config)#

That is an over simplification, but gives you an idea how to break down the aliases you have.

HTH.

Hello,

Thank you all, I really appreciate your useful informations, know i completly understand this command.

Thanks

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card