Chapter 33 Command Examples

Enable port one for configuration.

Enable bandwidth control.

Set the outgoing traffic bandwidth limit to 5000Kbps.

Set the guaranteed bandwidth allowed for incoming traffic to 4000Kbps.

Set the maximum bandwidth allowed for incoming traffic to 8000Kbps.

Figure 148 bandwidth-limit Command Example

sysname(config)# interface port-channel 1 sysname(config-interface)# bandwidth-limit sysname(config-interface)# bandwidth-limit egress 5000 sysname(config-interface)# bandwidth-limit cir 4000 sysname(config-interface)# bandwidth-limit pir 8000

33.8.5 mirror

Syntax:

mirror

mirror dir <ingressegressboth>

where

<ingressegres

sboth>

Enables port mirroring on the interface.

Enables port mirroring for incoming, outgoing or both incoming and outgoing traffic.

Port mirroring copies traffic from one or all ports to another or all ports for external analysis. An example is shown next.

Enable port mirroring.

Enable the monitor port three.

Enable ports one, four, five and six for configuration.

Enable port mirroring on the interface.

Enable port mirroring for outgoing traffic. Traffic is copied from ports one, four, five and six to port three in order to examine it in more detail without interfering with the traffic flow on the original port(s).

Figure 149 mirror Command Example

sysname(config)# mirror-port sysname(config)# mirror-port 3 sysname(config)# interface port-channel 1,4-6 sysname(config-interface)# mirror sysname(config-interface)# mirror dir egress

33.8.6 gvrp

Syntax:

gvrp

 

251

GS-3012/GS-3012F User’s Guide