20-6
Catalyst 6000 Family Software Configuration Guide—Releases 6.3 and 6.4
78-13315-02
Chapter 20 Administering the Switch
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 show module 8
sp8 show port 8
Console> (enable)
sm8
Mod Module-Name Ports Module-Type Model Serial-Num Status
--- ------------------- ----- --------------------- --------- --------- -------
8 2 DS3 Dual PHY ATM WS-X5166 007243262 ok
Mod MAC-Address(es) Hw Fw Sw
--- -------------------------------------- ------ ---------- -----------------
8 00-60-2f-45-26-2f 2.0 1.3 51.1(103)
Console> (enable)
sp8
Port Name Status Vlan Level Duplex Speed Type
----- ------------------ ---------- ---------- ------ ------ ----- ------------
8/1 notconnect trunk normal full 45 DS3 ATM
8/2 notconnect trunk normal full 45 DS3 ATM
Port ifIndex
----- -------
8/1 285
8/2 286
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
Command
Step 1
Define an IP alias on the switch.
set ip alias
name ip_addr
Step 2
Verify the currently defined IP aliases.
show ip alias
[
name
]