home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

Configure EAST

In this example, you create the tunnel endpoint on EAST.

  • The tun0 tunnel interface on EAST is assigned the 10.20.20.2 IP address on 10.20.20.0/24 network.
  • The source IP address of the tunnel endpoint (local-ip) is the same as the address associated with the loopback interface (lo) in this example.
  • The IP address of the other end of the tunnel (remote-ip) is the address of the loopback interface on WEST.
  • A static route is created to specify how to get to the remote LAN through the tunnel.

The following table shows how to create the tunnel endpoint on EAST. To do this, perform the following steps on EAST in configuration mode.

Table 1. Create a basic tunnel endpoint on EAST
StepCommand
Create the tunnel interface, and specify the IP address to be associated with it.

vyatta@EAST# set interfaces tunnel tun0 address 10.20.20.2/24
Specify the source IP address for the tunnel.

vyatta@EAST# set interfaces tunnel tun0 local-ip 10.10.1.2
Specify the IP address of the other end of the tunnel

vyatta@EAST# set interfaces tunnel tun0 remote-ip 10.10.1.1
Specify the encapsulation mode for the tunnel.

vyatta@EAST# set interfaces tunnel tun0 encapsulation gre
Assign a brief description to the tunnel interface.

vyatta@EAST# set interfaces tunnel tun0 description "GRE tunnel to WEST"
Commit the configuration.

vyatta@EAST# commit
View the configuration.

vyatta@EAST# show interfaces tunnel tun0
	address 10.20.20.2/24
	description "Tunnel to WEST"
	encapsulation gre
	local-ip 10.10.1.2
	remote-ip 10.10.1.1
Create a static route to access the remote subnet through the tunnel.

vyatta@EAST# set protocols static route 192.168.40.0/24 next-hop 10.20.20.1
Commit the configuration.

vyatta@EAST# commit
View the configuration.

vyatta@EAST# show protocols
	static {
		route 192.168.40.0/24 {
			next-hop 10.20.20.1 {
			}
		}
	}