6.2. Data Interfaces#

6.2.1. Configuration#

To configure the data interface with the name IFNAME, you need to enter its configuration mode:

interface IFNAME#

All commands described below are entered in the interface configuration mode. This section describes the basic commands to configure interfaces. Commands related to the specific dynamic routing protocols are described in the corresponding sections.

description LINE...#

Set the interface description.

shutdown#

Administratively shutdown the interface. By default, all interfaces are enabled.

mac X:X:X:X:X:X#

Set the MAC address of the interface.

ip address A.B.C.D/M#

Assign an IPv4 address to the interface. You can add several addresses to one interface.

ipv6 address X:X::X:X/M#

Assign an IPv6 address to the interface. You can add several addresses to one interface.

ip nat <inside|outside>#

Enable NAT for IPv4 traffic on the interface. The inside type should be set on interfaces facing subscribers, and the outside type should be set on interfaces facing the Internet. By default, NAT is not enabled for IPv4, and the traffic is routed without address translation.

ipv6 nat <inside|outside>#

Enable NAT for IPv6 traffic on the interface. The inside type should be set on interfaces facing subscribers, and the outside type should be set on interfaces facing the Internet. By default, NAT is not enabled for IPv6, and the traffic is routed without address translation.

mtu (68-9216)#

Set the L2 MTU of the interface. By default, the L2 MTU is 1500 bytes.

ip mtu (68-9216)#

Set the IPv4 MTU of the interface. This MTU will be used in case it is necessary to fragment IPv4 packets when sending. By default, IPv4 MTU is equal to L2 MTU.

ipv6 mtu (1280-9216)#

Set the IPv6 MTU of the interface. This MTU will be used in case it is necessary to fragment IPv6 packets when sending. By default, IPv6 MTU is equal to L2 MTU.

bond IFNAME#

Add the interface to the IFNAME bond. The aggregation configuration is described in the Link Aggregation section.

vrf VRFNAME#

Add the interface to the VRFNAME VRF. The VRF configuration is described in the VRF section.

6.2.2. Show Commands#

show interface [KEYS]#

Display the following information for all interfaces:

  • Admin and Oper status

  • Ethernet status

  • MTU

  • IPv4 and IPv6 NAT type

  • IPv4 and IPv6 addresses

  • Interface speed

  • Duplex

  • Autonegotiation On/Off

  • Input/Output rate

  • RX and TX statistics

You can specify following keys:

Keys

Description

IFNAME

Display information for the specified interface

IFNAME nexthop-group

Display nexthop group information for the specified interface

IFNAME transceiver

Display SFP transceiver information for the specified interface

brief

Display brief information for all interfaces such as: interface name, its status, VRF belonging, and IP address

debug

Display debugging information for RX and TX statistics in addition to general one:

  • RX Overruns There are no free packets in the packet pool to allocate to read data from the network interface queue. There are no drops in this case. When the network interface queue is full, the Discard counter will start increasing

  • RX Invalid VLAN The packet came on the interface with VLAN ID that is not configured on this interface

  • RX Unsupported Unsupported Ethernet types

  • TX Overruns There is not enough space in the network interface queue to put a packet in to send it. No loss in this case. The attempts to send the packet will be continued

description

Display description for each interface

rate

Display I/O traffic loading (in pps and bps) for all interfaces

vrf NAME brief

Display brief information of the interfaces for the specified VRF

vrf all brief

Display brief information of the interfaces for all VRF

clear interface IFNAME#

Clear RX and TX statistics for all interfaces or for the specified one.