system-view
vlan 10 / vlan 20
quit (可打可不打)
interface Ethernet 0/0/1(0/0/2........)
port link-type access
port default vlan 10
system-view
interface GigabitEthernet 0/0/2
port link-type trunk
port trunk allow-pass vlan10 20
效果:同网段的PC机可以互ping,不同网段无法互ping。
原文地址:https://www.cnblogs.com/YoLenLy/p/11725603.html
时间: 2024-10-11 21:19:51