Port Lists

Many map commands require a port-list (for example, rule and shared-collector arguments all require them). You can define the port lists using any combination of the standard conventions:

port-id <bid/sid/pid>

port-alias <port-alias>

port-list <bid/sid/pid_x..pid_y> (range) | <bid/sid/pid_x,bid/sid/pid_y,bid/sid/pid_z> (list)

■   In the from argument of the map-passall command, you can specify a network port list or an inline network alias. In the to argument of the map-passall command, you can specify a tool port list, an inline tool alias, an inline tool group alias, or an inline bypass.
■   The port-list argument lets you select multiple non-contiguous ports. To enter port IDs in a list, simply put a comma between each port ID in the list.
■   The <bid/sid/pid_x..pid_y> argument lets you select a series of adjacent ports (for example, 1/5/x4..x6 selects port x4..x6 on slot 5.

Note:  Port ranges must be specified separately for 10Gb-capable and 1Gb ports – you cannot create a single range including both. For example, the PRT-H00-X12G04 card includes ports x1..x12 and ports g1..g4, but you cannot create a series that spans from 1/1/x1 to 1/1/g4. Instead, you must create two series – 1/1/x1..x12 and 1/1/g1..g4.

■   GigaSMART load balancing port groups can have ports with different rates.
■   You can mix a port-id with a port-alias and a port-list so long as they are separated by commas and no spaces. For example, 1/5/x4..x6,myalias,1/4/x2..x4 is a valid port-list.

Configure Port Aliases

The GigaVUE‑OS lets you configure textual aliases for network and tool ports. Aliases can be used in place of the numerical bid/sid/pid identifier required in many packet distribution commands in the CLI. For example, instead of configuring a map from 1/1/x1 to 1/1/x4, you could map Gb_In to Stream-to-Disk; the following table shows the commands to configure these aliases and the map itself.

Command

Comments

(config) # port 1/1/x1 alias Gb_In

Configures port 1/1/x1 with the alias of Gb_In.

(config) # port 1/1/x4 type tool

Sets port x4 on slot 1 (1/1/x4) as a tool port.

(config) # port 1/1/x4 alias Stream-to-Disk

Configures port 1/1/x4 with the alias of Stream-to-Disk

(config) # map alias GbCnx

(config map alias GbCnx) # from Gb_In

(config map alias GbCnx) # to Stream-to-Disk

(config map alias GbCnx) # rule add pass ipver 4

(config map alias GbCnx) # type regular byRule

(config map alias GbCnx) # exit

Creates a regular map passing all IPv4 traffic between 1/1/x1 and 1/1/x4 using their aliases of Gb_In and Stream-to-Disk, respectively.