Changes between Version 2 and Version 3 of Internal/OpenFlow/XORP


Ignore:
Timestamp:
Jan 24, 2011, 7:07:59 PM (14 years ago)
Author:
akoshibe
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/OpenFlow/XORP

    v2 v3  
    6767XorPlus# save running-to-startup
    6868}}}
     69The "multiport" config routine has been made into a (messy) script:
     70{{{
     71#!/bin/sh
     72
     73echo IP addr '('x.x.x.x/mask')'
     74read IP_ADDR
     75echo Serial '('e.g. /dev/ttyS0')'
     76read SERIAL
     77
     78echo "configure" >> $SERIAL
     79sleep 1
     80echo "set interface management-ethernet eth0 address $IP_ADDR" >> $SERIAL   
     81sleep 1
     82echo "set vlans vlan-id 8" >> $SERIAL
     83echo "set system services telnet connection-limit 7" >> $SERIAL
     84
     85for i in `seq 1 48`
     86do
     87        echo "set interface gigabit-ethernet ge-1/1/$i family ethernet-switching native-vlan-id 8"
     88        sleep 1
     89done >> $SERIAL
     90
     91echo "set interface gigabit-ethernet ge-1/1/47 family ethernet-switching port-mode trunk" >> $SERIAL
     92echo "set interface gigabit-ethernet ge-1/1/47 family ethernet-switching native-vlan-id 1" >> $SERIAL
     93echo "set interface gigabit-ethernet ge-1/1/47 family ethernet-switching vlan members 8" >> $SERIAL
     94echo "commit" >> $SERIAL
     95sleep 8
     96echo "save running-to-startup" >> $SERIAL
     97echo "exit" >> $SERIAL
     98echo "configs complete..."
     99}}}
     100To use it, run as root, specifying the IP address you want the switch to be set to and the serial interface to the switch.