Alias Command

Unanswered Question
Jun 18th, 2007
User Badges:

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
habeeb_talal Mon, 06/18/2007 - 05:51
User Badges:

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


Thanks

Edison Ortiz Mon, 06/18/2007 - 05:58
User Badges:
  • Super Bronze, 10000 points or more
  • Hall of Fame,

    Founding Member

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.

habeeb_talal Mon, 06/18/2007 - 23:26
User Badges:

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

Edison Ortiz Tue, 06/19/2007 - 05:41
User Badges:
  • Super Bronze, 10000 points or more
  • Hall of Fame,

    Founding Member

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

autopilot Thu, 12/13/2007 - 22:49
User Badges:

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.

habeeb_talal Fri, 06/22/2007 - 23:40
User Badges:

Hello,


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


Thanks

Actions

This Discussion