Junosphere Topology Guide
Junosphere Topology Guide
Release
3.0
Modified: 2015-07-16
Juniper Networks, Inc.
1133 Innovation Way
Sunnyvale, California 94089
USA
408-745-2000
www.juniper.net
Juniper Networks, Junos, Steel-Belted Radius, NetScreen, and ScreenOS are registered trademarks of Juniper Networks, Inc. in the United
States and other countries. The Juniper Networks Logo, the Junos logo, and JunosE are trademarks of Juniper Networks, Inc. All other
trademarks, service marks, registered trademarks, or registered service marks are the property of their respective owners.
Juniper Networks assumes no responsibility for any inaccuracies in this document. Juniper Networks reserves the right to change, modify,
transfer, or otherwise revise this publication without notice.
Revision History
2015–07–15—R3
The information in this document is current as of the date on the title page.
The Juniper Networks product that is the subject of this technical documentation consists of (or is intended for use with) Juniper Networks
software. Use of such software is subject to the terms and conditions of the End User License Agreement (“EULA”) posted at
http://www.juniper.net/support/eula.html. By downloading, installing or using such software, you agree to the terms and conditions of
that EULA.
By downloading, installing or using such software, you agree to the posted Terms of Use for Junosphere.
ii
Table of Contents
About the Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Documentation and Release Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Documentation Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Documentation Feedback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x
Requesting Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Self-Help Online Tools and Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
iii
Junosphere Network Topology Guide
Part 2 Index
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
iv
List of Figures
Part 1 Building and Using Junosphere Network Topologies
Chapter 2 Creating and Editing Topologies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Figure 1: Topology Wizard Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Figure 2: Create Topology Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Figure 3: Image Information Bubble . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Figure 4: Edit Configuration Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Figure 5: Topology Saved Dialog Box—Sandbox . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Figure 6: Topology Saved Dialog Box—Bank . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Figure 7: Copy Topology Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Chapter 4 Building Topologies with VMM Scripting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Figure 8: Topology file set Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Figure 9: Example topology.vmm File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Figure 10: View VM Images Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Chapter 5 Definition of Options in the VMM File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Figure 11: Simple topology.vmm Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Figure 12: Network Connect Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
v
Junosphere Network Topology Guide
vi
List of Tables
About the Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Table 1: Notice Icons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Table 2: Text and Syntax Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
vii
Junosphere Network Topology Guide
viii
About the Documentation
If the information in the latest release notes differs from the information in the
documentation, follow the product Release Notes.
Juniper Networks Books publishes books by Juniper Networks engineers and subject
matter experts. These books go beyond the technical documentation to explore the
nuances of network architecture, deployment, and administration. The current list can
be viewed at http://www.juniper.net/books.
Documentation Conventions
Table 2 on page ix defines the text and syntax conventions used in this guide.
Bold text like this Represents text that you type. To enter configuration mode, type the
configure command:
user@host> configure
ix
Junosphere Network Topology Guide
Fixed-width text like this Represents output that appears on the user@host> show chassis alarms
terminal screen.
No alarms currently active
Italic text like this • Introduces important new terms. • A policy term is a named structure
• Identifies book names. that defines match conditions and
actions.
• Identifies RFC and Internet draft titles.
• Junos OS System Basics Configuration
Guide
• RFC 1997, BGP Communities Attribute
Italic text like this Represents variables (options for which Configure the machine’s domain name:
you substitute a value) in commands or
configuration statements. [edit]
root@# set system domain-name
domain-name
Text like this Represents names of configuration • To configure a stub area, include the
statements, commands, files, and stub statement at the [edit protocols
directories; interface names; ospf area area-id] hierarchy level.
configuration hierarchy levels; or labels • The console port is labeled CONSOLE.
on routing platform components.
< > (angle brackets) Enclose optional keywords or variables. stub <default-metric metric>;
# (pound sign) Indicates a comment specified on the rsvp { # Required for dynamic MPLS only
same line as the configuration statement
to which it applies.
[ ] (square brackets) Enclose a variable for which you can community name members [
substitute one or more values. community-ids ]
Documentation Feedback
x
About the Documentation
• Find solutions and answer questions using our Knowledge Base: http://kb.juniper.net/
To verify service entitlement by product serial number, use our Serial Number Entitlement
(SNE) Tool: https://tools.juniper.net/SerialNumberEntitlementSearch/
xi
Junosphere Network Topology Guide
xii
PART 1
1
Junosphere Network Topology Guide
2
CHAPTER 1
• Overview on page 3
Overview
This document describes the process for creating and using the network topologies that
are required for building virtual networks on Junosphere.
• Using Virtual Machine Manager (VMM) scripting to create a new topology or modify
an existing topology
Each method produces a file set that includes a topology.vmm file that defines the virtual
devices, such as routers, virtual distributed Ethernet (VDEs), and related connections
between the devices within a single topology. The file set also contains a configuration
file for each Junos OS virtual network element that is defined in the topology.vmm file.
3
Junosphere Network Topology Guide
4
CHAPTER 2
The Topology Wizard (see Figure 1 on page 5) enables you to design and create your
topologies quickly and easily. The Wizard has drag-and-drop functionality and
automatically creates the topology.vmm file.
Table 3 on page 6 lists and describes the toolbox icons in the Topology Wizard.
5
Junosphere Network Topology Guide
Connector Icon Enables you to create a connection between elements on the canvas.
Fit to Page Icon Enables you to fit the topology to the canvas.
Actual Size Icon Enables you to view the topology in its actual size.
6
Chapter 2: Creating and Editing Topologies
1. From the navigation tree, select Topologies > Create Topology in Wizard. The Topology
Wizard appears, with the Create Topology dialog box displayed.
4. Select the library in which you want to create the topology. Use the filtering fields to
narrow your search, if necessary.
5. Click Create.
The Topology Wizard window opens in Junosphere with icons and tools on the left
side.
• To see the different types of virtual machine (VM) images, click the double arrow
for each type.
• To see additional information about each image, place your mouse pointer on the
image until a tooltip, similar to that shown in Figure 3 on page 8, appears.
7
Junosphere Network Topology Guide
6. Drag and drop icons for specific types of nodes from the icon gallery onto the canvas,
or double-click an icon and then click anywhere on the canvas to place the icon.
7. To create connections, click the Connector icon and hover the cursor over the center
of one of the objects that you want to connect until a hand icon appears and the
selected element is surrounded by a green box.
NOTE: Do not connect the following VMs to other VMs because they are
not network elements. These VM types are used only for network
management and planning purposes:
• Junos Space
• CentOS
• Mu Studio
8
Chapter 2: Creating and Editing Topologies
8. Enable “T” connections by creating a connection between a network element and the
bridge linking the two VMs. The bridge is represented graphically as a circle with a
label such as p0, p1, p2, and so on. There is no limit to the number of elements that
can be connected to a bridge.
9. Click Save to save the topology in the library. You can also click Save to File to download
a copy of the topology for future use.
If you click Save, a dialog box appears, enabling you to launch your topology directly
from the Topology Wizard. See “Starting a Topology from the Topology Wizard” on
page 10.
10. Create a .config file for any configurable network elements in the topology by
right-clicking a VM in the topology and selecting Edit VM Configuration from the pop-up
menu. A dialog box similar to the following appears.
9
Junosphere Network Topology Guide
11. Either type the configuration information in the dialog box or copy and paste
configuration information from another source.
In addition to saving a topology to a sandbox, the Topology Wizard also enables you to
launch the topology without having to return to the sandbox, even if there is no reservation
for it.
10
Chapter 2: Creating and Editing Topologies
Once you have created a topology and clicked Save to save the topology to a sandbox
library, the following dialog box appears, enabling you to start the topology.
2. If you have already made a reservation with sufficient capacity, the topology starts
and the following dialog box appears, indicating that the topology start process has
been initiated successfully.
3. If there are no active reservations in your sandbox, the following dialog box appears,
enabling you to create a reservation from the Topology Wizard.
• In the Add Reservation dialog box, enter the number of days you want for the
reservation.
• Click Add & Start. If there is sufficient capacity available in the sandbox, the
reservation is created for the exact number of VM units created in the topology and
the topology is started.
If there are active reservations, but they are insufficient to start a topology, then the
following dialog box appears.
11
Junosphere Network Topology Guide
d. Click Create.
If you saved the topology to a bank library, the following dialog box appears. Once the
topology has been saved to the bank, it is visible to all sandboxes in that bank and can
be launched directly from the bank library. You must copy the topology to a sandbox
before it is run.
12
Chapter 2: Creating and Editing Topologies
Editing a Topology
NOTE: You cannot edit any fields that appear in bold, blue font.
2. Select the topology you want to edit and click the Edit icon from the top left. The
Topology Wizard appears with the selected topology displayed.
4. Click Save.
Copying a Topology
Junosphere’s Copy feature enables users and bank administrators to copy a topology
from one sandbox in a bank to other sandboxes in the same bank.
• Any non-public topologies in their banks to any sandbox or library within their bank(s).
• Any public, downloadable topologies to any sandbox or library within their bank(s).
13
Junosphere Network Topology Guide
• Any topology in one sandbox to any other sandbox, regardless of whether the
topology is downloadable, as long as the user has Library Management permission.
• Any downloadable topologies in a sandbox in which the user does not have Library
Management permission to any sandbox in which the user has Library Management
permission.
To copy a topology:
2. Select the topology you want to copy and click the Copy icon in the upper left portion
of the Topologies section.
The following dialog box appears, listing all libraries in which the user has permission
to copy the topology.
4. Select the library or libraries to which you want to copy the topology.
5. Click Copy.
14
CHAPTER 3
Select Topologies > Manage Topologies and click the Public tab to access topologies in
public libraries. These topologies cannot be edited or saved. To use one, copy it and save
it in another location and make edits to the copy.
2VJX+Space+Centos This topology uses two VJX routers, an instance of Junos Space for network management, and a
Centos server to access Junos Space from inside the cloud. Additional documentation for this public
topology is included with the topology file set when it is downloaded from www.junosphere.net.
2VJX This topology uses two VJX routers. The names of connectors are always called “private” and contain
a number. Additional documentation for this public topology is included with the topology file set
when it is downloaded from www.junosphere.net.
2VJX+Mu Test Engine This topology uses two VJX routers. The Mu Test Engine is a separate virtual machine (VM) that runs
tests as directed by the Mu Studio VM. You must configure the interfaces on the Mu Test engine to
work inside your Junosphere network. Additional documentation for this public topology is included
with the topology file set when it is downloaded from www.junosphere.net.
VSRX+Mu Studio This topology uses one VSRX router and Mu Studio. Additional documentation for this public topology
is included with the topology file set when it is downloaded fromwww.junosphere.net.
2. Ecosystem Partner topologies, which demonstrate the use of tools that are available
in the Junosphere ecosystem. Partner solutions include Mu Dynamics and WANDL.
Table 5 on page 16 lists the examples.
15
Junosphere Network Topology Guide
muEngine
private2 private4
em0 em0
g017837
em4 VJX0 VJX1 em4
em7 private7 em7
This topology uses five VMs and illustrates the application of the Mu
Dynamics analysis tool. This topology also contains two VJX routers
and a Centos server that facilitates access to Mu Dynamics from within
Junosphere.
Demo Baseline Topology This topology uses nine VMs and consists of eight VJX routers and an additional router connected
to routers 1 through 7 that acts as a simulator. The topology is divided into four autonomous
systems (ASs).
AS 65222 AS 65020
130.130/16 172.16.0.14 220.220/16 172.16.0.10
sim0{ge-0/0/4} sim0{ge-0/0/5}
sim0{as65222} sim0{as65020}
p3 p4
ge-0/0/4
p0
192.168.[0-3].0/24
p13 p15
10.0.5.0/24
10.0.4.4/30
10.0.2.4/30
AS 65050 p5
120.120/16 p7 p10 R5 R8 p19
ge-0/0/1
ge-0/0/4
ge-0/0/4
p6 p14 p16
sim0{as65050}
10.0.5.254 ge-0/0/1 10.0.4.8/30 10.0.2.16/30 p18
sim0{ge-0/0/1}
R2 ge-0/0/2 p9 ge-0/0/2 R4 ge-0/0/6 p12 ge-0/0/2 R7
p1 p2
172.16.0.6 172.16.0.2
g017835
sim0{ge-0/0/2} sim0{ge-0/0/3}
AS 65010 sim0{as65010}
200.200/16
Loopback addresses R2 VJX router
10.0.255.x, x = router number
p17 Junosphere private bridge (num)
Interface numbering
Lower number on the left Simulated router (sim0 instance)
If vertical, then top is lower number routing-instance = {asnumber}
16
Chapter 3: Using Topologies in Public Libraries
Demo Enterprise Topology This topology is similar to the baseline topology in that it uses nine VMs and consists of eight
VJX routers and a simulator. Like the baseline topology, it is divided into five autonomous
systems (ASs). It also contains three OSPF areas (one for the core) and one IS-IS area.
AS 65222 AS 65020
130.130/16 172.16.0.14 220.220/16 172.16.0.10
sim0{ge-0/0/4} sim0{ge-0/0/5}
ge-0/0/4
0.0.0.2 (NSSA)
ge-0/0/4
0.0.0.1 (stub)
192.168.[0-3].0/24
AS 65050
120.120/16 R5 R8
ge-0/0/4 ge-0/0/1
ge-0/0/4
sim0{as65050}
10.0.5.254 ge-0/0/1
sim0{ge-0/0/1} R2 R4 R7
ge-0/0/2 ge-0/0/2 ge-0/0/6 ge-0/0/2
172.16.0.6 172.16.0.2
AS 65412 (iBGP full mesh) sim0{ge-0/0/2} sim0{ge-0/0/3}
AS 65010
OSPF backbone area 0.0.0.2 200.200/16
OSPF area
g017834
eBGP peer
17
Junosphere Network Topology Guide
Demo MPLS Topology This topology consists of eight VJX routers with an additional VJX router used as a simulator.
This topology is used to demonstrate an MPLS application. The network supports three
customers with VPNs, two of which are Layer 3 VPNs; the third works as a VPLS.
ge-0/0/4
ge-0/0/4
172.17.10/23
ge-0/0/1.200
172.17.11.3/29 R5 R8
ge-0/0/4
ge-0/0/4
(VLAN)
ge-0/0/1.300
172.18.0.1/16 ge-0/0/1 R2 ge-0/0/2 ge-0/0/2 R4 ge-0/0/6 ge-0/0/2 R7
ge-0/0/1 (VLAN) ge-0/0/1 (VLAN)
sim0{ge-0/0/2} sim0{ge-0/0/3}
g017833
Green customer (VPLS) ge-0/0/3.100 ge-0/0/3.200
172.18.0/24 - VLAN 300 172.16.31.2/30 172.17.31.2/30
The public libraries section of Junosphere contains a series of existing topology examples
that can serve as a base from which you can create your own topologies.
Most files contain a PowerPoint presentation that graphically depicts the topology, as
well as configuration files (.conf) that contain sample scripts.
4. Check the box next to the topology that you want. A graphical representation of that
topology appears in the Preview section.
5. Click the Start button at the bottom right of the Topologies section.
6. A dialog box appears asking you to select the sandbox in which you want to start the
topology. After you select the sandbox, click the Start button.
18
Chapter 3: Using Topologies in Public Libraries
If you do not have an existing reservation for the topology you want to start, a dialog box
will appear and prompt you to add a reservation. If there is an active reservation, but it
has insufficient capacity, a different dialog box appears, notifying you that you do not
have sufficient capacity.
19
Junosphere Network Topology Guide
20
CHAPTER 4
This chapter provides information on defining the virtual network topology using Virtual
Machine Manager (VMM) language syntax.
After understanding the customer‘s requirements, purpose, and goals for the network,
you can define the virtual network topology using Virtual Machine Manager (VMM)
language syntax.
To create a virtual network using the VMM syntax, you need to define the following:
• The virtual image to boot that defines the type of virtual machine. (Refer to the
Junosphere Release Notes 3.0 for a complete list of supported images.) You can also
view a list of supported images in Junopsphere by selecting Configuration > View VM
Images in the navigation tree.
21
Junosphere Network Topology Guide
• To connect interfaces between two virtual machines, define them to be on the same
bridge.
• Optional comments.
A topology file set is a compressed file (.zip or .tgz) that has the structure shown in
Figure 8 on page 22.
NOTE: To create the topology.vmm file, use any text editor. To integrate or
to open files in your file set, use 7zip (for zip compression) or any compression
tool to create a zip/tgz compression).
22
Chapter 4: Building Topologies with VMM Scripting
• Virtual machines and bridges can only be defined within the config object.
NOTE: A topology file set must be less than 10 MB; each file inside of the
file set must be less than 6 MB.
The configuration file is applied as part of the virtual machine’s bootup process.
config_statement vm_definition
23
Junosphere Network Topology Guide
name_value string_value
A topology file that was created with scripting cannot be edited in the Topology Wizard,
so the only way to edit it is to upload another topology file set in its place.
1. After you have edited a .vmm file, you can upload it to Junosphere. From the navigation
tree, select Topologies > Manage Topologies.
2. Click the Upload topology icon located in the top left side of the Topologies section.
3. In the Upload Topology dialog box, select a bank and library and choose a name for
the topology. Add a description, if desired, and select whether the topology is
downloadable or savable.
4. Then, select the file set for the topology that you edited by clicking the Browse button.
NOTE: You must upload the file set in the .zip or .tgz format.
24
Chapter 4: Building Topologies with VMM Scripting
Using Macros
This section lists and describes some common macros that are available to all users.
CentOS Server
Name: CENTOS_6_3
VM Units: 1
RAM: 2 GB
CPU: 1
Permission: All
Usage:
#include "common.defs"
config "config" {
vm "centos01" {
hostname "centos01" ;
CENTOS_6_3
interface "em0" { EXTERNAL; };
};
PRIVATE_BRIDGES
};
Junos Space
Name: SPACE_LATEST
Category:Juniper Networks-supported
VM Units: 1
RAM: 8 GB
CPU: 1
Permission: All
Description: Latest qualified Junos Space image. This currently maps to SPACE_12_3P_8.
Usage:
25
Junosphere Network Topology Guide
#include "common.defs"
config "config" {
SPACE_LATEST
vm "CTS0"{
hostname "CTS0";
CENTOS_5_3
vm "VJX0"{
hostname "VJX0";
VJX_LATEST
PRIVATE_BRIDGES
};
Mu Studio Performance
Name: MU_STUDIO_LATEST
Category: Partner
VM Units: 1
RAM: 2 GB
CPU: 1
Permission: All
Usage:
#include "common.defs"
config "config" {
vm "MUS0" {
hostname "MUS0" ;
MU_STUDIO_LATEST
};
PRIVATE_BRIDGES
};
26
Chapter 4: Building Topologies with VMM Scripting
Mu Test Engine
Name: MU_TESTENGINE_LATEST
Category: Partner
VM Units: 1
RAM: 2 GB
CPU: 1
Permission: All
Usage:
#include "common.defs"
config "config" {
vm "MUT0"{
hostname "MUT0";
MU_TESTENGINE_LATEST
vm "VJX0"{
hostname "VJX0";
VJX_LATEST
vm "VJX1"{
hostname "VJX1";
VJX_LATEST
PRIVATE_BRIDGES
};
27
Junosphere Network Topology Guide
VJX
Name: VJX1000_LATEST, VJX_LATEST
VM Units: 1
RAM: 2 GB
CPU: 1
Permission: All
Usage:
#include "common.defs"
config "config" {
vm "P1" {
hostname "P1";
VJX_LATEST
interface "em0" { EXTERNAL; }; /* ge-0/0/0 – Management interface to P2 */
interface "em1" { bridge "private1"; }; /* ge-0/0/1 - P1 connected to P2 */
interface "em2" { bridge "private2"; }; /* ge-0/0/2 */
interface "em3" { bridge "private3"; }; /* ge-0/0/3 */
interface "em4" { bridge "private4"; }; /* ge-0/0/4 */
interface "em5" { bridge "private5"; }; /* ge-0/0/5 */
vm "P2" {
hostname "P2";
VJX1000_LATEST
interface "em0" { EXTERNAL; }; /* ge-0/0/0 - Management interface to P2 */
interface "em1" { bridge "private1"; }; /* ge-0/0/1 – P2 connected to P1 */
PRIVATE_BRIDGES
};
VMX
Name: VMX_LATEST
Category: Experimental
VM Units: 2
28
Chapter 4: Building Topologies with VMM Scripting
RAM: 4 GB
CPU: 1
Permission: All
Usage:
#include "common.defs"
config "config" {
vm "VJX0"{
hostname "VJX0";
VJX_LATEST
PRIVATE_BRIDGES
};
VPTX
Name: VPTX_LATEST, VPTX_EXP
Category: Experimental
VM Units: 2
RAM: 2 GB
29
Junosphere Network Topology Guide
CPU:1
Permission: All
Usage:
#include "common.defs"
config "config" {
vm "VPTX0"{
hostname "VPTX0";
VPTX_LATEST
vm "VPTX1"{
hostname "VPTX1";
VPTX_LATEST
vm "VJX0"{
hostname "VJX0";
VJX_LATEST
PRIVATE_BRIDGES
};
VSRX
Name:VSRX_LATEST, VSRX_LATEST_EXP, VSRX_EXP
Category: Experimental
VM Units: 1
RAM: 2 GB
CPU: 1
Permission: All
30
Chapter 4: Building Topologies with VMM Scripting
Usage:
#include "common.defs"
config "config" {
vm "VSRX0"{
hostname "VSRX0";
VSRX_LATEST
vm "VJX0"{
hostname "VJX0";
VJX_LATEST
vm "VSRX1"{
hostname "VSRX1";
VSRX_LATEST
vm "VSRX2"{
hostname "VSRX2";
VSRX_LATEST
PRIVATE_BRIDGES
};
WANDL
Name: WANDL_LATEST
Category: Partner
VM Units: 1
31
Junosphere Network Topology Guide
RAM: 4 GB
CPU:1
Permission: All
Usage:
#include "common.defs"
config "config" {
WANDL_LATEST
PRIVATE_BRIDGES
};
To reduce the number of user errors and enhance usability, the Junosphere parsing feature
provides the following capabilities:
• Parse the topology.vmm file syntax before it is loaded into a library. This process
ensures that all topologies in the libraries are correct.
• Identify the number and type of network elements required for a topology.
• Upon start of topology, the parser will verify that image types invoked in the topology
exist in the system at start time.
Parsing Concepts
• VM (virtual machine) — Includes Juniper Networks devices (such as VJX, Junos Space),
partner tools, and an application server (CentOS).
32
Chapter 4: Building Topologies with VMM Scripting
• em# — Nomenclature that indicates the interface ports of the virtual network elements.
em0 is reserved for the managed interface.
• VM macro names—Refer to the Junosphere Release Notes 2.6 for valid names;
pathnames are no longer accepted.
Viewing VM Images
33
Junosphere Network Topology Guide
34
CHAPTER 5
Use the ipaddr option to assign an IP address to an interface from the topology.vmm file.
Use this option with care, because while you can use your existing hostnames and IP
addresses in the Junosphere topology models, and while Junosphere is architected based
on secure virtual private network (VPN) paradigms, we recommend that you use
alternative names and addresses in your topology files for additional security.
• The ipaddr function should not be used if a full router configuration is being loaded
from the library.
• The ipaddr function in VMM can be used for the quick creation of configured and
addressed interfaces.
• By default, a /20 subnet mask will be applied to the interface; this cannot be changed.
• Take care to ensure that the assigned address of interface X is not in the same subnet
as an address assigned to interface Y, otherwise the configuration will be rejected
when the VJX virtual machine boots up. In the example below, R0 has two interfaces
that are being configured with family inet addresses. The addresses (192.85.1.1 and
192.86.2.1) do not reside in the same subnet when the /20 subnet mask is applied.
35
Junosphere Network Topology Guide
In the example below, R0 has two interfaces that are being configured with family inet
addresses:
vm "vrouter001" {
hostname "vrouter001" ;
VJX1000_LATEST
interface "em0" { EXTERNAL;};
interface “em1” { bridge "private0"; ipaddr "192.85.1.1"; };
interface "em2" { bridge "private2"; ipaddr "192.86.2.1"; };
For CentOS VM users, this code should look like the following example:
vm "centos" {
hostname "centos" ;
CENTOS_5_3
interface "em0" { EXTERNAL; };
};
The following lists the options to consider when defining interfaces in a .vmm file:
• The em0 / ge-0/0/0 interface is reserved for out-of-band (OOB) management access.
You cannot configure an IP address, features, or routing protocols against this interface.
• Additional interfaces can be configured with VLANs using the Junos OS router
configuration file to create more logical interfaces.
• Virtual machines must share a common segment (bridge) to communicate with each
other.
interface "<em#>" { bridge “private0"; };
36
Chapter 5: Definition of Options in the VMM File
• EXTERNAL indicates a bridge to the management LAN outside the cloud. The
EXTERNAL segment is created by the Junosphere environment as the LAN to which
both the user (via the Secure Access service) and the management Ethernet port
of every virtual machine in the user’s topology can be connected.
• Only IPv4 addresses are currently supported in the Virtual Machine Manager
configuration syntax. Other address families must be configured within the virtual
machine.
• Refer to the Junosphere Release Notes 2.6 for the current number of supported
interfaces.
The network devices vrouter001, vrouter002, and vrouter003 are virtual machines
representing virtual routers. Private0 and Private1 are bridges associated with network
segments connecting vrouter001 to vrouter002 and vrouter002 to vrouter003,
respectively. In order for the virtual machines to be able to communicate with each other,
they must share a common bridge.
The following is an example of a .vmm configuration file that you can use as a starting
configuration. To use this as code, copy and paste the text into an ASCII text editor such
as Notepad and copy it again to eliminate any extra non-ASCII characters.
37
Junosphere Network Topology Guide
#include "common.defs"
config "config" {
vm "vrouter001" {
// description - hostname of set on VM
hostname "vrouter001";
VJX_LATEST
vm "vrouter003" {
hostname "vrouter003" ;
VJX_LATEST
PRIVATE_BRIDGES
};
38
Chapter 5: Definition of Options in the VMM File
• For Junos OS network devices such as the VJX1000, write, build, and edit the Junos OS
configurations.
• For other virtual machines, configure and boot those virtual machines.
1. Manually compose a new Junos OS configuration file or edit an existing one for each
virtual machine that uses a text editor.
2. Submit the virtual machine configuration files with the topology.vmm file as part of
the topology file set, as listed in “Building a Topology File Set” on page 44.
Subsequent to the initial submission, log in to the network devices and use the CLI to
update the configurations, as discussed in “Connecting to the Network Topology” on
page 44.
• The topology.vmm file must be coded to install each virtual machine configuration file
from its library location, as noted in the following coding example:
install "ENV(HOME)/active/configset/vrouter001.conf" "/root/junos.conf";
The install command defines the active configuration. As part of the virtual machine’s
bootup process, the configuration file will be applied.
39
Junosphere Network Topology Guide
• The default configuration will set up a root name and password, as well as basic
services such as telnet and ssh.
Make sure that you have an active topology and know the IP address. To configure CentOS
servers:
1. On the Active Topology tab, click Join. The Junos Space Access Portal appears.
3. When the Network Connect screen appears, click Start. When connected, a “lock”
icon appears in the bottom right part of your screen.
5. Enter the IP address of the CentOS machine(s) to which you want to connect and
add :1 to the address. This gives you access to port 1.
6. Click OK.
7. When prompted to enter your password, enter Clouds and click OK. The CentOS
desktop appears.
40
Chapter 5: Definition of Options in the VMM File
9. When the browser appears, enter the Space IP address in the address field.
10. Double-click the lock icon. When the Network Connect dialog box appears
(Figure 12 on page 41), click Sign Out.
NOTE: If you do not sign out from your session, any unused secure access
sessions will time out and the topology will be inaccessible until you
re-establish the secure access session.
41
Junosphere Network Topology Guide
ftp;
rlogin;
rsh;
ssh;
telnet;
xnm-clear-text;
}
security {
forwarding-options {
family {
inet6 {
mode packet-based;
}
mpls {
mode packet-based;
}
iso {
mode packet-based;
}
}
}
}
syslog {
host log {
kernel info;
any notice;
pfe info;
interactive-commands any;
}
file messages {
kernel info;
any notice;
authorization info;
pfe info;
archive world-readable;
}
file security {
interactive-commands any;
archive world-readable;
}
}
processes {
routing enable;
management enable;
watchdog enable;
snmp enable;
inet-process enable;
mib-process enable;
}
}
chassis {
dump-on-panic;
}
}
}
apply-groups [ global member0 ];
system {
archival {
configuration {
transfer-on-commit;
archive-sites {
42
Chapter 5: Definition of Options in the VMM File
"ftp://tftp:tftp@XXXgatewayXXX/active/configset";
}
}
}
}
1. Copy an existing interface configuration file from the terminal, making sure the syntax
of the configuration file is correct.
2. At the console of the Juniper Networks virtual router, enter configuration mode:
user@host> cli
[edit]
user@host#
3. From configuration mode, issue the load merge terminal relative command at the [edit
interfaces] hierarchy level.
[edit interfaces]
user@host# load merge terminal relative
4. At the prompt, paste the contents of the clipboard and press Enter.
5. Press Ctrl D.
For more information about the load command, see the Junos OS CLI User Guide. To learn
more about loading a configuration from a file for Junos OS routers, see Loading a
Configuration from a File and Examples: Loading a Configuration from a File.
After you have completed the configuration of your virtual network, perform the following
tasks:
43
Junosphere Network Topology Guide
UNIX and Linux users can build a topology file set with a .tgz extension by performing the
following steps:
• <home>/active/
• <home>/active/configset/
2. Add topology.vmm, the VMM configuration file that defines the topology, to the active
directory.
3. Add the Junos OS configuration files for each network device referenced by
topology.vmm to the <home>/active/configset/ directory.
4. Create a topology file set, suitable for submission, by doing the following for .tgz file
types:
cd <home>/active
gzip mytopology.tar
2. Click the Virtual Machines tab to view the IP address and connection information for
the Console port or management Ethernet of the virtual device.
3. Click Join in the Active Topology section at the top of the screen.
44
Chapter 5: Definition of Options in the VMM File
Network Connect establishes a secure access SSL VPN to the internal management
Ethernet of the topology. Traffic will be directed only to the local management Ethernet
over that tunnel. Network Connect works best without web proxies, but works fine
with a static proxy configuration. It will not work, however, if the browser is configured
with a PAC (proxy auto-configuration) file.
• For CentOS, use VNC. Enter the IP address (with :1 at the end) of the virtual device;
enter Clouds as the password.
• For Junos Space or Mu Studio, open a browser from a virtual CentOS in Junosphere
and browse to the IP address.
7. Log in to the Junos OS virtual device using the default username and password. The
default root password is Clouds.
8. If you are connecting to a Junos OS network device, enter cli to start using the Junos
OS environment.
Just as with a physical Junos OS device, configuration changes are made in edit mode
and then committed to implement the changes on the router. To save your changes to
the library, click Save on the Junosphere Libraries menu.
45
Junosphere Network Topology Guide
46
PART 2
Index
• Index on page 49
47
Junosphere Network Topology Guide
48
N
network devices
configuring........................................................................39
network topology
connecting to..................................................................44
Index testing.................................................................................43
P
parentheses, in syntax descriptions...................................x
Symbols
parsing
#, comments in configuration statements......................x
advanced capabilities..................................................32
( ), in syntax descriptions........................................................x
concepts............................................................................32
< >, in syntax descriptions......................................................x
syntax rules.......................................................................33
[ ], in configuration statements............................................x
{ }, in configuration statements...........................................x
T
| (pipe), in syntax descriptions.............................................x
topologies
.vmm file syntax..............................................................23
B
advanced...........................................................................16
braces, in configuration statements...................................x
building with vmm scripting........................................21
brackets
configuration example..................................................37
angle, in syntax descriptions.........................................x
creating.................................................................................3
square, in configuration statements..........................x
ecosystem partner..........................................................15
file sets...............................................................................22
C
CentOS servers in public libraries.......................................................15, 18
configuring.......................................................................40 modifying.............................................................................3
comments, in configuration statements..........................x starter..................................................................................15
config file starting from Topology Wizard..................................10
sample................................................................................37 topology
config files auto-save feature.............................................................9
rules.....................................................................................39 copying................................................................................13
configuration file editing..................................................................................13
creatting...............................................................................9 topology file sets
curly braces, in configuration statements........................x building..............................................................................44
Topology Wizard
D creating topologies with............................................5, 7
documentation making reservation from...............................................11
comments on.....................................................................x starting topology from..................................................10
toolbox icons......................................................................5
I
ipaddr option V
assigning an IP address...............................................35 virtual machine
creating the configuration..........................................39
J virtual machines
Junosphere Access Portal...................................................44 configuring.......................................................................40
interface options............................................................36
M vmm scripting
macros........................................................................................25 creating topologies with.................................................3
manuals
comments on.....................................................................x
49
Junosphere Network Topology Guide
50