104 | | |
105 | | == Refrences == |
106 | | |
107 | | For people literate in Japanese, a complete set of configuration guides may be found in the [http://www.nec.co.jp/ip88n/02.html#manual03 documents section of the NEC website.] |
108 | | |
| 104 | The telnet VLAN (4) was later changed to VLAN 1. |
| 105 | |
| 106 | == switch as DHCP server == |
| 107 | The switch can be a DHCP server, so it was made so the laptop that'll be used to test telnet would get an address from the switch. The commands make it so there is DHCP for group "Test1" on VLAN 1, and an address pool whose lease length is 10 minutes. |
| 108 | {{{ |
| 109 | !(config)# service dhcp vlan 1 |
| 110 | !(config)# ip dhcp excluded-address 192.168.10.1 |
| 111 | !(config)# ip dhcp pool Test1 |
| 112 | !(dhcp-config)# network 192.168.11.0 255.255.255.0 |
| 113 | !(dhcp-config)# lease 0 0 10 |
| 114 | }}} |
| 115 | |
| 116 | == Command `ppupdate`, not actually needed (6/15) == |
| 117 | The manual specified the command `ppupdate` for updating the firmware. This command copies new firmware (i.e. downloaded with ftp) on to the switch's flash memory. parameters usable: |
| 118 | |
| 119 | `ppupdate [test][no-display][-f][no-reload]<file name>` |
| 120 | |
| 121 | * `test` - only tests firmware, but doesn't update the firmware |
| 122 | * `no-display` - does not show status messages while firmware is being updated |
| 123 | * `-f` - update without confirmation |
| 124 | * `no-reload` - does not reboot switch after update, so changes take place after next restart |
| 125 | * `file-name` - the firmware, usually named k.img |
| 126 | |
| 127 | == The right way to flash the switch (6/16) == |
| 128 | The specific how-to's are on [wiki:Documentation/OpenFlow/Firmware another article], but the general gist is to copy the firmware, license, and configuration files onto a SD card provided by NEC, and cold booting the switch off of it. |
| 129 | |
| 130 | == VLAN Configuration, based on convention (6/23) == |
| 131 | The switch should follow the conventions used in other switches for which port corresponds to which VLAN, where the trunk is, ect. After week 2, the switch was booted back into normal mode (no SD card), and the VLANs statically set according to the following convention for networking SB9: |
| 132 | |
| 133 | ||Usage||ports||VLAN|| |
| 134 | ||CM||1-4||3|| |
| 135 | ||Control||5-8||27|| |
| 136 | ||Data||9-12||28|| |
| 137 | |
| 138 | == Static VLAN Configuration == |
| 139 | Configuration of the CM VLAN (VLAN 3) is shown here. |
| 140 | |
| 141 | 1. Create and name VLAN |
| 142 | {{{ |
| 143 | (config)# vlan 3 |
| 144 | !(config-vlan)# name "CM" |
| 145 | !(config-vlan)# exit |
| 146 | }}} |
| 147 | |
| 148 | 2. Assign CM VLAN 3 to the desired ports. Unfortunately, you have to configure one port at a time. Luckily, you can use the up arrow key to go through previous commands to make things faster. |
| 149 | {{{ |
| 150 | !(config)# interface gi 0/1 |
| 151 | !(config-if)# switchport mode access |
| 152 | !(config-if)# switchport acc vlan 3 |
| 153 | !(config)# interface gi 0/2 |
| 154 | !(config-if)# switchport mode access |
| 155 | !(config-if)# switchport acc vlan 3 |
| 156 | !(config)# interface gi 0/3 |
| 157 | !(config-if)# switchport mode access |
| 158 | !(config-if)# switchport acc vlan 3 |
| 159 | !(config)# interface gi 0/4 |
| 160 | !(config-if)# switchport mode access |
| 161 | !(config-if)# switchport acc vlan 3 |
| 162 | }}} |
| 163 | |
| 164 | 3. After repeating steps 1 and 2 for the Control and Data VLANs (with correct port numbers and VLAN number, of course), configure the trunk ports: |
| 165 | {{{ |
| 166 | !(config-if)# interface gi 0/45 |
| 167 | !(config-if)# switchport mode trunk |
| 168 | !(config-if)# switchport trunk allowed vlan 3,27,28 |
| 169 | !(config-if)# interface gi 0/46 |
| 170 | !(config-if)# switchport mode trunk |
| 171 | !(config-if)# switchport trunk allowed vlan 3,27,28 |
| 172 | !(config-if)# interface gi 0/47 |
| 173 | !(config-if)# switchport mode trunk |
| 174 | !(config-if)# switchport trunk allowed vlan 3,27,28 |
| 175 | !(config-if)# interface gi 0/48 |
| 176 | !(config-if)# switchport mode trunk |
| 177 | !(config-if)# switchport trunk allowed vlan 3,27,28 |
| 178 | !(config-if)# exit |
| 179 | !(config)# save |
| 180 | (config)# exit |
| 181 | }}} |
| 182 | |
| 183 | == DHCP/BootP relay agent (6/24) == |
| 184 | attempt was made but not knowing the DHCP server's address didn't help. Nevertheless, translations on how to set up a relay agent/ IP helper are [wiki:Documentation/OpenFlow/SwitchConfiguration here]. |
| 185 | |
| 186 | == Native VLAN configuration (6/25) == |
| 187 | A native VLAN was set up on the trunk ports so the switch will have an interface that can be assigned an IP address. |
| 188 | |
| 189 | 1. Make a VLAN. Name the native VLAN. |
| 190 | {{{ |
| 191 | (config)# vlan 1 |
| 192 | (config-vlan)# name "Network" |
| 193 | !(config-vlan)# exit |
| 194 | }}} |
| 195 | 2. Assign static IP address to the interface. we needed to find the switch's IP address with nslookup. This was actually done 7/2, after its MAC address was registered. |
| 196 | {{{ |
| 197 | !(config-vlan)# interface vlan 1 |
| 198 | !(config-if)# ip address 172.16.19.253 255.255.0.0 |
| 199 | }}} |
| 200 | 3. Configure ports to be trunk ports, then specify the native VLAN |
| 201 | {{{ |
| 202 | !(config)# interface gi 0/48 |
| 203 | !(config-if)# switchport mode trunk |
| 204 | !(config-if)# switchport trunk native vlan 1 |
| 205 | }}} |
| 206 | 4. Specify which VLANs are allowed on the trunk. This includes all VLANs that converge to this trunk, as well as the native VLAN for this trunk. If the port is already made to allow other VLANs, instead of using command `switchport trunk allowed vlan 1,3,27,28` you can just add VLAN 1 by using the `vlan add <vlan ID>` context: |
| 207 | {{{ |
| 208 | !(config-if)# swi trunk allowed vlan add 1 |
| 209 | }}} |
| 210 | so now the configurations for port 0/48 look like this: |
| 211 | {{{ |
| 212 | !(config-if)# sh |
| 213 | interface gigabitethernet 0/48 |
| 214 | switchport mode trunk |
| 215 | switchport trunk allowed vlan 1,3,27-28 |
| 216 | switchport trunk native vlan 1 |
| 217 | }}} |
| 218 | |
| 219 | |
| 220 | |
| 221 | |