interfaces openvpn <vtunx> device-type tap
Configures an OpenVPN interface as a tap device.
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.
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.