Force10 Networks 100-00055-01 manual Command Line Interface, CLI Commands, MAC Rewriting

Models: 100-00055-01

1 132
Download 132 pages 61.04 Kb
Page 51
Image 51
Chapter 7 Command Line Interface

Chapter 7 Command Line Interface

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:

Step Task

1Change directories to /usr/local/pnic/0.

2Enter the command vi rules.custom to edit dynamic rules (see Appendix D, on page 125 for information on vi).

3Enter rules according to the format described in “Writing Rules” on page 63.

4Save your changes and exit vi.

5Enter pnic compilerules to compile the new dynamic rules.

6Enter pnic loadrules upload the dynamic rules to the FPGA.

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.

P-Series Installation and Operation Guide, version 2.3.1.2

51

Page 51
Image 51
Force10 Networks 100-00055-01 Command Line Interface, CLI Commands, Editing Dynamic Rules with the CLI, MAC Rewriting