|  | 25 |  | 
          
            |  | 26 | == Commands. == | 
          
            |  | 27 | * To power off the switch | 
          
            |  | 28 | {{{ | 
          
            |  | 29 | XorPlus> request system power-off | 
          
            |  | 30 | }}} | 
          
            |  | 31 | * To get to the configuration prompt as enabled user - `configure` | 
          
            |  | 32 | * for a list of available options for a specific set of commands, type "?" or "help" at any point: | 
          
            |  | 33 | {{{ | 
          
            |  | 34 | XorPlus# run ? | 
          
            |  | 35 | Possible completions: | 
          
            |  | 36 | clear                         Clear information in the system | 
          
            |  | 37 | file                          Perform file operations | 
          
            |  | 38 | ping                          Ping remote target | 
          
            |  | 39 | request                       Make system-level requests | 
          
            |  | 40 | set                           Set parameters of the system | 
          
            |  | 41 | show                          Show system information | 
          
            |  | 42 | ssh                           Connect to another host via SSH | 
          
            |  | 43 | start                         Start shell | 
          
            |  | 44 | syslog                        System logging | 
          
            |  | 45 | telnet                        Connect to another host via telnet | 
          
            |  | 46 | traceroute                    Trace route to remote host | 
          
            |  | 47 | }}} | 
          
            |  | 48 | * To execute non-config CLI commands from enabled mode, use `run <parameters>` (choices are shown above) | 
          
            |  | 49 | * Setting interface parameters - The GBe ports are named ge-1/1/n, n from 1 to 48. To configure them: | 
          
            |  | 50 | {{{ | 
          
            |  | 51 | XorPlus# set interface gigabit-ethernet ge-1/1/4XorPlus> request system power-off 7 family ethernet-switching <port mode, vlan id, ect. here> | 
          
            |  | 52 | }}} | 
          
            |  | 53 |  | 
          
            |  | 54 | == Multiport configurations. == | 
          
            |  | 55 | !XorPlus doesn't seem to let you configure more than one port at a time. This is a pain (e.g. for setting the native vlans for all of the ethernet ports). A quick way to get to config many ports at a time is to echo commands into the serial device (/dev/ttyS0 or /dev/ttyUSB0 - what you used to connect to the switch). For example, to set the vlans for all the interfaces to 8: | 
          
            |  | 56 | [[BR]][[BR]] | 
          
            |  | 57 | At your terminal, as root: | 
          
            |  | 58 | {{{ | 
          
            |  | 59 | # echo "set vlans vlan-id 8" >> /dev/ttyS0 | 
          
            |  | 60 | # for i in `seq 1 48`; do echo "set interface gigabit-ethernet ge-1/1/$i family ethernet-switching native-vlan-id 8"; done >> /dev/ttyS0 | 
          
            |  | 61 | }}} | 
          
            |  | 62 | Then, at the switch CLI: | 
          
            |  | 63 | {{{ | 
          
            |  | 64 | XorPlus# set interface gigabit-ethernet ge-1/1/47 family ethernet-switching native-vlan-id 1 | 
          
            |  | 65 | XorPlus# set interface gigabit-ethernet ge-1/1/47 family ethernet-switching vlan members 8 | 
          
            |  | 66 | XorPlus# commit | 
          
            |  | 67 | XorPlus# save running-to-startup | 
          
            |  | 68 | }}} |