Command Reference Guide
3Com Router 5000 Family and Router 6000 Family port-mapping ● 201
Command Reference
port-mapping
Purpose Use the port-mapping command to establish a mapping from the port to
application layer protocol.
Use the undo port-mapping command to delete the PAM ingress defined by the
user.
Syntax port-mapping application-name port port-number [ acl acl-number ]
undo port-mapping [ application-name port port-number [ acl acl-number
] ]
Parameters application-name
Specifies the name of the application for PAM.
Optional applications include ftp, http, h323, smtp and
rtsp.
port-number
Port number. Valid values are 0 to 65535.
acl-number
Number of basic ACL. Valid values are 2000 to 2999.
Example Map port 3456 to FTP service, with this configuration, all the data flows destined to
port 3456 will be regarded as FTP data flows.
[3Com] port-mapping ftp port 3456
View This command can be used in the following views:
■ System view
Description PAM supports two mapping mechanisms: general port mapping and host port
mapping based on basic ACL. The former is to establish the mapping relation
between a user-defined port number and an application protocol. For example,
mapping the port 8080 to the HTTP will make all the TCP packets destined to 8080
be regarded as HTTP packets. The latter is to map the self-defined port number to the
application protocol for the packets from some specific hosts. For example, you can
map the TCP packets using the port 8080, which destine to the hosts residing on the
segment 1.1.0.0 to be the HTTP packets. The range of hosts will be specified by the
basic ACL.
Related Command display port-mapping