| 32 | | == Static VLAN Configuration == |
| 33 | | Configuration of the CM VLAN (VLAN 3) is shown here. |
| 34 | | |
| 35 | | 1. Create and name VLAN |
| 36 | | {{{ |
| 37 | | (config)# vlan 3 |
| 38 | | !(config-vlan)# name "CM" |
| 39 | | !(config-vlan)# exit |
| 40 | | }}} |
| 41 | | |
| 42 | | 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. |
| 43 | | {{{ |
| 44 | | !(config)# interface gi 0/1 |
| 45 | | !(config-if)# switchport mode access |
| 46 | | !(config-if)# switchport acc vlan 3 |
| 47 | | !(config)# interface gi 0/2 |
| 48 | | !(config-if)# switchport mode access |
| 49 | | !(config-if)# switchport acc vlan 3 |
| 50 | | !(config)# interface gi 0/3 |
| 51 | | !(config-if)# switchport mode access |
| 52 | | !(config-if)# switchport acc vlan 3 |
| 53 | | !(config)# interface gi 0/4 |
| 54 | | !(config-if)# switchport mode access |
| 55 | | !(config-if)# switchport acc vlan 3 |
| 56 | | }}} |
| 57 | | |
| 58 | | 3. After repeating steps 1 and 2 for the Control and Data VLANs, configure the trunk ports: |
| 59 | | {{{ |
| 60 | | !(config-if)# interface gi 0/45 |
| 61 | | !(config-if)# switchport mode trunk |
| 62 | | !(config-if)# switchport trunk allowed vlan 3,27,28 |
| 63 | | !(config-if)# interface gi 0/46 |
| 64 | | !(config-if)# switchport mode trunk |
| 65 | | !(config-if)# switchport trunk allowed vlan 3,27,28 |
| 66 | | !(config-if)# interface gi 0/47 |
| 67 | | !(config-if)# switchport mode trunk |
| 68 | | !(config-if)# switchport trunk allowed vlan 3,27,28 |
| 69 | | !(config-if)# interface gi 0/48 |
| 70 | | !(config-if)# switchport mode trunk |
| 71 | | !(config-if)# switchport trunk allowed vlan 3,27,28 |
| 72 | | !(config-if)# exit |
| 73 | | !(config)# save |
| 74 | | (config)# exit |
| 75 | | }}} |
| 76 | | |
| 77 | | The native VLAN was set up later on -- look [wiki:Documentation/OpenFlow/SwitchConfiguration here] for native VLAN configuration. |
| 78 | | |