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 HUB

Two multipoint GRE tunnels are configured. One is between HUB and SPOKE1. The other is between HUB and SPOKE2. The first step is to configure HUB.

In this example, you create the tunnel interface and the tunnel endpoint on HUB.

  • The tunnel interface tun0 on HUB is assigned the IP address 200.0.0.99 on subnet 200.0.0.0/24.
  • The source IP address of the tunnel endpoint (the local-ip ) is the same as the address associated with the local Ethernet interface in this example (192.0.2.99/24).
  • A static route is created to specify how to get to the remote LANs through the tunnel.
Table 1. Creating a multipoint GRE endpoint on HUB

Step

Command

Create the tunnel interface, and specify the IP address to be associated with it.

vyatta@HUB# set interfaces tunnel tun0 address 200.0.0.99/24

Specify the encapsulation mode for the tunnel.

vyatta@HUB# set interfaces tunnel tun0 encapsulation gre-multipoint

Specify the source IP address for the tunnel. This address is the IP address of the physical interface for the tunnel endpoint.

vyatta@HUB# set interfaces tunnel tun0 local-ip 192.0.2.99

Specify that Cisco-style NHRP Traffic Indication packets are to be sent.

vyatta@HUB# set interfaces tunnel tun0 nhrp redirect

Commit the configuration.

vyatta@HUB# commit

View the configuration.

vyatta@HUB# show interfaces tunnel
 
 tun0 {
     address 200.0.0.99/24
     encapsulation gre-multipoint
     local-ip 192.0.2.99
     nhrp {
         redirect
     }     
 }

Create a static route to access the remote LAN behind SPOKE1 through the tunnel.

vyatta@HUB# set protocols static route 192.168.1.0/24 next-hop 200.0.0.1

Create a static route to access the remote LAN behind SPOKE2 through the tunnel.

vyatta@HUB# set protocols static route 192.168.2.0/24 next-hop 200.0.0.2

Commit the configuration.

vyatta@HUB# commit

View the configuration.

vyatta@HUB# show protocols
	static {
		route 192.168.1.0/24 {
			next-hop 200.0.0.1 {
			}
		}
		route 192.168.2.0/24 {
			next-hop 200.0.0.2 {
			}
		}
	}