neighbor encapsulation

Sets the encapsulation type for an IPv4 neighbor, an IPv6 neighbor, or a peer group.

Syntax

neighbor { IPv4-address | IPv6-address | peer-group-name } { vxlan }
no neighbor { IPv4-address | IPv6-address | peer-group-name } {vxlan }

Command Default

None (SLX 9150 and SLX 9250 devices)

Parameters

IPv4-address
Specifies an IPv4 address.
IPv6-address
Specifies an IPv6 address.
peer-group-name
Specifies a peer group.
vxlan
Specifies VXLAN encapsulation.

Modes

BGP address-family L2VPN EVPN configuration mode

Usage Guidelines

The no form of the command restores the default.

Examples

The following example configures VXLAN encapsulation for an IPv4 neighbor.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family l2vpn evpn
device(config-bgp-evpn)# neighbor 10.1.1.1 encapsulation vxlan