Defining IP Aliases
This example shows how to define two command aliases, sm8 and sp8. sm8 issues the show module 8
command, and sp8 issues the show port 8 command. This example also shows how to verify the
currently defined command aliases and what happens when you enter the command aliases at the
command line:
Console> (enable) set alias sm8 show module 8
Command alias added.
Console> (enable) set alias sp8 show port 8
Command alias added.
Console> (enable) show alias
sm8
sp8
Console> (enable) sm8
Mod Module-Name
--- ------------------- ----- --------------------- --------- --------- -------
8
Mod MAC-Address(es)
--- -------------------------------------- ------ ---------- -----------------
8
Console> (enable) sp8
Port
----- ------------------ ---------- ---------- ------ ------ ----- ------------
8/1
8/2
Port
-----
8/1
8/2
Use 'session' command to see ATM counters.
Last-Time-Cleared
--------------------------
Thu Sep 10 1998, 16:56:08
Console> (enable)
Defining IP Aliases
You can use the set ip alias command to define textual aliases for IP addresses. IP aliases can make it
easier to refer to other network devices when using ping, telnet, and other commands, even when DNS
is not enabled.
The name argument defines the IP alias. The ip_addr argument defines the IP address to which the name
refers.
To define an IP alias on the switch, perform this task in privileged mode:
Task
Step 1
Define an IP alias on the switch.
Step 2
Verify the currently defined IP aliases.
Catalyst 6000 Family Software Configuration Guide—Releases 6.3 and 6.4
20-6
show module 8
show port 8
Ports Module-Type
2
00-60-2f-45-26-2f
Name
Status
notconnect trunk
notconnect trunk
ifIndex
-------
285
286
DS3 Dual PHY ATM
Hw
Fw
2.0
1.3
Vlan
Level Duplex Speed Type
normal
normal
Command
set ip alias name ip_addr
show ip alias [name]
Chapter 20
Administering the Switch
Model
Serial-Num Status
WS-X5166
007243262 ok
Sw
51.1(103)
full
45 DS3 ATM
full
45 DS3 ATM
78-13315-02
Need help?
Do you have a question about the WS-X6066-SLB-APC - Content Switching Module and is the answer not in the manual?
Questions and answers