不同vlan间默认不能通信,如果非需要弄成两台均连到路由器的一个口上还要求不能通信的话可以这样写
ip access-list extended noSingle
deny ip 192.168.1.0 0.0.0.255 192.168.2.0 0.0.0.255
interface FastEthernet0/0.1
ip access-group noSingle in
interface FastEthernet0/0.2
ip access-group noSingle out
不同vlan间默认不能通信,如果非需要弄成两台均连到路由器的一个口上还要求不能通信的话可以这样写
ip access-list extended noSingle
deny ip 192.168.1.0 0.0.0.255 192.168.2.0 0.0.0.255
interface FastEthernet0/0.1
ip access-group noSingle in
interface FastEthernet0/0.2
ip access-group noSingle out