Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Sample .vmm Configuration File

    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.

    // description - global definitions.
    //
    #include "common.defs"
    config "config" {
      
      vm "vrouter001" {
        // description - hostname of set on VM
        hostname "vrouter001";
    
        // description  Operating system image to load     
        VJX_LATEST
    
        // description - ge 0/0/0 management interface
        interface "em0" { EXTERNAL;};
    
        // description - ge 0/0/1 link between vrouter001 and vrouter002
        interface "em1" { bridge "private0"; };
    
        // description - configuration file to load on the router
        install "ENV(HOME)/active/configset/vrouter001.conf" "/root/junos.conf";
      };
      vm "vrouter002" {
        hostname "vrouter002" ;
    
        VJX_LATEST
    
        interface "em0" { EXTERNAL;};
    
        // description - link between vrouter002 and vrouter001
        interface "em1" { bridge "private0"; };
    
        // description - link between vrouter002 and vrouter003
        interface "em2" { bridge "private1"; };
    
        // description - configuration file to load on the router
        install "ENV(HOME)/active/configset/vrouter002.conf" "/root/junos.conf";
      };
    
      vm "vrouter003" {
        hostname "vrouter003" ;
    
        VJX_LATEST
    
        interface "em0" { EXTERNAL;};
    
        // description - link between vrouter003 and vrouter002
        interface "em1" { bridge "private1"; };
    
        // description - configuration file to load on the router
        install "ENV(HOME)/active/configset/vrouter003.conf" "/root/junos.conf";
      };
    
      PRIVATE_BRIDGES
    
    };
    

    Published: 2013-08-15