06-18-2007 05:01 AM - edited 03-05-2019 04:47 PM
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
06-18-2007 05:39 AM
06-18-2007 05:51 AM
Thanks for the link, put it didn't demonstrate the purpose of this command and what is its function?
Thanks
06-18-2007 05:58 AM
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.
06-18-2007 11:26 PM
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
06-19-2007 05:41 AM
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
12-13-2007 10:49 PM
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
06-19-2007 06:58 AM
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.
06-22-2007 11:40 PM
Hello,
Thank you all, I really appreciate your useful informations, know i completly understand this command.
Thanks
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide