Vyatta Network OS Documentation

Learn how to install, configure and operate the Vyatta NOS, which helps drive our virtual networking & physical platforms portfolio.

Configure SPOKE2

The final step is to configure SPOKE2.

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

  • The tunnel interface tun0 on HUB is assigned the IP address 200.0.0.2 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.33/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 SPOKE2

Step

Command

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

vyatta@SPOKE2# set interfaces tunnel tun0 address 200.0.0.2/24

Specify the encapsulation mode for the tunnel.

vyatta@SPOKE2# 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@SPOKE2# set interfaces tunnel tun0 local-ip 192.0.2.33

Prevent multicast protocols (for example, routing protocols) being carried over the tunnel.

vyatta@SPOKE2# set interfaces tunnel tun0 multicast disable

Map the IP address of the tunnel interface of the Hub to its physical IP address.

vyatta@SPOKE2# set interfaces tunnel tun0 nhrp map 200.0.0.99/24 nbma-address 192.0.2.99

Specify that this spoke should register itself automatically on startup.

vyatta@SPOKE2# set interfaces tunnel tun0 nhrp map 200.0.0.99/24 register

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

vyatta@SPOKE2# set interfaces tunnel tun0 nhrp redirect

Specify that shortcut routes can be created.

vyatta@SPOKE2# set interfaces tunnel tun0 nhrp shortcut

Commit the configuration.

vyatta@SPOKE2# commit

View the configuration.

vyatta@SPOKE2# show interfaces tunnel
tun0 {
     address 200.0.0.2/24
     encapsulation gre-multipoint
     local-ip 192.0.2.33
     multicast disable
     nhrp {         
         map 200.0.0.99/24 {
             nbma-address 192.0.2.99
             register
         }         
         redirect
         shortcut
     }     
 }

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

vyatta@HUB# set protocols static route 192.168.99.0/24 next-hop 200.0.0.99

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

Commit the configuration.

vyatta@HUB# commit

View the configuration.

vyatta@HUB# show protocols

static {
		route 192.168.99.0/24 {
			next-hop 200.0.0.99 {
			}
		}
		route 192.168.1.0/24 {
			next-hop 200.0.0.1 {
			}
		}
	}