22-7
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
OL-8978-04
Chapter 22 Administering the Switch
Defining IP Aliases on the Switch
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 on the Switch
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:
This example shows how to define two IP aliases,
sparc
and
cat6509
.
sparc
refers to IP address
172.20.52.3, and
cat6509
refers to IP address 172.20.52.71. This example also shows how to verify the
currently defined IP aliases and displays what happens when you use the IP aliases with the
ping
command:
Console> (enable)
set ip alias sparc 172.20.52.3
IP alias added.
Console> (enable)
set ip alias cat6509 172.20.52.71
IP alias added.
Console> (enable)
show ip alias
default 0.0.0.0
sparc 172.20.52.3
cat6509 172.20.52.71
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
]