= !XorPlus Configs for the Quanta = The switch pointed to boot from the cf card will start up with !XorPlus as its default firmware. If the switch is already flashed with the !OpenFlow image, just go back into u-boot and point the boot command to the cfcard boot parameters. The following commands set the !XorPlus switch up as a regular switch in the Grid's data VLAN (8), with a trunk port on ge-1/1/47 (lower rightmost port) living on native VLAN 1 and a telnet-accessible management interface. Set management IP addresson eth0: {{{ XorPlus# set interface management-ethernet eth0 address 172.16.20.253/16 }}} Configuring VLANs and the trunk port: {{{ XorPlus# set vlans vlan-id 8 XorPlus# set interface gigabit-ethernet ge-1/1/47 family ethernet-switching port-mode trunk XorPlus# set interface gigabit-ethernet ge-1/1/47 family ethernet-switching native-vlan-id 1 XorPlus# set interface gigabit-ethernet ge-1/1/47 family ethernet-switching vlan members 8 XorPlus# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching native-vlan-id 1 <<-----------for each interface ge-1/1/1-48 }}} Allow telnet access: {{{ XorPlus# set system services telnet connection-limit 7 }}} save changes: {{{ XorPlus# commit XorPlus# save running-to-startup }}} == Commands. == * To power off the switch {{{ XorPlus> request system power-off }}} * To get to the configuration prompt as enabled user - `configure` * for a list of available options for a specific set of commands, type "?" or "help" at any point: {{{ XorPlus# run ? Possible completions: clear Clear information in the system file Perform file operations ping Ping remote target request Make system-level requests set Set parameters of the system show Show system information ssh Connect to another host via SSH start Start shell syslog System logging telnet Connect to another host via telnet traceroute Trace route to remote host }}} * To execute non-config CLI commands from enabled mode, use `run ` (choices are shown above) * Setting interface parameters - The GBe ports are named ge-1/1/n, n from 1 to 48. To configure them: {{{ XorPlus# set interface gigabit-ethernet ge-1/1/4 family ethernet-switching }}} == Multiport configurations. == !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: [[BR]][[BR]] At your terminal, as root: {{{ # echo "set vlans vlan-id 8" >> /dev/ttyS0 # 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 }}} Then, at the switch CLI: {{{ XorPlus# set interface gigabit-ethernet ge-1/1/47 family ethernet-switching native-vlan-id 1 XorPlus# set interface gigabit-ethernet ge-1/1/47 family ethernet-switching vlan members 8 XorPlus# commit XorPlus# save running-to-startup }}} The "multiport" config routine has been made into a (messy) script: {{{ #!/bin/sh echo IP addr '('x.x.x.x/mask')' read IP_ADDR echo Serial '('e.g. /dev/ttyS0')' read SERIAL echo "configure" >> $SERIAL sleep 1 echo "set interface management-ethernet eth0 address $IP_ADDR" >> $SERIAL sleep 1 echo "set vlans vlan-id 8" >> $SERIAL echo "set system services telnet connection-limit 7" >> $SERIAL for i in `seq 1 48` do echo "set interface gigabit-ethernet ge-1/1/$i family ethernet-switching native-vlan-id 8" sleep 1 done >> $SERIAL echo "set interface gigabit-ethernet ge-1/1/47 family ethernet-switching port-mode trunk" >> $SERIAL echo "set interface gigabit-ethernet ge-1/1/47 family ethernet-switching native-vlan-id 1" >> $SERIAL echo "set interface gigabit-ethernet ge-1/1/47 family ethernet-switching vlan members 8" >> $SERIAL echo "commit" >> $SERIAL sleep 8 echo "save running-to-startup" >> $SERIAL echo "exit" >> $SERIAL echo "configs complete..." }}} To use it, run as root, specifying the IP address you want the switch to be set to and the serial interface to the switch. A more usable script for range port configurations can be found attached. It supports a very limited number of configuration schemes in a mock-IP8800-like CLI: * VLAN creation * port VLAN/type assignment * management port configuration * "help" or "?" for a list of commands This script also has to be run as root. === SSH/Telnet login === Verbatim from FAQs (but not in the CLI users manual): {{{ Q: What is default users and passwords? A: By default users root/admin/operator are enabled, "admin/operator" will log into CLI; "root" will log into system shell; all passwords are 'pica8' now. You should BETTER change the passwords if you use it in a production environment or on the Internet. You can use "# passwd some_user" command to change the password of some_user in system shell. }}}