Ethernet

Overview

Ethernet interfaces represent NICs in the management system.

To create an Ethernet interface, use the interface physical command in a VRF.

vrouter running config# vrf main
vrouter running vrf main# interface physical eth0
vrouter running physical eth0#!

The exclamation mark at the end of the prompt means that the configuration is incomplete. This is because Ethernet interfaces require a port identifier.

The matching between port identifiers and PCI identifiers of Network Interface Cards is displayed system using the show state / network-ports command.

vrouter running physical eth0#! show state / network-port
network-port pci-b0s3
    pci-bus-addr 0000:00:03.0
    vendor "Red Hat, Inc"
    model "Virtio network device"
    ..
network-port pci-b0s9
    pci-bus-addr 0000:00:09.0
    vendor "Red Hat, Inc"
    model "Virtio network device"
    ..
network-port pci-b0s8
    pci-bus-addr 0000:00:08.0
    vendor "Red Hat, Inc"
    model "Virtio network device"
    ..
vrouter running physical eth0#!

Use the port command to associate a port identifier to the Ethernet interface:

vrouter running physical eth0#! port pci-b0s8

After committing the configuration, we can fetch the state of the interface using the following command:

vrouter running physical eth0# commit
vrouter running physical eth0# show state / vrf main interface physical eth0
physical eth0
    mtu 1500
    enabled true
    port pci-b0s8
    oper-status UP
    counters
        in-octets 0
        in-unicast-pkts 0
        in-discards 0
        in-errors 0
        out-octets 0
        out-unicast-pkts 6
        out-discards 0
        out-errors 0
        ..
    ipv6
        address fe80::a00:27ff:fea9:a96e/64
        ..
    ethernet
        mac-address 08:00:27:a9:a9:6e
        ..
    ..
vrouter running physical eth0#

The same configuration can be applied using the following NETCONF XML configuration:

vrouter> show config xml absolute vrf main interface physical eth0
<config xmlns="urn:6wind:vrouter">
  <vrf>
    <name>main</name>
    <interface xmlns="urn:6wind:vrouter/interface">
      <physical>
        <name>eth0</name>
        <enabled>true</enabled>
        <ipv4>
          <enabled>true</enabled>
        </ipv4>
        <ipv6>
          <enabled>true</enabled>
        </ipv6>
        <port>pci-b0s8</port>
      </physical>
    </interface>
  </vrf>
</config>

Control Plane Protection

Control Plane Protection is a software mechanism that reduces the risk of dropping control packets. It can be enabled on physical interfaces when the fast path is running. See the |fp| context section for details.

See also

The command reference for details.