How to deny device communicate with each other via layer 2 in the same vlan without VLAN ACL ?

一般來說如果在同一個VLAN中的主機可以直接透過Layer 2交換,不需要透過Layer 3 device。不過如果今天我們想要利用最簡單的設定不透過VLAN ACL來達成目的,我們可以使用switchport protected指令來完成。

假設FastEthernet 0/1, 0/2, 0/3皆屬於同一個VLAN 100,我們可以這樣設定:

Switch(config)#int range f0/1 - 3
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 100
Switch(config-if-range)#switchport protected

Comments

Popular posts from this blog

L2TPv3 Enables Layer 2 Services for IP Networks

TCP/IP 明確擁塞通知 (ECN)

Q-in-Q(Dot1Q Tunnel) Sample Configuration