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