2层交换机与3层交换机之间的端口配置成trunk模式:switchport mode trunk3层交换机配置vlan的IP 的地址:比如:int vlan 1ip address 192.168.1.2 255.255.255.0int vlan 2 ip address 192.168.2.2 255.255.255.0int vlan 3 ip address 192.168.3.2 255.255.255.0int vlan 4ip address 192.168.4.2 255.255.255.0int vlan 5ip address 192.168.5.2 255.255.255.0int vlan 6ip address 192.168.6.2 255.255.255.0ip routing (开启路由选择功能)pc机上的网关配置成vlan 的ip地址。。。。。。
温馨提示:内容为网友见解,仅供参考