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 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

Allow multicast protocols (for example, routing protocols) to be carried over the tunnel.


vyatta@SPOKE2# set interfaces tunnel tun0 multicast enable

Specify an authentication key for the NHRP network.


vyatta@SPOKE2# set interfaces tunnel tun0 nhrp authentication pre-shared-secret NET123

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 multicast packets are to be repeated to each statically configured next hop.


vyatta@SPOKE2# set interfaces tunnel tun0 nhrp multicast parameters nhs

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

Specify an authentication key for the tunnel.


vyatta@SPOKE2# set interfaces tunnel tun0 parameters ip key 1

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 enable
     nhrp {
         authentication NET123
         map 200.0.0.99/24 {
             nbma-address 192.0.2.99
             register
         }
         multicast {
             parameters nhs
         }
         redirect
         shortcut
     }
     parameters {
         ip {
             key 1
         }
     }
 }

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


vyatta@WEST# 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@WEST# set protocols static route 192.168.1.0/24 next-hop 200.0.0.1

Commit the configuration.


vyatta@WEST# commit

View the configuration.


vyatta@WEST# 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 {
			}
		}
	}