Basic Interface Functions

Basic Interface Functions

1. Function Overview

Here we explain the basic interface functions of this product.

3. Function Details

3.1. Interface types

This product can handle the five interface types shown in the table below.

Interface types Interface ID Explanation

LAN port

port

This is a physical port of this product.
This interface is expressed as port followed by “port number printed on the chassis”.

Specifying LAN port #1: port1.1

VLAN interface

vlan

This is a User-defined VLAN.
This interface is expressed as vlan followed by “VLAN ID”.
Specifying VLAN1: vlan1

Static logical interface

sa

This is the User-defined link aggregation.
Multiple LAN ports can be grouped together and used as one interface.
This interface is expressed as “sa” followed by “logical link ID”.

Specifying a static logical interface for logical link ID #1: sa1

3.2. Interface control

The interface on this product can be controlled as shown in the table below.

  • Interface control items for each port

    Control items Commands Explanation

    Set description

    description

    Sets the description text for the applicable interface.

    Enable/disable

    shutdown

    Enables/disables the interface.

    Communication speed/communication mode

    speed-duplex

    Sets the communication speed and communication mode for the interface. (Select from the following values.)
    - Auto negotiation
    - 1Gbps / Full duplex
    - 100Mbps / Full duplex
    - 100Mbps / Half duplex
    - 10Mbps / Full duplex
    - 10Mbps / Half duplex

    Cross/straight automatic detection
    (Auto MDI/MDI-X function)

    mdix

    Automatically detects the port type (MDI or MDI-X) of the connected port and the cable type (cross or straight). This function gives the ability to interconnect without dependency.

    Speed downshift

    -

    This function automatically reduces the speed and attempts to link when a LAN cable that cannot be used with 1000BASE-T is connected.
    This function is always enabled for LAN ports. (Cannot be disabled.)

    EEE

    eee

    Sets whether to use the energy saving technology for Ethernet (EEE: Energy Efficient Ethernet).
    This is standard for IEEE 802.3az.

  • System-wide (common to all ports) interface control items

    Control items Commands Explanation

    MRU

    mru

    Sets the maximum frame size that can be received by the interface, within a range of 1,522–10,240 bytes.

    BPDU pass through

    pass-through bpdu

    Sets whether to enable/disable the transmission of BPDU frames (control frames used in the spanning tree).

    EAP pass through

    pass-through eap

    Sets whether to enable or disable the transmission of EAP frames (authentication frames used in IEEE 802.1X authentication).

Command control of each interface is performed as shown on the table below.

  • Interface control functionality chart

    Interface name Set description Enable/disable Communication speed/communication mode Cross/straight automatic detection EEE

    LAN port

    Yes

    Yes

    Yes

    Yes

    Yes

    VLAN interface

    Yes

    No

    No

    No

    No

    Static logical interface

    Yes

    Yes

    No

    No

    No

3.3. LAN port defaults

The product LAN ports are in the following state given default settings.

  • All LAN ports function as access ports (ports that handle untagged frames), and belong to the default VLAN (VLAN #1).

  • An IPv4 address (192.168.100.240/24) is assigned to the default VLAN (VLAN #1) to which all LAN ports belong.

3.4. Port mirroring

This product provides a port mirroring function, which copies the data traffic from a selected LAN port to another specified port.
The communication status can be analyzed by collecting the copied packets.
This product allows you to specify four mirror ports, making all other LAN ports allocable as “monitor ports.”
However, the following restrictions apply.

  • A single monitor port cannot be mirrored to multiple mirror ports.

  • A port set as a mirror port cannot be used as a monitor port.

  • A LAN port that belongs to a logical interface cannot be used as a mirror port.

The monitoring direction (transmit/receive, transmit only, receive only) can be selected for the monitor ports.
The mirror command can be used to set the port mirroring.
The mirror port setting is disabled by default.

3.5. Frame counter

This product counts the number of frames transmitted/received for each LAN port. (This is called a “frame counter”.)
To reference the frame counter, use the show frame counter command.
The table below shows the display items for the frame counter and their maximum values.

  • Received frame counter display items

    Display item Explanation Maximum value

    packets (*1)

    Number of received packets

    4,294,967,295

    octets

    Number of octets received

    18,446,744,073,709,551,615

    total-good-packets (*2)

    Number of packets received successfully

    4,294,967,295

    total-error-packets (*2)

    Number of reception error packets
    (CRC error, alignment error, frame size error)

    4,294,967,295

    drops (*2)

    Number of packets discarded during reception due to a filter function or other reasons

    4,294,967,295

    broadcast-and-multicast-packets

    Broadcast and multicast packets received

    4,294,967,295

    64octet packets

    Number of 64-octet packets received

    4,294,967,295

    65-127octet packets

    Number of 65 to 127-octet packets received

    4,294,967,295

    128-255octet packets

    Number of 128 to 255-octet packets received

    4,294,967,295

    256-511octet packets

    Number of 256 to 511-octet packets received

    4,294,967,295

    512-1023octet packets

    Number of 512 to 1,023-octet packets received

    4,294,967,295

    1024-MAXoctet packets

    Number of 1,024 to maximum-octet packets received (*3)

    4,294,967,295

    (*1) : The packet value is the total of the (*2) packets.
    (*3) : The value will change, depending on the specified MRU value.

  • Transmitted frame counter display items

    Display item Explanation Maximum value

    packets (*1)

    Number of packets transmitted

    4,294,967,295

    octets

    Number of octets transmitted

    18,446,744,073,709,551,615

    total-good-packets (*2)

    Number of packets transmitted successfully

    4,294,967,295

    total-error-packets (*2)

    Number of transmission error packets
    (Frame size error)

    4,294,967,295

    drops (*2)

    Number of packets discarded during transmission
    (Since no discarding occurs on the sending side, the counter value is always 0.)

    -

    broadcast-and-multicast-packets

    Broadcast and multicast packets transmitted

    4,294,967,295

    64octet packets

    Number of 64-octet packets transmitted

    4,294,967,295

    65-127octet packets

    Number of 65 to 127-octet packets transmitted

    4,294,967,295

    128-255octet packets

    Number of 128 to 255-octet packets transmitted

    4,294,967,295

    256-511octet packets

    Number of 256 to 511-octet packets transmitted

    4,294,967,295

    512-1023octet packets

    Number of 512 to 1,023-octet packets transmitted

    4,294,967,295

    1024-MAXoctet packets

    Number of 1,024 to maximum-octet (*3) packets transmitted

    4,294,967,295

    (*1) : The packet value is the total of the (*2) packets.
    (*3) : The value will change, depending on the specified MRU value.

The frame counter can also be cleared by using the clear counters command.

When you execute the show interface command to display the LAN port status, the frame counter value to be displayed will be
the same frame counter value as the show frame-counter command.

4. Related Commands

Related commands are indicated below.
For command details, refer to the command reference.

  • Basic interface functions: list of related commands

    Operations Operating commands

    Set description

    description

    Shutdown

    shutdown

    Set communication speed and communication mode

    speed-duplex

    Set cross/straight automatic detection

    mdix auto

    Set EEE

    eee

    Show EEE status information

    show eee status

    Set MRU

    mru

    Set BPDU pass through

    pass-through bpdu

    Set EAP pass through

    eap-through bpdu

    Set port mirroring

    mirror

    Show mirroring port status

    show mirror

    Show interface status

    show interface

    Show simplified interface status

    show interface brief

    Show frame counter

    show frame-counter

    Clear frame counters

    clear counters

5. Examples of Command Execution

5.1. Basic LAN port settings

Some examples of basic LAN port settings are shown below.
For details on how to make the settings, refer to the Command Reference.

  • Set the description text for LAN port #1 (port1.1).

    Yamaha(config)#interface port1.1
    Yamaha(config-if)#description Connected to rtx1210-router
  • Disable LAN port #1 (port1.1).

    Yamaha(config)#interface port1.1
    Yamaha(config-if)#shutdown
  • Enable LAN port #1 (port1.1).

    Yamaha(config)#interface port1.1
    Yamaha(config-if)#no shutdown
  • Set the communication speed and communication mode for LAN port #1 (port1.1) to 100Mbps/Full.

    Yamaha(config)#interface port1.1
    Yamaha(config-if)#speed-duplex 100-full

5.2. Mirroring settings

In this example, we will set LAN port #1 to monitor the frames transmitted by LAN port #4 and the frames transmitted by LAN port #5.
The roles of the ports are shown below.

  • Mirror port: LAN port #1 (port1.1)

  • Monitor port: LAN port #4 (port1.4), LAN port #5 (port1.5)

    1. Set the monitor port for mirror port LAN port #1 (port1.1).

      Yamaha(config)#interface port1.1
      Yamaha(config-if)#mirror interface port1.4 direction both (1)
      Yamaha(config-if)#mirror interface port1.5 direction transmit (2)
      1 Monitor transmitted and received frames
      2 Monitor transmitted frames
    2. Confirm the mirroring settings.

      Yamaha#show mirror
      Monitor Port  Mirror Port  Direction
      ============= ============ ==========
      port1.1       port1.4      both
                    port1.5      transmit

5.3. Show LAN port information

  • Confirm the status of LAN port #1 (port1.1).

    Yamaha#show interface port 1.1
    Interface port1.1
      Link is UP
      Hardware is Ethernet
      HW addr: 00a0.deae.b89f
      MRU 1522
      BPDU pass-through: Enabled
      EAP pass-through: Enabled
      Description: Connected to router
      ifIndex 5001
      Speed-Duplex: auto(configured), 1000-full(current)
      Auto MDI/MDIX: on
      Vlan info :
        Switchport mode        : access
        Ingress filter         : enable
        Acceptable frame types : all
        Default Vlan           :    1
        Configured Vlans       :    1
      Interface counter:
        input  packets                        : 34753
               bytes                          : 7806026
               drops                          : 12535
               broadcast-and-multicast-packets: 21176
        output packets                        : 10351
               bytes                          : 864389
               drops                          : 0
               broadcast-and-multicast-packets: 7039