Logo

EcoRouter

EcoNAT

EcoQOE

EcoBypass

English

Types of interfaces EcoRouter Documentation / Types of interfaces

Port

Port is a device in the EcoRouter, that works at the data-link level. Physical ports are located on the front panel of the router.

The logic of naming and enumeration are described in the Equipment section.

Port names are case-sensitive and must be specified only with a small letter.

By default, all ports are enabled on your device.

Below the basic port configuration commands are shown.

The transition to the level of a specific port's configuration. Where te1 is its name:

ecorouter (config) #port te1


Setting mtu values different from the standard in the range of 1504-9728. Optional parameter.

ecorouter (config-port) #mtu 1600


MTU (maximum transmission unit) means the maximum useful size of a data block in a packet (payload), which can be transmitted by the protocol without fragmentation. When saying MTU, usually relates to the link layer protocol of the OSI model.

For many network protocols MTU does not exceed 1522 but in EcoRouter it is possible to set the MTU value in the range from 82 to 9728. In this way it becomes possible to use Jumbo frame (ethernet-frame for transmitting the data, greater than 1500 bytes).


For administrative port shutdown use shutdown command in the port configuration context.

For administrative port turn on use no shutdown command in the port configuration context.

For both of these commands you will see report about link state changing.


If the port is turned off by system you will see in show port command its state like "administratively down".

All interfaces and service instances that are bound to the switched off port will be also switched off.


Example:

ecorouter#show port
Gigabit Ethernet [igb] port ge3 is up
MTU: 9728
LACP priority: 32767
Input packets 12757610, bytes 4507446111, errors 0
Output packets 41139047, bytes 47165314669, errors 0
Service instance ge3.olia is up
ingress encapsulation untagged
ingress rewrite none
egress encapsulation untagged
egress none
Connect bridge raccoon symmetric
Input packets 12757610, bytes 4507446111
Output packets 41139681, bytes 47165195683
Gigabit Ethernet [igb] port ge4 is down
MTU: 9728
LACP priority: 32767
Input packets 1468304, bytes 249589783, errors 0
Output packets 4598726, bytes 5586328327, errors 0
Service instance ge4.sergey is down
ingress encapsulation untagged
ingress rewrite none
egress encapsulation untagged
egress none
Connect bridge raccoon symmetric
Input packets 1468303, bytes 249590010
Output packets 4653951, bytes 5592867728
Gigabit Ethernet [igb] port ge5 is up
MTU: 9728
LACP priority: 32767
Input packets 6878595, bytes 3664083768, errors 0
Output packets 13210832, bytes 14688926470, errors 0
Service instance ge5.alexander is up
ingress encapsulation untagged
ingress rewrite none
egress encapsulation untagged
egress none
Connect bridge raccoon symmetric
Input packets 6878604, bytes 3664084308
Output packets 13212782, bytes 14688868859
Gigabit Ethernet [igb] port ge6 is down
MTU: 9728
LACP priority: 32767
Input packets 3103204, bytes 504476889, errors 0
Output packets 5093754, bytes 4810094601, errors 0
Service instance ge6.timurr is down
ingress encapsulation untagged
ingress rewrite none
egress encapsulation untagged
egress none
Connect bridge raccoon symmetric
Input packets 3103202, bytes 504475973
Output packets 5125510, bytes 4812650924
Gigabit Ethernet [igb] port ge7 is down
MTU: 9728
LACP priority: 32767
Input packets 0, bytes 0, errors 0
Output packets 0, bytes 0, errors 0

ecorouter(config)#port te0
ecorouter(config-port)#shutdown
ecorouter(config-port)#[Fri Sep  2 08:31:10 2016][INFO] PHYS: LINK is DOWN  on port 'te0(0)'
ecorouter#show port
 10 Gigabit Ethernet [none] port te0 is administratively down
  MTU: 9728
  LACP priority: 32767
   link state DOWN;
  Input packets 0, bytes 0, errors 0
  Output packets 0, bytes 0, errors 0
   Service instance te0.100 is down
    ingress encapsulation none
    ingress rewrite none
    egress encapsulation none
    egress none
    Input packets 0, bytes 0
    Output packets 0, bytes 0
   Service instance te0.200 is down
    ingress encapsulation dot1q any
    ingress rewrite none
    egress encapsulation dot1q any
    egress none
    Input packets 0, bytes 0
    Output packets 0, bytes 0
 
 10 Gigabit Ethernet [none] port te1 is up
  MTU: 9728
  LACP priority: 32767
   link state UP;
  Input packets 0, bytes 0, errors 0
  Output packets 0, bytes 0, errors 0
 
ecorouter(config-port)#no shutdown
ecorouter(config-port)#[Fri Sep  2 08:34:28 2016][INFO] PHYS: LINK is UP  on port 'te0(0)'
ecorouter#show port
 10 Gigabit Ethernet [none] port te0 is up
  MTU: 9728
  LACP priority: 32767
   link state UP;
  Input packets 0, bytes 0, errors 0
  Output packets 0, bytes 0, errors 0
   Service instance te0.100 is up
    ingress encapsulation none
    ingress rewrite none
    egress encapsulation none
    egress none
    Input packets 0, bytes 0
    Output packets 0, bytes 0
   Service instance te0.200 is up
    ingress encapsulation dot1q any
    ingress rewrite none
    egress encapsulation dot1q any
    egress none
    Input packets 0, bytes 0
    Output packets 0, bytes 0
 
 10 Gigabit Ethernet [none] port te1 is up
  MTU: 9728
  LACP priority: 32767
   link state UP;
  Input packets 0, bytes 0, errors 0
  Output packets 0, bytes 0, errors 0

Aggregated channel's interface

Link aggregation means combining several channels into a single logical link for increased bandwidth and redundancy. You can add ports to the aggregated link if they are parallel and configured identically. That is, aggregated channels must connect two devices in parallel.

Up to 8 ports can be aggregated in one on the same or different cards of the router. The speed characteristics of ports must match for the aggregation. Also the ports should not be attached to service instances. Service instance for the operations with VLAN tags will be configured at the aggregated port (read more in the "Service Instances" section).

Interface

Interface is a logical interface for the L3 address. Interface name is given by the administrator and is case sensitive (for example: intQQ and intqq, - are different interfaces). Only uppercase and lowercase letters, digits and '.' dot are allowed in the interface names.

In EcoRouterOS, there are L3 interfaces which serve to support certain functional (IP Demux, loopback interfaces, etc.) and are called respectively. As the name of ordinary logical interfaces for L3 addressing, you can not use the names of special interfaces (ALL NAMES ARE REGISTER-DEPENDENT):

  • demux.<number>,
  • loopback.<number>,
  • pppoe.<number>,
  • Null,
  • vlan.

The basic interface configuration going in the configuration mode:

ecorouter(config)#interface NAME

Creating a user interface. Where NAME is arbitrary name.

General view of the command line to configure interface (context mode of interface configuration).

ecorouter(config-if)#

An assignment of IP address with prefix.

ecorouter(config-if)#ip address 10.10.10.1/24    

An assignment of IP address with a subnet mask.

ecorouter(config-if)# ip address 10.10.10.1 255.255.255.0
Assigning a static MAC address.
ecorouter (config-if) # static-mac 1c87.7640.fa02
In this case, the base MAC address is stored in memory (it can be viewed using the show interface <NAME> command). To return to the base MAC address, use the no static-mac command.

Start the interface.

ecorouter(config-if)#no shutdown    

Shut down the interface.

ecorouter(config-if)# shutdown    

Loopback Interface

Loopback Interface is a virtual loop L3 interface. The name of the loopback interface is defined by the administrator and is case sensitive (for example: Int loopback.QQ and Int loopback.qq, - are different interfaces). The format of the name of the interface: loopback.<NAME> where <NAME> is a number.

In EcoRouterOS, loopback interface numbers must be unique among all created virtual routers. That is, the name loopback.100 can not be used in VR1 and VR2. If one try to use the same name in another virtual device, EcoRouterOS will display an error message explaining that the interface is being used on another device.

Basic setting of the loopback interface:

ecorouter(config)#interface loopback.111

Creating the loopback interface.

ecorouter(config-if-loopback)#ip address 1.1.1.1/32

An assignment of IP address with prefix.


Or:   

ecorouter(config-if-loopback)#ip address 1.1.1.1 255.255.255.255

Assignment of IP address with a subnet mask.

ecorouter(config-if-loopback)#no shutdown

Start the interface.

ecorouter(config-if-loopback)#shutdown

Shut down the interface.

IP Demux Interface

IP Demux Interface is a virtual L3 interface which can be assigned to the IP address from the routed subnet.

Sending packets to the other subnets will be performed by means of binding to a specific port with a set of service instances.

Basic setup of IP demux interface:

CommandDescription

interface demux.<NAME>

Creating demux interface. Where <NAME> is a number

ip address <IP>/<MASK>An assignment of IP address with prefix

Example:

ecorouter(config)#interface demux.0
ecorouter(config-if-demux)#ip address 10.10.10.1/24

Bridge domain

Bridge domain is the local broadcast domain of the second OSI model layer, which  exists separate from the concept of VLAN and operates virtual subnets. Bridge domain is created on each device separately and is relevant only for it.

This separation allows you to define different virtual subnets to the one port and to manage individual virtual domains flexibly. Thereby the scalability limit caused by the global VLAN bound to a specific device of the segment is removed.

Bridge domain is constructed from one or more L2 service interfaces, called service-instance.

Command to create bridge domain: bridge <NAME>. Where NAME is an arbitrary name.

Bridge Domain Interface

Bridge Domain Interface (BDI) is a logical interface that allows you to organize a bi-directional flow of traffic between the networks from the bridge domain to the L3 routing interfaces.

Basic configuration of the interface:

CommandDescription

interface <NAME>

Creating a bridge domain interface. Where NAME is an arbitrary name

ip address <IP><MASK>

Assignment of IP address with a subnet mask

connect to bridge <NAME>Attach to the previously created bridge

Example:

ecorouter(config)#interface NAME
ecorouter(config-if)#ip address 10.10.10.1 255.255.255.255
ecorouter(config-if)#connect to bridge NAME

 

PPPoE interface

The Point-to-Point Protocol over Ethernet (PPPoE) is a network protocol for encapsulating PPP frames inside Ethernet frames. The PPPoE mostly used by xDSL services and provides additional features (authentication, encryption, and compression).

The PPPoE server configuration command in EcoRouter are shown in the table below.

Command

Description

pppoe-profile <PROFILE_NAME>

The command is available in configuration mode (config). As a result of the command execution a profile will be created. In the profile the PPPoE parameters, settings for creating PPP connections, subscriber map and method for distributing ip-addresses to subscribers can be specified.

interface pppoe.<IF_NUMBER>

The command is available in configuration mode (config). As a result of the command execution pppoe interface will be created. Further its parameters will be used for PPPoE session establishement.

profile <PROFILE_NAME>

The command is available in context pppoe-interface configuration mode (config-if-pppoe). As a result of the command execution the PPPoE protocol will be enabled on the interface, and specified profile parameters will be used.

Service Instance

Service instance (subinterface, SI) is a logical subinterface operating between L2 and L3 levels. This type of interface is needed to connect the physical port with L3 interface, a bridge, ports. It is used for flexible traffic management which is based on the presence of VLAN tags in the frames, or the lack thereof. Through the service instance passes all traffic that entering the port. There can be a lot of service instances at the one port that handle different VLAN tags in the different ways.

The command to create the service instance: service-instance <NAME>.

Subinterface name is set by the administrator. In every line of service instance can have only one traffic attribute.

Example:

ecorouter(config)#port te0

The service instance is created in the port configuration mode.

ecorouter(config-port)#service-instance 100
Creating service instance.
ecorouter(config-service-instance)#encapsulation dot1q 4

Specifies the number of processed VLAN.

ecorouter(config-service-instance)#rewrite pop 1

Specifies the operation.

ecorouter(config-service-instance)#connect ip interface e1

Specifies in which interface you want to send the processed frames.

Interface status view Command Reference

View the status and current configuration of ports, interfaces and subinterfaces is carried out using the show commands. Here are some examples.

View the status and current configuration of all ports:

ecorouter#show port
te0 is up
 Type:  [10 Gigabit Ethernet]
 MTU: 9728[82-9728]
  link state UP;  
 Input packets 0, bytes 0, errors 0
 Output packets 0, bytes 0, errors 0
te1 is up
 Type:  [10 Gigabit Ethernet]
 MTU: 9728[82-9728]
  link state UP;  
 Input packets 0, bytes 0, errors 0
 Output packets 0, bytes 0, errors 0
 Service instance te1/QQ1 is up

View the status and configuration of a specific port:

ecorouter#show port te0
te0 is up
 Type:  [10 Gigabit Ethernet]
 MTU: 9728[82-9728]
  link state UP;  
 Input packets 0, bytes 0, errors 0
 Output packets 0, bytes 0, errors 0

View port channel interface status:

ecorouter#show port channel

A detailed view of the status of all created interfaces:

ecorouter#show interface  
Interface e56[11] is up, line protocol is up
 Ethernet address 0000.ab80.d303
 MTU: 1500 [68-65536]
NAT: no
 ICMP redirection is on
 Label switching is disabled
 <UP,BROADCAST,RUNNING,MULTICAST>
 inet 10.10.10.1/24 broadcast 10.10.10.255/24
  Input packets 0, bytes 0
  Output packets 0, bytes 0
Interface e3[10] is up, line protocol is up
 Ethernet address 0000.ab80.d303
 MTU: 1500 [68-65536]
NAT: no
 ICMP redirection is on
 Label switching is disabled
 <UP,BROADCAST,RUNNING,MULTICAST>
 DHCP Proxy is enabled
  128.66.1.1
  Input packets 0, bytes 0
  Output packets 0, bytes 0

A detailed view of the status and configuration for a specific interface:

ecorouter#show interface e3
  Interface e3[10] is up, line protocol is up
  Snmp index: 7
  Ethernet address: 1234.ab00.00ff (configured)
  Base MAC: 1c87.7640.fa02 (not in use)
  MTU: 1500
  NAT: no
  ICMP redirection is on
  Label switching is disabled
  <UP,BROADCAST,RUNNING,MULTICAST>
  Connect port te0 service instance te0/e1 symmetric
  inet 100.200.200.253/31
  total input packets 156, bytes 14976
  total output packets 156, bytes 14976

A short view of the status of all created interfaces:

ecorouter#show interface brief
Interface        Status           Protocol         Description
---------------------------------------------------------------
e56              up               up                
e3               up               up               Users

View information about sessions across IP demux interface. Where the logical and physical address of the host, the router port number at which it is turned on and the VLAN number are specified.

ecorouter#show ip-unnumbered-table e10
IP Address      MAC Address     Port       C-tag      S-tag
-----------------------------------------------------------
10.10.10.2      0050.7966.6800  <1>        2          -----

All interfaces and ports are enabled by default. To disable the interface or port should be given the shutdown command in configuration mode of interface or port.

ecorouter#configure terminal
ecorouter(config)#port te0
ecorouter(config-port)#shutdown
ecorouter(config-port)#
ecorouter#show port te0
te0 is administratively down

The line «administratively down» indicates that the port is now disabled.

 Type:  [10 Gigabit Ethernet]
 MTU: 9728[82-9728]
  link state DOWN;  
 Input packets 0, bytes 0, errors 0
 Output packets 0, bytes 0, errors 0

SFP modules show commands

To view a summary of the SFP-module, use the administrative mode command show transceiver.

The show transceiver command displays information about all the ports, and its modification show transceiver port <NAME> displays information about a specific port.

It is possible to use modifiers for this command and outputting in the file the same as for the other show commands.

For SFP-module is displayed the information presented in the table below.

Parametr

Description

Module Type

Transmitter Type:

  • 1000BASE-T - 1000BASE-T standard module - 1 Gbit/s, twisted pair, segment length up to 100 meters;
  • 100BASE-FX - 100BASE-FX standard module - 100 Mbit/s, the maximum segment length 412 meters for full-duplex and half-duplex for 2 km multimode fiber mode;
  • 1000BASE-SX - 1000BASE-SX standard module - 1 Gbit/s multimode fiber with 220/550-meter-long segment;
  • 1000BASE-LX - 1000BASE-LX standard module - 1 Gbit/s, the maximum length of 550 meters for multimode fiber segment and 5 km for single-mode;
  • 100BASE-LX - 100BASE-LX standard module - 100 Mbit/s, the maximum segment length of 15 kilometers in full-duplex mode, a pair of single-mode optical fibers;
  • Unspecified - unknown type of module.

Module Vendor Name

Manufacturer

Module Part Number

Vendor code

Module Serial Number

Serial number

Module Revision

Version

Module Manufacturing Date

Date of manufacture. Format: YYMMDD

Module supports DDM

Support of the function of the Digital Diagnostics Monitoring (temperature, voltage, etc.)

Module temperature

Module temperature in degrees Celsius. This option is available with the support of DDM

Module voltage

Tension on the module volts. This option is available with the support of DDM

 For the "copper" interfaces this information is not available, instead it will contain the string: "Module doesn't identify itself as SFF-compatible".

Example of the information output:

ecorouter#show transceiver
 Port: te0
  Module doesn't identify itself as SFF-compatible
 
 Port: te1
  Module doesn't identify itself as SFF-compatible
 
 Port: te2
  Module doesn't identify itself as SFF-compatible
 
 Port: ge0
  Module Type: 1000BASE-T
  Module Vendor Name: FiberTrade      
  Module Part Number: SFP-Copp-10-1000
  Module Serial Number: FT1601190702    
  Module Revision: A   
  Module Manufacturing Date: 160119  
  Module supports DDM: no
 
 Port: fe0
  Module Type: 100BASE-FX
  Module Vendor Name: FiberTrade      
  Module Part Number: FT-SFP-GE-100FX
  Module Serial Number: FGF32M03        
  Module Revision: 1.0
  Module Manufacturing Date: 160527  
  Module supports DDM: no
 
 Port: ge1
  Module Type: 1000BASE-T
  Module Vendor Name: OptiCin         
  Module Part Number: SFP-RJ45        
  Module Serial Number: TA2C010008      
  Module Revision: A   
  Module Manufacturing Date: 100305  
  Module supports DDM: no
 
 Port: fe1
  Module Type: Unspecified
  Module Vendor Name: OEM             
  Module Part Number: PPH-1302-02CD   
  Module Serial Number: P0816060804     
  Module Revision: 1.0
  Module Manufacturing Date: 160613  
  Module supports DDM: yes
  Module temperature: 24.00 C
  Module voltage: 3.28 Volt