Command line interface, Cli commands, Editing dynamic rules with the cli – Force10 Networks PSeries 100-00055-01 User Manual
Page 51: Mac rewriting, Chapter 7, Chapter 7 command line interface

P-Series Installation and Operation Guide, version 2.3.1.2
51
The command line interface (CLI) is an alternative to the GUI for managing the appliance. A script called
pnic is used to perform the same management functions as the GUI.
Invoke the pnic script using the command syntax
pnic
command
; the OS environment variables are set
such that this command can be executed from any path.
CLI Commands
CLI commands are given in
Command Line Reference on page 79
Editing Dynamic Rules with the CLI
Dynamic rules are stored in the file rules.custom in the /usr/local/pnic/0 directory.
To edit dynamic rules:
MAC Rewriting
The MAC rewrite feature allows the least significant byte (LSB) of a packet’s destination MAC address to
be overwritten with a user-specifed value. This feature may be used to load balance or redirect traffic.
Chapter 7
Command Line Interface
Step
Task
1
Change directories to /usr/local/pnic/0.
2
Enter the command
vi rules.custom to edit dynamic rules (see
for
information on vi).
3
Enter rules according to the format described in
4
Save your changes and exit vi.
5
Enter
pnic compilerules to compile the new dynamic rules.
6
Enter
pnic loadrules upload the dynamic rules to the FPGA.