Vyatta NOS documentation

Learn how to install, configure, and operate Vyatta Network Operating System (Vyatta NOS), which helps to drive our virtual networking and physical platforms portfolio.

interfaces openvpn <vtunx> device-type tap

Configures an OpenVPN interface as a tap device.

set interfaces openvpn vtunx device-type tap
delete interfaces openvpn vtunx device-type tap
show interfaces openvpn vtunx device-type

The OpenVPN interface is configured as a tun device.

vtunx
The identifier for the OpenVPN interface. This may be vtun0 to vtunx, where x is a non-negative integer.

Configuration mode

interfaces {
    openvpn vtunx {
        device-type {
            tap
        }
    }
}

Use this command to configure an OpenVPN interface as a tap device.

By default, an OpenVPN interface is configured as a tun device. A tun device is a virtual network interface that operates on Layer 3 (network layer) traffic, such as IP packets. A tap device is also a virtual network interface, but it operates on Layer 2 (link layer) traffic. A tap device is used in instances when two ends of an OpenVPN tunnel must be bridged or require a broadcast interface. A sample instance is DHCP Relay.

Note: Each end of an OpenVPN tunnel must have the same device-type configuration.

Use the set form of this command to configure an interface as a tap device.

Use the delete form of this command to return an interface to its default behavior, that is, the interface is configured as a tun device.

Use the show form of this command to view the device-type configuration.