****************************************交换机型号:H3C S3100V2*****************************************
1. 恢复出厂设置命令: <H3C> reset saved-configuration (后面重启时注意选择Y/N)
2. 查看当前设置命令: <H3C> display current-configuration
3. 划分VLAN命令:<H3C> system-view (进入系统视图)
[H3C] vlan 2 (创建VLAN 2)
[H3C] port Ethernet 1/0/13 to Ethernet 1/0/24 (划分端口Ethernet 1/0/13 到 Ethernet 1/0/24为VLAN 2)
[H3C-vlan2] display vlan 2 (查看划分结果)
[H3C-vlan2] quit
4. 端口隔离划分(即B口可以访问A口,C口可以访问A口,但B和C之间无法相互访问):
<H3C> system-view
[H3C] vlan 2 [H3C-vlan2] quit ------------- [H3C] vlan 3 [H3C-vlan3] quit --------- [H3C] vlan 4 [H3C-vlan4] quit
[H3C] interface Ethernet 1/0/1
[H3C-Ethernet1/0/1] port link-type hybrid
[H3C-Ethernet1/0/1] undo port hybrid vlan 1
[H3C-Ethernet1/0/1] port hybrid vlan 2 3 4 untagged
[H3C-Ethernet1/0/1] port hybrid pvid vlan 2
[H3C-Ethernet1/0/1] quit
-------------------------------------------------------------------------------
[H3C] interface Ethernet 1/0/2
[H3C-Ethernet1/0/2] port link-type hybrid
[H3C-Ethernet1/0/2] undo port hybrid vlan 1
[H3C-Ethernet1/0/2] port hybrid vlan 2 3 4 untagged
[H3C-Ethernet1/0/2] port hybrid pvid vlan 3
[H3C-Ethernet1/0/2] quit
-------------------------------------------------------------------------------
[H3C] interface Ethernet 1/0/3
[H3C-Ethernet1/0/3] port link-type hybrid
[H3C-Ethernet1/0/3] undo port hybrid vlan 1
[H3C-Ethernet1/0/3] port hybrid vlan 2 3 4 untagged
[H3C-Ethernet1/0/3] port hybrid pvid vlan 4
[H3C-Ethernet1/0/3] quit