1、添加三个S5700交换机,两台PC。其中vlanif 10为:G0/0/1 192.168.1.1/24 vlanif 20为:G0/0/2 192.168.2.1/24

2、SW1创建VLANSYSSYS SW1VLAN BATCH 10 20S掳姗浚瑙W1端口配置int g0/0/1port link-type accessport def vlan 10qint g0/0/2port link-type accessport def vlan 20q

3、SW1 配置vlanif 接口int vlanif 10ip add 192.168.1.1 24qint vlanif 20ip add 192.168.2.1 24q
