【简单拓扑图】:
【注释】
这里 划分了 两个vlan 3 和 4 vlan3 分布在交换机1 和 2 中
【注意】
ip 与网关的 网段保持一致!!!!不要忘记设置主机网关 以及端口与命令保持一致!!!
【命令】:
交换机1: 配置 VALN 3
Switch#en
Switch#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 3
Switch(config-vlan)#exit
Switch(config)#int fa0/1 // fa0/1 与fa0/2 端口接在 vlan3 上
Switch(config-if)#switchport mode access
Swit