Ethernet interfaces represent NICs in the management system.

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

vsr running config# vrf main
vsr running vrf main# interface physical eth0
vsr 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-port command.

vsr running physical eth0#! show state / network-port
network-port pci-b0s3
    bus-addr 0000:00:03.0
    vendor "Red Hat, Inc"
    model "Virtio network device"
    mac-address 52:54:00:12:34:57
    interface eth0
network-port pci-b0s9
    bus-addr 0000:00:09.0
    vendor "Red Hat, Inc"
    model "Virtio network device"
    mac-address de:ad:de:01:02:03
    interface eth1
network-port pci-b0s8
    bus-addr 0000:00:08.0
    vendor "Red Hat, Inc"
    model "Virtio network device"
    mac-address 52:54:00:12:34:56
    interface eth2
vsr running physical eth0#!

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

vsr running physical eth0#! port pci-b0s8

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

vsr running physical eth0# commit
vsr running physical eth0# show state / vrf main interface physical eth0
physical eth0
    mtu 1500
    enabled true
    port pci-b0s8
    oper-status UP
        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
        address fe80::a00:27ff:fea9:a96e/64
        mac-address 08:00:27:a9:a9:6e
vsr running physical eth0#

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

vsr> show config xml absolute vrf main interface physical eth0
<config xmlns="urn:6wind:vrouter">
    <interface xmlns="urn:6wind:vrouter/interface">

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 fast path control plane protection section for details.

See also

The command reference for details.