要求:
vlan10,vlan20中的PC3不能访问服务器
vlan 20中的PC2可以访问服务器
PC1: 192.168.10.1
网关: 192.168.10.254
PC2: 192.168.20.1
网关:192.168.20.254
PC3: 192.168.20.2
网关:192.168.20.254
服务器:172.17.5.100
网关:172.17.5.254
[LSW1] vlan batch 10 20 100
int g0/0/1
port link-type access
port default vlan 10
int g0/0/2
port link-type access
port default vlan 20
int g0/0/3
port link-type access
port default vlan 20
int g0/0/24
port link-type access
port default vlan 100
int vlanif 10
ip address 1