Simon Hunt | f5d433a | 2016-03-01 14:31:14 -0800 | [diff] [blame] | 1 | # Simon's LXC-based multi ONOS instances & ONOS mininet VM. |
| 2 | |
| 3 | ### |
| 4 | ### NOTE: |
| 5 | ### Assumes a route has been set up |
| 6 | ### from 192.168.56.0/24 -> 10.0.3.0/24 |
| 7 | ### |
| 8 | ### {dest-net} {gateway} (i.e. container VM) |
| 9 | ### sudo route -n add 10.0.3.0/24 192.168.56.102 |
| 10 | ### |
| 11 | |
Simon Hunt | a855a40 | 2016-03-02 14:41:52 -0800 | [diff] [blame] | 12 | ## ONOS Cluster VM (has LXC containers for cluster nodes) |
| 13 | export OCVM=192.168.56.102 |
Simon Hunt | f5d433a | 2016-03-01 14:31:14 -0800 | [diff] [blame] | 14 | |
| 15 | #============================================ |
Simon Hunt | 3b95564 | 2016-03-07 15:03:30 -0800 | [diff] [blame] | 16 | # sdn@ocluster:~$ sudo lxc-ls --fancy |
Simon Hunt | f5d433a | 2016-03-01 14:31:14 -0800 | [diff] [blame] | 17 | # NAME STATE IPV4 IPV6 AUTOSTART |
| 18 | # ------------------------------------------- |
Simon Hunt | 1ebef9d | 2016-03-08 11:17:25 -0800 | [diff] [blame] | 19 | # onos1 RUNNING 10.0.3.11 - YES |
| 20 | # onos2 RUNNING 10.0.3.12 - YES |
| 21 | # onos3 RUNNING 10.0.3.13 - YES |
| 22 | # onos4 RUNNING 10.0.3.14 - YES |
Simon Hunt | f5d433a | 2016-03-01 14:31:14 -0800 | [diff] [blame] | 23 | #============================================ |
| 24 | |
Simon Hunt | a855a40 | 2016-03-02 14:41:52 -0800 | [diff] [blame] | 25 | export ONOS_USE_SSH=true |
| 26 | export ONOS_NIC="10.0.3.*" |
| 27 | |
Simon Hunt | f5d433a | 2016-03-01 14:31:14 -0800 | [diff] [blame] | 28 | ## ONOS instances (LXC containers) |
Simon Hunt | 1ebef9d | 2016-03-08 11:17:25 -0800 | [diff] [blame] | 29 | export OC1=10.0.3.11 |
| 30 | export OC2=10.0.3.12 |
| 31 | export OC3=10.0.3.13 |
Simon Hunt | f810e52 | 2016-03-07 17:34:50 -0800 | [diff] [blame] | 32 | |
| 33 | ## keep this out of the initial cluster... |
Simon Hunt | 1ebef9d | 2016-03-08 11:17:25 -0800 | [diff] [blame] | 34 | ## export OC4=10.0.3.14 |
Simon Hunt | f5d433a | 2016-03-01 14:31:14 -0800 | [diff] [blame] | 35 | |
| 36 | ## default ONOS instance |
| 37 | export OCI=$OC1 |
| 38 | |
| 39 | ## credentials for logging into ONOS instances |
| 40 | export ONOS_USER=sdn |
| 41 | |
Simon Hunt | 59f598c | 2016-03-04 15:15:13 -0800 | [diff] [blame] | 42 | ## the apps we want activated at startup |
Simon Hunt | 661d410 | 2016-03-08 15:09:59 -0800 | [diff] [blame^] | 43 | export ONOS_APPS="drivers,openflow,proxyarp,drivermatrix,mlb" |
Simon Hunt | f5d433a | 2016-03-01 14:31:14 -0800 | [diff] [blame] | 44 | |
| 45 | ## mininet VM |
| 46 | export OCN="192.168.56.103" |
| 47 | |
| 48 | export ONOS_WEB_USER=onos |
| 49 | export ONOS_WEB_PASS=rocks |