Configure a VXLAN tunnel on router R2
An example that shows you how to configure a VXLAN tunnel on a router (R2
).
- Specify the bridge domain address.
vyatta@R2# set interfaces bridge br1 address 1.1.1.3/24
- Specify that traffic transmitted between
R2
andH1
uses interfacedp0p1s2
and is associated with bridgebr1
.vyatta@R2# set interfaces dataplane dp0p1s2 bridge-group bridge br1
- Specify that interface
dp0p1s1
connects to IP address10.10.2.3.24
as the source VTEP forR2
.vyatta@R2# set interfaces dataplane dp0p1s1 address 10.10.2.3/24
- Specify that tunnel
tun0
is to be used for bridge groupbr1
.vyatta@R2# set interfaces tunnel tun0 bridge-group bridge br1
- Specify that the tunnel
tun0
is a VXLAN tunnel.vyatta@R2# set interfaces tunnel tun0 encapsulation vxlan
- Specify the local IP address to be used by the tunnel.
vyatta@R2# set interfaces tunnel tun0 local-ip 10.10.2.3
- Specifies the remote IP address to be used by the tunnel.
vyatta@R2# set interfaces tunnel tun0 remote-ip 10.10.2.2
- Specifies the VXLAN ID of the tunnel
tun0
.vyatta@R2# set interfaces tunnel tun0 vxlan-id 5000