Set port flow control command, Set ip route command, Set port flow control command set ip route command – Motorola CAJUN P120 User Manual

Page 101

Advertising
background image

Chapter 7

Cajun Campus CLI (Command Line Interface)

Cajun P120 User’s Guide

87

Example:

To mirror all traffic from port 4 into port 5:

Console>(enable)

set port mirror source-port 4 mirror-port 5 sampling always

direction both

Mirroring both Rx and Tx packets from port 4 to port 5 is enabled.

Console>(enable)

Set Port Flow Control Command

Setting of flow control advertisement capabilities for Giga ports (only):

When giga auto-negotiation is enabled (via "set port negotiation … enable"
command, or via snmp), the "set port flowcontrol …" command decides on the
pause capabilities only.

When giga auto-negotiation is disabled (via "set port negotiaton … disable
command, or via snmp), the "set port flowcontrol …" command decides on the
flow control mode itself.

The

show port flowcontrol

command displays "admin" and "oper" statuses

for both the receiving and the sending of FC frames (a total of 4 statuses). "Admin"
will refer to the pause capabilities, while "oper" will report the flow control mode
decided together with the other side. Here, when "admin / rcv" is on and "admin /
snd" is off, it refers to the pause capability state "symAndAsymRxFlowcontrol".

Set IP Route Command

Use the

set ip route

command to add IP addresses to the IP routing table. You

can configure one default gateway with up to ten (10) default gateways for P120
family.

The syntax for this command is:

set ip route <0.0.0.0> <gateway IP>

Example:

This example shows how to add a default route to the IP routing table:

Console>(enable) set ip route 0.0.0.0 192.122.173.42

Console>(enable)

gateway IP

IP address of the default gateway to access the network

Advertising