一、VLAN划分
1. 准备工作
-
配置环境:Cisco Packet Tracer(思科模拟器)
-
划分目的:隔离广播域
-
配置拓扑图
2. 具体步骤
(1)给四台主机分配静态IP和掩码
(2)对交换机进行配置,划分vlan
Switch>enable #进入特权模式
Switch#configure terminal #进入配置模式
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname Hello #修改交换机名字
Hello(config)#vlan 10 #创建vlan
Hello(config-vlan)#exit
Hello(config)#int range fastEthernet 0/1-2 #进入接口1,2
Hello(config-if-range)#switch mode access
#将接口1,2划分到vlan10
Hello(config-if-range)#switch access vlan 10
Hello(config-if-range