| 24 | | The steps assume you are already logged into privlaged mode |
| | 34 | 2. Assign ports to VLAN. Unfortunately, you have to configure one port at a time. Luckily, you can pull back old commands by using the up arrow key. |
| | 35 | {{{ |
| | 36 | !(config)# interface gi 0/1 |
| | 37 | !(config-if)# switchport mode access |
| | 38 | !(config-if)# switchport acc vlan 3 |
| | 39 | !(config)# interface gi 0/2 |
| | 40 | !(config-if)# switchport mode access |
| | 41 | !(config-if)# switchport acc vlan 3 |
| | 42 | !(config)# interface gi 0/3 |
| | 43 | !(config-if)# switchport mode access |
| | 44 | !(config-if)# switchport acc vlan 3 |
| | 45 | !(config)# interface gi 0/4 |
| | 46 | !(config-if)# switchport mode access |
| | 47 | !(config-if)# switchport acc vlan 3 |
| | 48 | }}} |
| 26 | | 1. Create and name VLANs |
| 27 | | {{{ |
| 28 | | |
| 29 | | |
| 30 | | |
| 31 | | 2. Assign ports to VLANs |
| 32 | | 3. Create trunk ports |
| 33 | | |
| 34 | | |
| 35 | | |
| | 50 | 3. After repeating the steps for the Control and Data VLANs, configure the trunk ports: |
| | 51 | {{{ |
| | 52 | !(config-if)# interface gi 0/45 |
| | 53 | !(config-if)# switchport mode trunk |
| | 54 | !(config-if)# switchport trunk allowed vlan 3,27,28 |
| | 55 | !(config-if)# interface gi 0/46 |
| | 56 | !(config-if)# switchport mode trunk |
| | 57 | !(config-if)# switchport trunk allowed vlan 3,27,28 |
| | 58 | !(config-if)# interface gi 0/47 |
| | 59 | !(config-if)# switchport mode trunk |
| | 60 | !(config-if)# switchport trunk allowed vlan 3,27,28 |
| | 61 | !(config-if)# interface gi 0/48 |
| | 62 | !(config-if)# switchport mode trunk |
| | 63 | !(config-if)# switchport trunk allowed vlan 3,27,28 |
| | 64 | !(config-if)# exit |
| | 65 | !(config)# save |
| | 66 | (config)# exit |
| | 67 | }}} |