Up-and-running example

This example logs you in to vShell, creates a template and two linked devices; turns on, connects to, logs in to the devices, and defines IP addresses; and logs out and disconnects from the devices.

  1. From Linux, log in to vShell.
    • On a host-based vSLX installation:
      user@ubuntu:~$ vsh
       For help anytime, type '?'
       When you're done, type '^D'
      (vsh) 
    • On a container-based vSLX installation:
      root@VLAB1:~# vsh
       Bridge address  : 10.0.0.64/24
       Default gateway : 10.0.0.1
       For help anytime, type '?'
       When you're done, type '^D'
      (vsh) 
  2. Enter the create template command.
    (vsh) create template TMPL1-AV slx9540 /slxos-dist
    Building SLX9540 Image ...
    
    ***** Created VM PB4000 *****
    PB4000 created.
  3. To verify template creation, enter the show templates command.
    (vsh) show templates
    Name        Type     SLXOS Version     Snapshots
    ................................................
    TMPL1-AV    slx9540  slx-os17r.2.00    0
  4. Create two virtual SLX 9540 devices, using the create chassis command.
    (vsh) create chassis av1 1U TMPL1-AV
    Domain PB_1_av1 defined from /VM/templates/snapsh/av1/BVM_PB_SIM_1.xml
    (vsh) create chassis av2 1U TMPL1-AV
    Domain PB_1_av2 defined from /VM/templates/snapsh/av2/BVM_PB_SIM_1.xml
  5. Create a Linux workstation, using the create workstation command.
    (vsh) create workstation h1 linux
    Converting qcow2 image to raw format.
    Please wait a few seconds...Done
    /VM/templates/host/snapsh/h1/HOST_VM_DEF_S.xml
    Domain h1 defined from /VM/templates/host/snapsh/h1/HOST_VM_DEF_S.xml
  6. Enter the show system command.
    (vsh) show system
     Device Name             Type            Power
     ....................................................
     av1                     SLX 9540        off
     av2                     SLX 9540        off
     h1                      VPC             off
  7. Enter the poweron command to turn on the devices.
    (vsh) poweron av1
     The device is powered on successfully (1)
    (vsh) 2 poweron av2
     The device is powered on successfully (1)
    (vsh) poweron h1
  8. Enter the show system command.
     Device Name             Type            Power
     ....................................................
     av1                     SLX 9540        on
     av2                     SLX 9540        on
     h1                      VPC             on
  9. Create a link between the devices.
    (vsh) create link av1 0/1 av2 0/1 
    Note

    Note

    If you were to run show link and show link status at this point, they would display "Down" and "Both sides down", respectively. The link will be up only after you log in to SLX-OS and configure av1 0/1 and av2 0/1, as described below.
  10. Connect to one of the devices, log in to SLX-OS, and assign an IP address.
    (vsh) connect av1
    SLX-OS (SLX)SLX login: admin
    password: password
    device# configure terminal
    device(config)# interface ethernet 0/1
    device(conf-if-eth-0/1)# ip address 10.0.0.1/24
    device(conf-if-eth-0/1)# no shut
  11. Log out from the first device and return to vShell.
    device(conf-if-eth-0/1)# end
    device# exit
    SLX-OS (SLX) Ctrl-]
    (vsh)
  12. Connect to the second device, log in to SLX-OS, and assign an IP address.
    (vsh) connect av2
    SLX-OS (SLX)SLX login: admin
    password: password
    device# configure terminal
    device(config)# interface ethernet 0/1
    device(conf-if-eth-0/1)# ip address 10.0.0.2/24
    device(conf-if-eth-0/1)# no shut
  13. Log out from the second device and return to vShell.
    device(conf-if-eth-0/1)# end
    device# exit
    SLX-OS (SLX) Ctrl-]
    (vsh)
  14. To verify the link between the two devices, enter the show link command.
    (vsh) show link
     Name           Port        Name           Port           State
     .....................................................................
     av1             0/1    <--> av2             0/1            Up
  15. To turn off the devices, enter the poweroff command.
    (vsh) poweroff av1
    Stopping gos servers for chassis av1
     The device is powered off successfully (1)
    (vsh) poweroff av2
    Stopping gos servers for chassis av2
     The device is powered off successfully (1)
    (vsh) poweroff h1