给主机配置IP地址,然后分别给两个交换机创建vlan 10 和vlan 20,接着进入接口模式(interface gi),把主机配置成vlan 10和vlan 20(access),接着两个交换机都用trunk模式 左边:主机1:IP地址192.168.10.1子网掩码255.255.255.0