VLAN Configuration Example
45
VLAN Configuration
Example
Port-based VLAN
Configuration Example
Network requirements
■
Create VLAN 2 and VLAN 3, with the name of VLAN 2 being v2, and the
description string being home.
■
Add GigabitEthernet1/0/1 and GigabitEthernet1/0/2 ports to VLAN 2; add
GigabitEthernet1/0/3 and GigabitEthernet1/0/4 ports to VLAN 3.
Network diagram
Figure 20
Network diagram for VLAN configuration
Configuration procedure
1
Create VLAN 2 and enter VLAN view.
[4200G]
vlan 2
2
Set the name of VLAN 2 to v2.
[4200G-vlan2]
name v2
3
Specify the description string of VLAN 2 to be home.
[4200G-vlan2]
description home
4
Add GigabitEthernet1/0/1 and GigabitEthernet1/0/2 ports to VLAN 2.
[4200G-vlan2]
port GigabitEthernet1/0/1 GigabitEthernet1/0/2
5
Create VLAN 3 and enter VLAN view.
[4200G-vlan2]
vlan 3
6
Add GigabitEthernet1/0/3 and GigabitEthernet1/0/4 ports to VLAN 3.
[4200G-vlan3]
port GigabitEthernet1/0/3 GigabitEthernet1/0/4
VLAN3
Switch
VLAN2
VLAN3
GE1/0/4
VLAN3
VLAN2
VLAN3
GE1/0/1
VLAN3
VLAN2
VLAN3
VLAN3
GE1/0/3
GE1/0/2
VLAN2
VLAN3
VLAN3
Switch
VLAN2
VLAN3
VLAN3
VLAN2
VLAN3
VLAN3
VLAN2
VLAN3
VLAN3
VLAN2
VLAN3
VLAN3
Switch
VLAN2
VLAN3
GE1/0/4
VLAN3
VLAN2
VLAN3
GE1/0/1
VLAN3
VLAN2
VLAN3
VLAN3
GE1/0/3
GE1/0/2
VLAN2
VLAN3
VLAN3
Switch
VLAN2
VLAN3
VLAN3
VLAN2
VLAN3
VLAN3
VLAN2
VLAN3
VLAN3
VLAN2
VLAN3
Summary of Contents for 4200G 12-Port
Page 10: ...8 CONTENTS...
Page 14: ...4 ABOUT THIS GUIDE...
Page 46: ...32 CHAPTER 5 LOGGING IN THROUGH WEB BASED NETWORK MANAGEMENT SYSTEM...
Page 48: ...34 CHAPTER 6 LOGGING IN THROUGH NMS...
Page 60: ...46 CHAPTER 9 VLAN CONFIGURATION...
Page 64: ...50 CHAPTER 10 MANAGEMENT VLAN CONFIGURATION...
Page 80: ...66 CHAPTER 13 GVRP CONFIGURATION...
Page 98: ...84 CHAPTER 15 LINK AGGREGATION CONFIGURATION...
Page 112: ...98 CHAPTER 18 MAC ADDRESS TABLE MANAGEMENT...
Page 126: ...112 CHAPTER 19 LOGGING IN THROUGH TELNET...
Page 162: ...148 CHAPTER 20 MSTP CONFIGURATION...
Page 274: ...260 CHAPTER 29 IGMP SNOOPING CONFIGURATION...
Page 276: ...262 CHAPTER 30 ROUTING PORT JOIN TO MULTICAST GROUP CONFIGURATION...
Page 298: ...284 CHAPTER 33 SNMP CONFIGURATION...
Page 304: ...290 CHAPTER 34 RMON CONFIGURATION...
Page 338: ...324 CHAPTER 36 SSH TERMINAL SERVICES...
Page 356: ...342 CHAPTER 38 FTP AND TFTP CONFIGURATION...
Page 365: ...Information Center Configuration Example 351 S4200G terminal logging...
Page 366: ...352 CHAPTER 39 INFORMATION CENTER...
Page 378: ...364 CHAPTER 40 BOOTROM AND HOST SOFTWARE LOADING...
Page 384: ...370 CHAPTER 41 Basic System Configuration and Debugging...
Page 388: ...374 CHAPTER 43 NETWORK CONNECTIVITY TEST...
Page 406: ...392 CHAPTER 45 CONFIGURATION OF NEWLY ADDED CLUSTER FUNCTIONS...