H3C交换机设置

****************************************交换机型号: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

 

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值