Configure a VXLAN-GPE tunnel on the router R1
An example that shows you how to configure a VXLAN-CPE tunnel on a router (R1
).
- Specify the interface for communications from
Host1
toR1
.vyatta@R1# set interfaces dataplane dp0p1s1 address 10.10.1.2/24
- Specify the interface for communications from
R1
to the IP transport network.vyatta@R1# set interfaces dataplane dp0p1s2 address 10.10.2.2/24
- Specify the local IP address of the tunnel
tun0
.vyatta@R1# set interfaces tunnel tun0 address 10.5.5.2/24
- Specify that the tunnel
tun0
is a VXLAN-GPE tunnel.vyatta@R1# set interfaces tunnel tun0 encapsulation vxlan-gpe
- Specifies the local IP address of
R1
in its connection to the IP transport network.vyatta@R1# set interfaces tunnel tun0 local-ip 10.10.2.2
- Specify the IP address of
R2
as its destination.vyatta@R1# set interfaces tunnel tun0 remote-ip 10.10.2.3
- Specify the VXLAN ID of the tunnel
tun0
.vyatta@R1# set interfaces tunnel tun0 vxlan-id 5000
- Specifies that the static route from
R1
toR2
uses the tunneltun0
as its next hop.vyatta@R1# set protocols static interface-route 10.10.3.0/24 next-hop-interface tun0