N-Tron 9000 Series User Manual

Page 104

Advertising
background image

5/17/2007 page 104 of 138

Parameters

port-no
Port number. (1 ~ 26)

Examples

N-TRON/Admin#[1]> port get duplexmode 4
Duplex mode of [4] port is: [half]
N-TRON/Admin#[2]> port get duplexmode 23
Duplex mode of [23] port is: [full]

NOTES

Check whether port-no is in the valid range. (1 ~ 26)

Set the port duplex mode

Command Name

port set duplexmode

Description

Sets the port duplex mode (HALF_DUPLEX / FULL_DUPLEX) for a
given port number.

Syntax

port set duplexmode <port-no> <full | half>

Parameters

port-no
Port number. (1~24)
full | half
Duplex mode of the port. Duplex mode must be either
FULL_DUPLEX or HALF_DUPLEX.

Examples

N-TRON/Admin#[1]> port set duplexmode 4 full
N-TRON/Admin#[2]> port set duplexmode 4 half

NOTES

Check whether port-no is in the valid range. (1 ~ 24)

Set the Lockstate of a given port

Command Name

port set lockstate

Description

Sets the lock state of a given port to either enable or disable. If the port lock
is enabled, the switch can process the data packets only from locked MAC
addresses. Other data packets will not be processed.

Syntax

port set lockstate <port-no> <enable | disable>

Parameters

port-no

port number (1 ~ 26)

enable | disable
Lock enable or disable

Examples

N-TRON/Admin#[1]> port set lockstate 5 disable
N-TRON/Admin#[2]> port set lockstate 8 enable

NOTES

Once the port is locked, all the MACs that are learned on that port are
treated as static MACs. This means the switch can process the packets
from those MACs only. It will discard all packets from other MACs.
Because the MAC is set for that port, it will only be addressable via that
port.

Get Lock State

Command Name

port get lockstate

Description

Gets the lock state for a given port.

Syntax

port get lockstate <port-no>

Parameters

port-no

port number (1 ~ 26).

Examples

N-TRON/Admin#[1]> port get lockstate 6
LockState : [enable]
N-TRON/Admin#[2]> port get lockstate 24
LockState : [disable]

NOTES

Check whether port-no is in the valid range. (1 ~ 26)



Get Auto-negotiation State

Command Name

port get autonego

Description

Gets the auto negotiation mode for a given port.

Syntax

port get autonego<port-no>

Parameters

port-no

Port number (1 ~ 24).

Examples

N-TRON/Admin#[1]> port get autonego 6
Auto negotiation mode is : [enabled]
N-TRON/Admin#[2]> port get autonego 24

Advertising