本实验需求:
通过在cisco catalyst 3550来规划VLAN 100 和VLAN 200,并且配置DHCP 让VLAN100人事部计算机获得IP地址为192.168.0.0/24,让VLAN200市场部计算机获得IP地址为172.16.0.0/24。因为市场部和人事部因为业务上的关系,需要两台服务器相互通信,所在还需要在3550上配置VLAN间相互通信。
实验拓扑:
实验过程 第一步 配置Catalyst 3550基础配置
Switch> Switch>enable Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#host 3550 3550(config)#no ip do lo 3550(config)#line con 0 3550(config-line)#no exec-t 3550(config-line)#logg syn 3550(config-line)#exit |
第二步 在Catalyst 3550 划分VLAN 100和VLAN 200
//进入全局配置模式下,划分VLAN(请问catalyst 3500支持在全局模式下划分VLAN吗?) 3550(config)#vlan 100 //给VLAN100命名 3550(config-vlan)#name renshibo 3550(config-vlan)#int f0/13 3550(config-if)#switchport mode access 3550(config-if)#switchport access vlan 100 3550(config-if)#spanning-tree portfast //请问什么时候需要在交换机接口下配置portfast?这里如果不配置可以吗? %Warning: portfast should only be enabled on ports connected to a single host. Connecting hubs, concentrators, switches, bridges, etc... to this interface when portfast is enabled, can cause temporary bridging loops. Use with CAUTION %Portfast has been configured on FastEthernet0/13 but will only have effect when the interface is in a non-trunking mode. 3550(config-if)#vlan 200 3550(config-vlan)#name shichangbo 3550(config-vlan)#int f0/15 3550(config-if)#sw mo acc 3550(config-if)#sw acc vlan 200 3550(config-if)#spanning-tree portfast %Warning: portfast should only be enabled on ports connected to a single host. Connecting hubs, concentrators, switches, bridges, etc... to this interface when portfast is enabled, can cause temporary bridging loops. Use with CAUTION %Portfast has been configured on FastEthernet0/15 but will only have effect when the interface is in a non-trunking mode. //验证VLAN的配置 3550#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 Fa0/14, Fa0/16, Fa0/17, Fa0/18 Fa0/23, Gi0/1, Gi0/2 100 renshibo active Fa0/13 200 shichangbo active Fa0/15 1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup |
时间: 2024-09-20 00:06:24