Documentos de Académico
Documentos de Profesional
Documentos de Cultura
What is VLAN?
VLANs logically (software) divide the LAN into separate subgroups - broadcast domains. VLAN groups relate users regardless of the physical LAN segment to which the hosts are attached . The logical networks may (but not must) correspond to subnets. Allows traffic to flow more efficiently within populations of mutual interest. VLANs allow broadcast domains to be defined without using routers. Routers are needed for communication between the different VLANs.
VLAN A
VLAN B VLAN C
3
Switch
#1
Switch
#2
VLA1- N
VLAN-2
VLA1- N
VLAN-2
VLANs;
Multiple VLANs On One Device - One Armed Router
C,D A,B,C
A,B,C, D
Switch
Router
VLAN A VLAN B
.1996-2004 NETGEAR . All rights reserved
VLAN D VLAN C
5
Benefits of VLANs
Improves network performance Reduces the number of routers needed Flexible network segmentation (virtual workgroups) Simplified administration Enhanced network security Reduces network solution cost Better use of server resources
VLAN Solution
Types of VLANs
Membership by 802.1Q tag Membership by port Membership by MAC address Membershipbyprotocol(IP,IPX) Membership by subnet Membership by application or service (telnet, FTP..)
VLAN - Propriety
VLAN multi switch solutions were propriety and vendor based: Cisco: ISL Bay : Lattisspan 3Com: VLT Cabletron: SecureFast
association and not only on destination address Adding (and removing) explicit VLAN identification (tagging) to frames (tag aware)
10
VLANs;
Frames Sent by Aware\Unaware Devices
Types of Devices
Types of Frames
11
The VLAN switch adds tags to received frames, and removes tags when transmitting frames
All frames on access links are untagged
Access Link
VLAN A
VLAN tagged unaware
12
Types of Links;
VLANTrunkLink
Attaches 2 VLAN aware switches (or other VLAN tagged aware devices) All frames on VLAN Trunk links must have a special header attached (tagged frames) Allows for multiple VLAN frames to use one link
VLAN tagged aware switch VLAN Trunk Link VLAN Trunk Link VLAN tagged aware switch
13
Destination Address
Source Address
TPID
TCI
Length /Type
DATA
FSC
2 Bytes
Tag Protocol Identifier TPID
2 Bytes
Tag Control Information TCI
17
2 Bytes
2 Bytes
CFI 1Bit
VID 12 Bits
18
CFI
Value 1
VLAN tag extended to include embedded Source Routing information which will also contain the canonical format of any embedded MAC address Value 0 VLAN tag not extended + any embedded MAC addresses are in canonical (Little Endian) format
VLAN ID
Between 1 to 4094 (0x000 and 0xFFF reserved)
19
20
21
22
A port added to a VLAN on a (VLAN aware) device can be in one of 2 states tagged or untagged (for each specific VLAN) A certain VLAN can have both tagged and untagged ports
23
Tagging;
Advantage/Disadvantage
Advantages Disadvantages
24
25
Process Behavior
Filtering Database - Either static or dynamic entries - Either unicast or multicast entries Forwarding decisions
-
Lookup in MAC address table. Lookup key is based on both: VLAN tag and destination MAC address leading to the required egress port
-
entry is not found flooding is performed based on the VLAN Port Table
-
Broadcast frame lookup is done directly at the VLAN Port Table (flooding to all ports of the VLAN)
26
thedevice)as tagged frames If ingress frame is untagged, tagged with PVID of the port
Un-tagged VLANsforwardtheegresstraffic(outof
thedevice) as un-tagged frames If ingress frame is tagged, strip tag before forwarding
27
VLAN Commands
VLAN Database
This command gives you access to the VLAN Config mode, which allows you to configure VLAN characteristics. Format Mode vlan database Privileged EXEC
29
Create a VLAN
This command creates a new VLAN and assigns it an ID. The ID is a valid VLAN identification number (ID 1 is reserved for the default VLAN). VLAN range is 2-4094. The no option remove the VLAN.
Format Mode
30
Name/Rename a VLAN
This command changes the name of a VLAN. The name is an alphanumeric string of up to 32 characters, and the ID is a valid VLAN identification number. ID range is 1-4094.
Format Mode Default
[no] vlan name <2-4094> <name> VLAN Config VLAN ID 1 - default; other VLANS - blank string
31
VLAN Only: untagged frames or priority frames received on this interface are discarded. All: untagged frames or priority frames received on this interface are accepted and assigned the value of the interface VLAN ID for this port. With either option, VLAN tagged frames are forwarded in accordance with the IEEE 802.1Q VLAN Specification.
.1996-2004 NETGEAR . All rights reserved
32
34
The interface will not participate in this VLAN unless a join request is received on this interface. This is equivalent to registration normal.
35
Assign PVID
For all port: Format [no] vlan port pvid all <1-4094> Mode Global Config Default 1 For specific port(s): Format [no] vlan pvid <1-4094> Mode Interface Config Default 1
36
37
VLAN configuration
39
VLAN Status
40
41
VLAN Configuration
43
VLAN Membership
44
45
VLAN Examples
Assign membership
Config Interface 0/1 Vlan participation include 1 Vlan pvid 1 exit Interface 0/2 Vlan participation include 2 Vlan pvid 2 Exit
47
VLAN Example #2
Port 1 belongs to all four VLANs. All the port can access port 1 but not each other. Create VLAN1, 2, 3, 4 as usual. Create common VLAN including all the ports of all four VLANs and the uplink port. PVID of the uplink port will be the VLAN ID of the common VLAN.
.1996-2004 NETGEAR . All rights reserved
48
VLAN Trunking
Propagate VLAN information between switches. VTP (VLAN trunk protocol) proprietary to Cisco. Trunk port connect two switches that share VLAN information. Includes in all the VLANs that need to be trunked. Trunk port must be tagged in all VLAN.
49
VLAN Example #3
VLAN trunking
Include trunk port in all the VLANs. Trunk port is tagged in all the VLANs. PVIDofoftrunkportdoesntmatter.
.1996-2004 NETGEAR . All rights reserved
50
Trunk port
VLAN1
VLAN2
VLAN3
VLAN1
VLAN2
VLAN3
VLAN4
Create common VLAN in both switch#1 and switch#2. Includes all the ports as member of common VLAN. PVID of uplink port on switch#1 is VLAN ID of common VLAN. PVIDs of the other ports are their own individual VLAN ID. Include trunk ports in every VLAN. Trunk ports need to be tagged in every VLAN. PVID of the trunk port should be VLAN ID of common VLAN.
51
Lab1;
StandaloneVLAN
Create VLAN2 port 2,3,4,5.
Create VLAN3 port 6,7,8,9.
52
Lab2;
OneArmRouter
Create VLAN 2 port 2.3,4,5. Create VLAN3 port 6,7,8,9. Configure port 10 such that computer connected to port 10 can ping computer in VLAN2 and VLAN3. Make sure computers in VLAN2 still cannot ping computers in VLAN2
53
Make sure computer connected to VLAN3 on switch 1 can ping computer connected to VLAN3 on switch 2.
Make sure computer connected to VLAN2 on switch 1 cannot ping computer connected to VLAN3 on switch 2.
.1996-2004 NETGEAR . All rights reserved
54
55
57
Procedure;
HowToCreateMACAddressBasedVLAN
Create VLAN
Vlan database Vlan <vlan ID>
58
59
Test and confirm the two computers cannot ping each other.
Added MAC address of the other computer to the MAC based VLAN.
Test and confirm the two computers can now ping each other.
Add a port to the MAC based VLAN. Remove MAC address of computer#2 from the MAC based VLAN.
Test and confirm the two computers cannot ping each other.
Connect computer#2 to the port belong to the MAC based VLAN. Test and confirm the two computer can now ping each other.
.1996-2004 NETGEAR . All rights reserved
60
62
Mode
Global Config
To remove a protocol group: Format vlan protocol group remove <groupid> Mode Global Config
63
Attach a VLAN;
ToTheProtocolVLANGroup
This command attaches a <vlanid> to the protocol-based VLAN identified by <groupid>. A group may only be associated with one VLAN at a time, however the VLAN association can be changed. The referenced VLAN should be created prior to the creation of the protocol-based VLAN except when GVRP is expected to create the VLAN.
Format Mode Default
You can associate multiple interfaces with a group, but you can only associate each interface and protocol combination with one group.
If adding an interface to a group causes any conflicts with protocols currently associated with the group, this command fails and the interface(s) are not added to the group. Create the referenced VLAN before you create the protocol-based VLAN except when you configure GVRP to create the VLAN. For specific interface(s): Format [no] protocol vlan group <groupid> Mode Interface Config For all interfaces: Format [no] protocol vlan group all <groupid> Mode Global Config
.1996-2004 NETGEAR . All rights reserved
66
Procedure;
CreateaProtcolBasedVLAN
Create VLAN
vlan database
vlan <vlan ID>
Assign protocol to the protocol VLAN group vlan protocol group add protocol <group ID> [IP | IPX | ARP]
67
68
69
(Firmwareversion.7x)
70
GVRP
GVRP automatically tag interface connected to neighbor switches enabled for GVRP.
72
Enable GVRP
This command enables GVRP. If GVRP is disabled, the system does not forward GVRP messages.
Format Mode
Default
73
Default
74
Procedure;
ConfiguringGVRP
Enable GVRP on the switch
set gvrp adminmode
Enable GVRP on the interface(s) Interface mode: set gvrp interface mode
When VLAN is created on one switch, dynamically, same VLAN will be created on the other switches running GVRP and the port connecting the switches together will be added to the VLAN and tagged dynamically.
A VLAN created by GVRP (dynamic VLAN) can be converted to static VLAN.
vlan makestatic <VLAN ID>
.1996-2004 NETGEAR . All rights reserved
75
76
77
78
79
LAB 6; GVRP
Create VLAN 2 on switch#1. Assign interface 1-5 as member. Connect port 5 of switch#1 to port 5 of switch#2. Enable GVRP on switch#1. Enable GVRP on port 5 of switch#1.
80
Double VLAN
Double VLAN
Only supported on GSM7300S. Double VLAN tagging is a way to pass VLAN traffic from one customer domain to another through a Metro Core in a simple and cost effective manner. The additional tag on the traffic helps differentiate between customers in the MAN while preserving the VLAN identification of the individual customers when they enter their own 802.1Q domain.
82
Example;
83
Ingress Logic
For Packet Types Ingressing An Uplink (SP) Port
Packet seen on Packet seen on Uplink (Service egress at another egress at another Provider). Action Uplink port on Access port on taken on ingress. the switch. the switch. Add a SP Tag Add a SP Tag Do Nothing Do Nothing Single Tagged Untagged 802.1Q Tagged Untagged 802.1Q Tagged
Ingress Packet
SP+802.1Q Tagged
SP Tagged SP+802.1Q Tagged
84
Ingress Logic;
ForPacketTypesIngressingAnAccess(Customer)Port Access (Customer). Action taken on ingress.
Ingress Packet
Packet seen on Packet seen on egress at egress at another Uplink another Access port on the port on the switch. switch.
SP Tagged SP+802.1Q Tagged Untagged 802.1Q Tagged
85
Untagged
Add a SP Tag
802.1Q Tagged
Add a SP Tag
86
ForTheDVLANTunnel
This command configures the customer identification for the Double VLAN tunnel on the specified interface. The customer ID may have the value 0 to 4095, and the default is 0.
Format
Mode
Default
Interface Config
0
87
88
5. How to make a port to be accessible by both VLAN2 and VLAN3 while ports belong to VLAN 2 still cannot access VLAN3, or vice versa?
90
91
Answers;
1. No, VLAN ID. VLAN ID will be stripped on untagged port. 2. VLAN ID is 2. If port is tagged and ingress packet is tagged, packet egress with tagging intact. 3. VLAN ID is 2. If port is tagged and ingress packet is untagged, packet egress tagged with port PVID. 4. Make that port a tagged member of all the VLANs. 5. Create a common VLAN which VLAN members include the common port and all ports of VLAN2 and VLAN3. Make PVID of the common port the VLAN ID of the common VLAN.
.1996-2004 NETGEAR . All rights reserved
92
Answers;
6. Allow member of a VLAN not to be restricted by ports. A computer can be moved from port to port but still maintain membership in the VLAN regardless if the port belong to the VLAN or not. 7. Allow packets going through a VLAN to be restricted to the protocol in addition to port. 8. IP, IPX and ARP.
9. The VLAN will be dynamically created. The port connected to the neighbor switch will be added as a member of the dynamic VLAN and tagged.
.1996-2004 NETGEAR . All rights reserved
93
Question?
Thank you