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