Configuring and Managing Aliases
123
Configuring and
Managing Aliases
An alias is a string that represents an IP address. You can use aliases as
shortcuts in CLI commands. For example, you can configure alias
pubs1
for IP address 10.10.10.20, and enter
ping pubs1
as a shortcut for
ping
10.10.10.20
.
Aliases take precedence over DNS. When you enter a hostname, MSS
checks for an alias with that name first, before using DNS to resolve the
name.
Adding an Alias
To add an alias, use the following command:
set ip alias
name ip-addr
Specify an alias of up to 32 alphanumeric characters.
To add an alias
HR1
for IP address 192.168.1.2, type the following
command:
WX1200#
set ip alias HR1 192.168.1.2
success: change accepted.
After configuring the alias, you can use
HR1
in commands in place of the
IP address. For example, to ping 192.168.1.2, you can type the command
ping HR1
.
Removing an Alias
To remove an alias, use the following command:
clear ip alias name
Displaying Aliases
To display aliases, use the following command:
display ip alias
[
name
]
Here is an example:
WX1200#
display ip alias
Name
IP Address
--------------------
--------------------
HR1
192.168.1.2
payroll
192.168.1.3
radius1
192.168.7.2
Summary of Contents for 3CRWX120695A
Page 138: ...138 CHAPTER 6 CONFIGURING AND MANAGING IP INTERFACES AND SERVICES ...
Page 272: ...272 CHAPTER 11 CONFIGURING RF LOAD BALANCING FOR MAPS ...
Page 310: ...310 CHAPTER 13 CONFIGURING USER ENCRYPTION ...
Page 322: ...322 CHAPTER 14 CONFIGURING RF AUTO TUNING ...
Page 350: ...350 CHAPTER 16 CONFIGURING QUALITY OF SERVICE ...
Page 368: ...368 CHAPTER 17 CONFIGURING AND MANAGING SPANNING TREE PROTOCOL ...
Page 412: ...412 CHAPTER 19 CONFIGURING AND MANAGING SECURITY ACLS ...
Page 518: ...518 CHAPTER 21 CONFIGURING AAA FOR NETWORK USERS ...
Page 530: ...530 CHAPTER 22 CONFIGURING COMMUNICATION WITH RADIUS ...
Page 542: ...542 CHAPTER 23 MANAGING 802 1X ON THE WX SWITCH ...
Page 598: ...598 CHAPTER 26 ROGUE DETECTION AND COUNTERMEASURES ...
Page 706: ...706 GLOSSARY ...