DES-7200 Configuration Guide Chapter 7 Protocol VLAN Configuration
7-10
Notes:
IP address based VLAN can only apply to Trunk port and Hybrid port, which can
directly connect with Hub or user PCs.
7.4.2.4 Configuration Steps
Configure Switch A
Step 1: Enter global configuration mode and create VLAN 2 and VLAN 3.
DES-7200#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
DES-7200(config)#vlan range 2-3
DES-7200(config-vlan-range)#exit
Step 2: Configure G0/3 as a Trunk port.
DES-7200(config)#interface gigabitEthernet 0/3
DES-7200(config-GigabitEthernet 0/3)#switchport mode trunk
DES-7200(config-GigabitEthernet 0/3)#exit
Step 3: Since the server is directly connected with port Gi 0/1, this port can be
configured to belong to VLAN 2.
DES-7200(config)#interface gigabitEthernet 0/1
DES-7200(config-GigabitEthernet 0/1)#switchport access vlan 2
DES-7200(config-GigabitEthernet 0/1)#exit
Step 4: Configure port Gi 0/2 to belong to VLAN 3.
DES-7200(config)#interface gigabitEthernet 0/2
DES-7200(config-GigabitEthernet 0/2)#switchport access vlan 3
DES-7200(config-GigabitEthernet 0/2)#exit
Step 5: Associate IP network segment of 192.168.1.1/24 with VLAN 3 and IP
network segment of 192.168.2.1/24 with VLAN 2.
DES-7200(config)#protocol-vlan ipv4 192.168.1.1 mask 255.255.255.0 vlan 3
DES-7200(config)#protocol-vlan ipv4 192.168.2.1 mask 255.255.255.0 vlan 2
Step 6: On port Gi 0/3, enable IP address based VLAN classification.
DES-7200(config)#interface gigabitEthernet 0/3
DES-7200(config-GigabitEthernet 0/3)# protocol-vlan ipv4
7.4.2.5 Verification
Step 1: Display configurations of Switch A. Key points: whether IP address
based VLAN classification has been properly configured, and whether the
uplink port has been configured as a Trunk port.
DES-7200#show running-config
!