= sw-sb-01 (Aggregate SandBox Switch 1) = sw-sb-01 is a replacement for legacy sandbox switches for sb 1,2,5,7, and 8. It also includes Aruba VLAN (4) ports. '''Access :''' 172.16.0.253 == Testbed switch layout == Each testbed requires 2 ports each for CM, Control, and Data links for the nodes, a Control VLAN link to the Console, and a trunk link to the top switch. As an !OpenFlow switch, we also need a dedicated port to connect the switch to a controller. In the aggregate switch ports are allocated in the following numbers: * CM: 12 ports (2 per !SandBox) * Control: 18 ports - 12 for nodes, + 6 for Console links * Data: 12 (as with CM) * !OpenFlow control VLANs: 2 (to controller - two to make things tidy) * Trunk: 4 (leftover) == VLANs == VLAN 3 (CM) is consistent across all !SandBoxes. Each sb has its own Control and Data VLANs as such: ||Testbed||Control VLAN||Data VLAN|| ||sb1||11||12|| ||sb2||13||14|| ||sb5||19||20|| ||sb6||21||22|| ||sb7||23||24|| ||sb8||25||26|| In addition, VLAN 100 is the defacto VLAN for the !OpenFLow control channel at WINLAB. == Port Assignments == [[Image(sw-sb-01.jpg)]] {{{ Port Name Status Type VLAN 0/ 1 geth0/1 down Tunnel 11 (sb1_ctrl) 0/ 2 geth0/2 down Tunnel 11 (sb1_ctrl) 0/ 3 geth0/3 up Tunnel 11 (sb1_ctrl) 0/ 4 geth0/4 down Tunnel 12 (sb1_data) 0/ 5 geth0/5 down Tunnel 12 (sb1_data) 0/ 6 geth0/6 up Tunnel 4 (VLAN0004) 0/ 7 geth0/7 up Tunnel 13 (sb2_ctrl) 0/ 8 geth0/8 up Tunnel 13 (sb2_ctrl) 0/ 9 geth0/9 up Tunnel 13 (sb2_ctrl) 0/10 geth0/10 up Tunnel 14 (sb2_data) 0/11 geth0/11 up Tunnel 14 (sb2_data) 0/12 geth0/12 up Tunnel 4 (VLAN0004) 0/13 geth0/13 up Tunnel 19 (sb5_ctrl) 0/14 geth0/14 up Tunnel 19 (sb5_ctrl) 0/15 geth0/15 up Tunnel 19 (sb5_ctrl) 0/16 geth0/16 up Tunnel 20 (sb5_data) 0/17 geth0/17 up Tunnel 20 (sb5_data) 0/18 geth0/18 up Tunnel 4 (VLAN0004) 0/19 geth0/19 up Tunnel 23 (sb7_ctrl) 0/20 geth0/20 up Tunnel 23 (sb7_ctrl) 0/21 geth0/21 up Tunnel 23 (sb7_ctrl) 0/22 geth0/22 up Tunnel 24 (sb7_data) 0/23 geth0/23 up Tunnel 24 (sb7_data) 0/24 geth0/24 up Tunnel 4 (VLAN0004) 0/25 geth0/25 up Tunnel 25 (sb8_ctrl) 0/26 geth0/26 up Tunnel 25 (sb8_ctrl) 0/27 geth0/27 up Tunnel 25 (sb8_ctrl) 0/28 geth0/28 up Tunnel 26 (sb8_data) 0/29 geth0/29 up Tunnel 26 (sb8_data) 0/30 geth0/30 up Tunnel 4 (VLAN0004) 0/31 geth0/31 down Tunnel 29 (VLAN0029) 0/32 geth0/32 down Tunnel 29 (VLAN0029) 0/33 geth0/33 up Tunnel 29 (VLAN0029) 0/34 geth0/34 down Tunnel 29 (VLAN0029) 0/35 geth0/35 up Tunnel 29 (VLAN0029) 0/36 geth0/36 down Tunnel 29 (VLAN0029) 0/37 geth0/37 down Tunnel 29 (VLAN0029) 0/38 geth0/38 up Tunnel 29 (VLAN0029) 0/39 geth0/39 down Tunnel 29 (VLAN0029) 0/40 geth0/40 down Tunnel 29 (VLAN0029) 0/41 geth0/41 down Tunnel 29 (VLAN0029) 0/42 geth0/42 down Tunnel 29 (VLAN0029) 0/43 geth0/43 up Tunnel 29 (VLAN0029) 0/44 geth0/44 down Tunnel 29 (VLAN0029) 0/45 geth0/45 up Tunnel 1 (Network) 0/46 geth0/46 up Tunnel 1 (Network) 0/47 geth0/47 down Tunnel 4 (VLAN0004) 0/48 geth0/48 up Tunnel 4 (VLAN0004) 0/49 tengeth0/49 up Trunk 1,11-14,17,19-20,23-26,29 0/50 tengeth0/50 down Access - }}} == Legacy Configurations == All forms of spanning tree (STP, PVST+) are disabled for compliance with !OpenFlow and Node-handler/Agent services. From configuration mode: {{{ spanning-tree disable no spanning-tree vlan 1,3,11-14,19-26 }}} vlans are named from the `vlan` context. Interface-range contexts are used for batch configuration of similar ports. Below is the configuration of the CM and SB1 Control VLAN ports: {{{ !(config)# interface range gi 0/1-12 !(config-if-range)# switchport access vlan 3 !(config-if-range)# interface range gi 0/13-14 !(config-if-range)# sw acc vlan 11 }}} Similarly, the trunk ports: {{{ interface range gi 0/43-48 switchport mode trunk switchport trunk allowed vlan 3,11-14,19-26 switchport trunk native vlan 1 }}} == !OpenFlow configurations == Each VLAN is its own virtual switch. The following is the contents of openflow.conf. {{{ sw-sb-01> showswitch vlan ports secure channel ---- ----- -------------- 12 31, 32, 48.12 connected 14 33, 34, 48.14 connected 20 35, 36, 48.20 connected 22 37, 38, 48.22 connected 24 39, 40, 48.24 connected 26 41, 42, 48.26 connected }}} {{{ sw-sb-01> cat /mnt/openflow.conf setvsi 12 31,32,48.12 tcp 172.16.0.4:6633 dpid 0x001010123132 setvsi 14 33,34,48.14 tcp 172.16.0.4:6633 dpid 0x001010143134 setvsi 20 35,36,48.20 tcp 172.16.0.4:6633 dpid 0x001010203230 setvsi 22 37,38,48.22 tcp 172.16.0.4:6633 dpid 0x001010223232 setvsi 24 39,40,48.24 tcp 172.16.0.4:6633 dpid 0x001010243234 setvsi 26 41,42,48.26 tcp 172.16.0.4:6633 dpid 0x001010263236 }}}