| 1 | = Nortel 5520 V-Lan Programming = |
| 2 | |
| 3 | {{{ |
| 4 | config |
| 5 | Create a New VLAN. |
| 6 | Code |
| 7 | |
| 8 | vlan create <vlan_id> name <vlan_name> type port-based |
| 9 | Replace <vlan_id> with the desired VLAN ID (e.g., 10, 20) and <vlan_name> with a descriptive name. |
| 10 | Assign Ports to a VLAN (Untagged/Access Port): |
| 11 | Code |
| 12 | |
| 13 | vlan members <vlan_id> <port_list> untagged |
| 14 | Replace <vlan_id> with the VLAN ID and <port_list> with the port(s) you want to assign to this VLAN (e.g., 1/1, 1/5-1/10). Untagged ports are typically used for end devices. |
| 15 | Assign Ports to a VLAN (Tagged/Trunk Port): |
| 16 | Code |
| 17 | |
| 18 | vlan members <vlan_id> <port_list> tagged |
| 19 | Replace <vlan_id> and <port_list> accordingly. Tagged ports are used for inter-switch links or connections to devices that understand 802.1Q tagging. |
| 20 | Set the Port VLAN ID (PVID) for a Port: |
| 21 | Code |
| 22 | |
| 23 | interface ethernet <port_number> |
| 24 | pvid <vlan_id> |
| 25 | exit |
| 26 | Replace <port_number> with the specific port (e.g., 1/1) and <vlan_id> with the VLAN ID that untagged traffic entering this port should be assigned to. This is crucial for access ports. Verify VLAN Configuration. |
| 27 | Code |
| 28 | |
| 29 | show vlan |
| 30 | show vlan port <port_number> |
| 31 | Save the Configuration. |
| 32 | Code |
| 33 | |
| 34 | save config |
| 35 | Example: Creating VLAN 10 and assigning port 1/1 as an untagged member: |
| 36 | Code |
| 37 | |
| 38 | config |
| 39 | vlan create 10 name DataVLAN type port-based |
| 40 | vlan members 10 1/1 untagged |
| 41 | interface ethernet 1/1 |
| 42 | pvid 10 |
| 43 | exit |
| 44 | save config |
| 45 | |
| 46 | }}} |