1.1 实验任务
。
1.2 实验环境和网络拓扑
1.3 完成标准
实现三层交换,使得VLAN之间的主机能够通信。
2.详细操作步骤
Step 1: 指定端口Trunk,配置VLAN
(1) 在2950交换机上指定端口Trunk,配置VLAN
交换机2950配置如下:
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#ho 2950
2950(config)#interface f0/1
2950(config-if)#switchport mode trunk //配置端口1为中继模式
2950(config-if)#exit
2950(config)#exit
2950#vlan d
2950(vlan)#vtp domain 2t57 //配置VTP域为2t57
Changing VTP domain from NULL to 2t57
2950(vlan)#vtp server //VTP模式为服务器模式
2950(vlan)#vlan 10 //添加VLAN 10
VLAN 10 added:
Name:VLAN0010
2950(vlan)#vlan 20 //添加VLAN 20
VLAN 20 added:
Name:VLAN0020
2950(vlan)#exit
APPLY completed.
Exiting....
2950#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
10 VLAN0010 active
20 VLAN0020 active //VLAN 10、20添加成功
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
2950#conf t
Enter configuration commands, one per line. End with CNTL/Z.
2950(config)#interface f0/11
2950(config-if)#switchport access vlan 10 //将端口11加入到VLAN 10中
2950(config-if)#interface f0/12
2950(config-if)#switchport access vlan 20 //将端口11加入到VLAN 10中
2950(config-if)#exit