Nortel 2350 用户指南

下载
页码 758
138 Configuring and managing IP interfaces and services
NN47250-500 (320657-F Version 02.01)
Aliases take precedence over DNS. When you enter a hostname, WSS Software 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:
WSS
# 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:
show ip alias [name]
Here is an example:
WSS
# show ip alias
Name                    IP Address
--------------------    --------------------
HR1
192.168.1.2
payroll
 192.168.1.3
radius1                 192.168.7.2