system-view
vlan 10 / vlan 20
quit (可打可不打)
interface Ethernet 0/0/1(0/0/2........)
port link-type access
port default vlan 10
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。