136
S
MARTNA™ 10G NETWORK ACCESS (SMARTNA-X)
COMMAND LINE INTERFACE REFERENCE |
DRAFT
SET MAP
Use the set map command to create port mappings. Packets received on a source port are sent to all of the
destination ports mapped to it. Pre-defined filters can be applied to maps to pass or block packets that match the
filtering conditions. See the “Commands for managing port maps and packet filters” section on page 133 for
instructions on managing maps and filters.
A filter following the word ‘require’ will only allow through traffic that which matches its condition. A filter
following the word 'exclude' will remove all traffic that matches its condition.
You can set up maps between any ports in the system, including between ports on the same module, between ports
on different modules, between ports of different media types and speeds—be careful not to overload the
destination port when aggregating ports or mapping 10G and 1G ports—or between rear and front ports.
Once a map has been defined with the set map command, show the show map command to review the mapping
configuration, and use the commit command to apply mappings and filters.
Command form set map in-port … to out-port … [
require filter …] [exclude filter …]
Examples Create the following port mappings:
1A > 1B include filter HTTP
2A > 2B
2B > 2A
in-port Specifies the packet input port (the source port).
A front port is represented by a number to indicate the TAP module followed by a
letter A–D to specify the port on that module (for example, 1A 1B, ). Rear ports are
labelled RA and RB.
Where multiple ports are specified, packets will be aggregated and sent to the
specified destination ports, unless removed by a filter. Use spaces to separate multiple
ports.
out-port Specifies the packet output port (the destination port).
A front port is represented by a number to indicate the TAP module followed by a
letter A–D to specify the port on that module (for example, 1A 1B). Rear ports are
labelled RA and RB.
Where multiple ports are specified, copies of the packets will be sent to each
destination ports, unless removed by a filter. Use spaces to separate multiple ports.
require filter … (Optional) Use require to add a filter that passes packets which match the filtering
conditions and drops all other packets. For filter, specify the name of a filter to add
(see set filter commands). Where a filter name contains spaces, it must be contained
within quotes.
exclude filter … (Optional) Use exclude to add a filter that drops packets which match the filtering
conditions and passes all other packets. For filter, specify the name of a filter to apply
(see set filter commands). Where a filter name contains spaces, it must be contained
within quotes.