= XORP Configs for the Quanta = The switch pointed to boot from the cf card will start up with XORP 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 XORP 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/4XorPlus> request system power-off 7 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 }}}