11 Case 1: divide VLAN
1.1 problem
Create the following VLAN on the switch, in accordance with the topology of -1 is added to the specified port VLAN configuration server and the IP address, host communicate with VLAN
1.2 step
As the default, all interfaces are in VLAN1, and the default VLAN1 there, so only need to configure and VLAN3 to VLAN2.
Switch>enable
Switch#configure terminal
Switch(config)#vlan 2 //创建VLAN2
Switch(config-vlan)#vlan 3 //创建VLAN3
Switch(config-vlan)#exit
Switch(config)#interface range fastEthernet 0/3-4 //同时进入3、4接口
Switch(config-if-range)#switchport access vlan 2 //将3、4接口加入VLAN2
Switch(config-vlan)#exit
Switch(config)#interface range fastEthernet 0/5-6
Switch(config-if-range)#switchport access vlan 3
Switch#show vlan brief
22 Case 2: dividing the multi-switch VLAN
2.1 problems
one and the same host FIG -2 VLAN by configuring the switch interworking
2.2 step
Note: The following configuration is done on the basis of case 1
S1 Configuration
Switch#configure terminal
Switch(config)#interface fastethernet 0/7
Switch(config-if)#switchport access vlan 3
S2 Configuration
Switch>enable
Switch#configure terminal
Switch(config)#vlan 3
Switch(config-vlan)#exit
Switch(config)#interface range fastEthernet 0/5-7
Switch(config-if-range)#switchport access vlan 3
33 Case 3: Configuring the trunk link relay
3.1 problem
By the same VLAN configuration enables communication across the switch, as shown in FIG -3
3.2 step
Note: The following configuration is done on the basis of case 2
S1 Configuration
Switch>enable
Switch#configure terminal
Switch(config)#interface fastEthernet 0/7
Switch(config-if)#switchport mode trunk
S2 Configuration
Switch>enable
Switch#configure terminal
Switch(config)#vlan 2
Switch(config-vlan)#exit
Switch(config)#interface range fastEthernet 0/3-4
Switch(config-if-range)#switchport access vlan 2
Switch(config-if-range)#exit
Switch(config)#interface fastEthernet 0/7
Switch(config-if)#switchport mode trunk
44 Case 4: Ethernet channel configuration
4.1 problem
Referring to FIG f0 switch -4 / 7-f0 / 9 Ethernet channel port is configured as
4.2 step
S1 Configuration
Switch>enable
Switch#configure terminal
Switch(config)#interface range fastEthernet 0/7-9
Switch(config-if-range)#channel-group 1 mode on
Switch(config-if-range)#end
Switch#show etherchannel summary
S2 Configuration
Switch>enable
Switch#configure terminal
Switch(config)#interface range fastEthernet 0/7-9
Switch(config-if-range)#channel-group 1 mode on
Switch(config-if-range)#end
Switch#show etherchannel summary