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 | |
| 12 | ## Use this command on VM to see IP addresses of instances: |
| 13 | ## sudo lxc-ls --fancy |
| 14 | |
| 15 | export ONOS_USE_SSH=true |
| 16 | export ONOS_NIC="10.0.3.*" |
| 17 | |
| 18 | |
| 19 | #============================================ |
| 20 | # sdn@ubuntuvm:~$ sudo lxc-ls --fancy |
| 21 | # NAME STATE IPV4 IPV6 AUTOSTART |
| 22 | # ------------------------------------------- |
| 23 | # onos1 RUNNING 10.0.3.174 - NO |
| 24 | #============================================ |
| 25 | |
| 26 | |
| 27 | ## ONOS instances (LXC containers) |
| 28 | export OC1=10.0.3.174 |
| 29 | # TODO: clone OC1 |
| 30 | #export OC2=10.0.3.78 |
| 31 | #export OC3=10.0.3.195 |
| 32 | #export OC4=10.0.3.126 |
| 33 | |
| 34 | ## default ONOS instance |
| 35 | export OCI=$OC1 |
| 36 | |
| 37 | ## credentials for logging into ONOS instances |
| 38 | export ONOS_USER=sdn |
| 39 | |
| 40 | export ONOS_APPS="drivers,openflow,proxyarp,fwd" |
| 41 | |
| 42 | ## mininet VM |
| 43 | export OCN="192.168.56.103" |
| 44 | |
| 45 | export ONOS_WEB_USER=onos |
| 46 | export ONOS_WEB_PASS=rocks |